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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started