Cost = Units3 - 7 Units2 + $432where Units stands for the number of bumpers that are gold-plated each day.
2. Write a program that will play the Hi-Lo guessing game. The user picks a secret number between 1 and 100. The computer tries to guess the number in less than five turns. When the computer makes a guess, the user enters a hint; the letter 'H' indicates the computer's guess was too high, the letter 'L' means the computer guessed too low. The program should use the hint to revise its guess. If the user enters the letter 'W' that means the computer guessed the number correctly and the computer should reply "I won.". If the computer takes 5 guesses without winning it should print a message "I lost."