# c++

posted by .

The distance between two cities is 500 miles. Let us call these cities as CityA and CityB. Employees live in the CityA and travel to the CityB every day in the morning and come back in the evening on the same day except on Saturday and Sunday. They do not travel on vacations, holidays and sick days. Make following assumptions:
On January 1st, it is Monday.

It is not a leap year and the total number of days in the year is 365.

Each employee has 6 days of holidays in a year.

Each employee is entitled for different number of vacation in a year. The managers are entitled for 20 days of vacation every year and the workers are entitled for 15 days.

The managers and the workers both are also entitled for different number of sick days in a year. For mangers this is 8 and for the workers it is 17.

Write a program which accepts the employee type from the user and based on that calculates many miles the employee will travel in a year. Test it for different types of employees. The majority of the codes should be written in separate function(s). Limit the code in the main function. The main function should be mostly calling the other functions to meet the requirement of the project.
Though the managers and the workers are entitled for certain number of vacations and sick leave, they don't have to use all of those in a year. They may decide to use only part of these. You program should ask the user the followings:
1. Type of employee.
2. Number of vacation days used.
3. Number of sick days used.
You should write validations to make sure that the number of vacation days used, and the number of sick days used do not exceed the number of days the employee is entitled to.

## Similar Questions

1. ### Math

The scale on a map is 1/4 inch = 25 miles. The Distance Between two cities on the map is 2 and 3/4 inches. What is the Actual Distance , in miles, between the two cities?
2. ### math

on map 1inch=25 miles.you measure the distance between two cities on the map and the distance to be 5 1/2 inches.find the number of miles between the cities
3. ### algebra 2

One-fourth of the distance between two cities is 100 miles less than two-thirds the distance between the cities. Which equation expresses this situation?
4. ### math

Two cities on a map are 2 and 1/4 inches apart. The cities are actually 112.5 miles apart. How many miles is represented by one inch?
5. ### math

The scale for a map says that 1 cm is equal to 25 miles. Jennifer measures the distance between two cities as 4.5 cm. How far apart are the cities?
6. ### Math

A map's shows that every 5 inches on the map represents 200 miles of actual distance. Suppose the binstance between two cities on the map is 7 inches. What is the actual distance between the two cities?
7. ### math

A map's key shows that every of 5 inches on the map represents 200 miles of actual distance. Suppose the distance between two cities on the map is 7 inches. What is the actual distance between the two cities?
8. ### Math

A mas key shows that every 5 in ches on the más representa 200 miles of actual distance. Su pose the distance between two cities on the map is 7 inches. What is the actual distance between the two cities?
9. ### mac1105

A driver averaged 43-miles per hour and took 6 hours to travel between two cities?
10. ### Math

Sonia draws a line between Los Angeles and San Diego on a map. Find the shortest distance between the two cities. If the scale is 1 inch = 50 miles, what is the distance in miles between the two cities. A.25, B.50, C.100, D.150?

More Similar Questions