Question: Write a program to run the following methods in C#. 2) Write a method that takes in a teachers last name and exam number via

Write a program to run the following methods in C#.

2) Write a method that takes in a teachers last name and exam number via parameters. Ask the teacher (using her name) to tell you the highest score on that exam. Your question should look something like Ms. Jones, what was the highest grade on test two? Return the value of the highest grade to the calling method.

3) Write a function called MinOfThree that takes in three numbers and returns the smallest.

6) A parking lot charges a minimum fee of $5 to park for 2 hours, and then $1 for each additional hour. The maximum charge is $10.00 per day. Write a function named Fee that takes in the number of hours parked, and returns the amount of money owed.

7) Write a function that takes in a users hourly rate and hours worked. Calculate and return the users gross pay. The user gets time and one half for any time worked over 40 hour.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!