computer Science (need answer ASAP)

Write a complete C# program that displays a menu comprising of the followings:

Main Menu
1) Calculate Fuel Consumption
2) Calculate Weekly Wages
3) About This Program
4) Exit Program
Enter your Choice:

Calculating Fuel Consumption
When the user chooses this option, the program should display a short description about what this option does, and then prompt the user to input the number of liters of gasoline consumed by the user’s car, the price per gallon of gasoline, and the number of miles traveled by the car (all values are floating-point with 2 decimal point accuracy). The program will then display (using MessageBox) the number of miles per gallon the car delivered, and total cost of the consumed gasoline. Your program should allow the users to repeat this calculation as often as they wish by returning them to the Main Menu (a liter is 0.264179 gallons).

Calculating Weekly Wages
A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 40 hours they work and “time-and-a-half,” i.e. 1.5 times their hourly wage, for overtime hours worked), commission workers (who receive $250 plus 5.7% of their gross weekly sales), or pieceworkers (who receive a fixed amount of money per item for each of the items they produce-each pieceworker in this company works on only one type of item).

Write the complete C# program to compute and display the weekly pay for each employee. You do not know the number of employees in advance. Each type of employee has its own pay code:
Managers have pay code 1MA,
Hourly workers have code 2HW,
Commission workers have code 3CW, and
Pieceworkers have code 4PW.
Use a switch to compute each employee’s pay based on that employee’s paycode. Within the switch, prompt the user to enter the appropriate facts your program needs to calculate each employee’s pay based on that employee’s paycode. Display the result using a MessageBox.

About This Program
This option should display a very short description of the entire program does. I suggest using the descriptions above.

Exit Program
This option will prompt the user with a Goodbye type of message that the program is terminating. Then terminate the program.

  1. 👍 0
  2. 👎 0
  3. 👁 259
  1. The last line says this:
    "No one has answered this question yet."

    This is because you forgot to post your actual question, i.e. what problems you are having with what you wrote so far.

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. Social Studies

    Use the drop-down menu to complete the sentence. A potlatch can best be described as a

  2. History

    1.Use the drop-down menu to complete the sentence. The main purpose of Hammurabi’s Code was to 2.Use the drop-down menu to complete the sentence. Sargon created the world’s first empire by 3.Use the drop-down menu to complete

  3. social studies

    Use the drop-down menu to complete the sentence. After 1945, a civil war in China led to the rise of a____ government there. A. Imperial B. Democratic*** C. communist D. fuedal

  4. Math

    The school cafeteria serves pizza every sixth day and applesauce every eight day. If pizza and applesauce are both on today's menu. In how many days will they be together on the menu again ?

  1. Programming and Design

    Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a

  2. math

    A newly-opened restaurant has 5 menu items. If the first 4 customers each choose one menu item uniformly at random, the probability that the 4th customer orders a previously unordered item is a/b, where a and b are relatively

  3. Math

    a menu which serves 4 people requires 3 cups of many cups of flour are needed for the menu to serve 12 people?

  4. Programming concepts

    Develop a menu-driven program that inputs two numbers and, at the user’s option, finds their sum, difference, product, or quotient. top-down modular approach and pseudocode to design a suitable program to solve it. I am having

  1. Social Studies

    use the drop-down menu to complete the sentence. Works of satire, like those written by the Roman author Juvenal, Are stories that A. Demonstrate a moral B. Persuade an audience C. Tell the story of someone’s life D. Make fun of

  2. Math

    A menu consists of 4 choices of salad, 9 entrees and 5 desserts. The number of different dinners consisting of a salad, an entree and then a dessert that you can choose from this menu is

  3. history

    Use the drop-down menu to complete the sentence. In 800, Pope Leo III crowned emperor of the Romans as a form of thanks for protection from the pope's enemies.

  4. MATH-Please Help me

    a menu which serves 4 people requires 3 cups of many cups of flour are needed for the menu to serve 12 people?

You can view more similar questions or ask a new question.