Skill set for this LAB:
Problem 1 : Write a program that calculates the insurance points that three different people will receive for speeding on highway. The upper speed limit on the highway is 65 mph. You can assume that speed is integer number. Use the following table:
4 points: | over 90 mph |
3 points: | 89 - 80 |
2 points: | 79 - 70 |
1 point: | 69 - 66 |
NO POINTS: | 65 and less |
Problem 2 :Write a program that finds the final score in the song competition. There are 4 judges in the competition.
Write a function max(a,b,c,d) that returs maximal value among 4 paarmeters, function min(a,b,c,d) that returns the minial value among parameters. Write a program that reads the score from each judge and outputs the final score for the song.
Problem 3 : Write a program that calculates the total cost of amusement park tickets for a family of 4 people. The input: full price of the ticket (integer), age of each family member (integer), tax (integer). Output: Total price after all discount and taxes are taken in account.