A Basic Calculator
In this project, you will use classes, methods, and objects to create a simple arithmetic calculator. The calculator will be able to:
Create a class called Car. The Car class has the following fields: int speed, double
regularPrice, String color.
Create a sub class of Car class and name it as Truck. The Truck class has the
following fields and methods: int weight, double getSalePrice(); //If
rogram 6 – Employee rules Code the following program in Java. There will be many source files. Most employees work 37.5 hours per week. Most employees earn R50 000 per year. Managers earn R20 000 extra per year. Most employees get 15 workdays leaves a year. Managers get an extra 3 days leave per year. Secretaries must work 40 per week. Everybody must apply for leave online. Managers also need to get the approval of the CEO of the company when taking leave. Employees knows how to work. Managers knows how to manage and secretaries knows how to type. Code your classes according to the following class diagram. Name is the only attribute you need.Required 1. : Code the classes Employee, Manager and Secretary. 2. Extra Code an application with a main method. In this class you must code an array o Employee with a maximum size of 20. a. b. c. Add a minimum of 10 objects to the array. You may hard The objects must be a mixture of Employee, Manager and Secretary. Display all the objects on the screen.
The Admission to a professional course is done using the following conditions.
a) Marks in Maths> =60
b) Marks in Physics >=50
c) Marks in chemistry >=40
d) Total in all the three subjects >=200 (or) Total in Maths and Physics >=150
Given the marks of three subjects, write a java program to process the applications to list the eligible candidates. (with if and if else only)
Create a Mobile class with properties, which can be set once while creating object using constructor arguments. Create getProperties() methods which are having public access modifiers.
Write a program to implement encapsulation.
What is the difference between overloading and overriding?