Object Oriented Programming with C++
1.In an Organization every employee gets 20% house allowance, and 7% Transport allowance. Every employee who earns more than 10,000 pays income tax at the rate of 10%.Employees whose salary is more than 100000 pay 30% income tax. Design a C++ program used to input the salary of an employee and output his house allowance, transport allowance, gross pay, tax charged and Net pay (include a flow chart).
NB:
Gross pay = salary + allowances
Net pay is pay after all deuctions
Assume the mean mark obtained in an exam depends on the mean mark of three subjects as shown
Mean Mark |
Grade |
70 to 100 |
A |
60 to 69 |
B |
50 to 59 |
C |
40 to 49 |
D |
Required;
Design a C++ program to input the marks of the three subjects and compute the mean exam mark and grade
Task
Input the marks for each of the three subjects
Compute and output the mean mark
Compute and Output the grade
Design and Write a running c++ program that allows users to enter temperature in degrees Fahrenheit F and outputs that temperature in degrees Celsius( oC), and also outputs the temperature converted into Kelvin (K). Use the conversion table
Temperature in Celsius( oC) |
Temperature in Fahrenheit(F |
Temperature in Kelvin (K). |
0C |
F =(9/5 x 0C) + 32 |
K = 0C + 273 |
Example 100 0C |
F =(9/5 x 100) + 32 =212F |
K= 100 +273 =373K |
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of