computer Science (need answer ASAP)

posted by .

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.

  • computer Science (need answer ASAP) -

    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.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Computer Programming

    Java Programming Question: basically want to keep the user in a loop that displays the menu and requests a user choice again and again until the user enters choice option 0 and exits the program. When Option 1 is chosen, I want to …
  2. computer science

    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 …
  3. Programming

    Write a pseudocode program that asks the user for an integer between 1 and 12. The program is to calculate the times table for that number. So for example, if the user enters a 2, then the program has to calculate 2x1 and display the …
  4. Programming with Eclipse

    Design, implement, test, and debug an application to compute an employee’s weekly pay. If the employee works more than 40 hours a week, the employee earns 1.5 times the basic hourly pay for any time worked over 40 hours. The program …
  5. Computing

    Write a program that displays the following menu: 1 = Square 2 = Circle 3 = Ellipse 4 = End program When the user selects a shape from the menu, the program should ask for any necessary data, either: the length of the square’s side, …
  6. Programming

    How would the flow charts and pseudocode look for this?
  7. computer science

    You are required to use the Account class to simulate an ATM machine. Create ten accounts in an array with id 0, 1, 2 ...9, and initial balance $50. The system prompts the user to enter an id. If the id is entered incorrectly, ask …
  8. Computer Science/Pseudo Code Python

    Hi, I'm confused about an assignment. I'm not sure what to do and would like some help. An example: Write a program that obtains two integer numbers from the user. It will print out the sum of those numbers. Pseudo code: Prompt user …
  9. computer programing

    I am little lost how to do this here any help to show me?
  10. computer programing

    please need some help here not sure how to do this and need to have it in by sunday night can anyone help me please. Here what I need to do Create a program that uses a menu with options to enter information about monsters (monster …

More Similar Questions