1. Write a program that reads in three floating-point numbers and prints the largest of the three inputs. For example: Please enter three numbers: 4 9 2.5 The largest number is 9.
2. Write a program that translates a number between 0 and 4 into the closest letter grade. For example, the number 2.8 (which might have been the average of several grades) would be converted to B–. Break ties in favor of the better grade; for example 2.85 should be a B.
3. A local pet store has tasked you with writing a computer program that computes the gift card amount to give loyal shoppers based on the total dollars spent by the shopper. Write a program, that uses if-statements, that computes the gift card amount according to this schedule, given the shopper’s total amount spent:
No gift card for shoppers that spent less than 10.00 dollars
2.00 gift card for shoppers that spent 10.00 – 19.99 dollars
4.00 gift card for shoppers that spent 20.00 – 29.99 dollars
6.00 gift card for shoppers that spent 30.00 – 39.99 dollars
8.00 gift card for shoppers that spent 40.00 – 49.99 dollars
10.00 gift card for shoppers that spent 50.00 or higher dollars
The program should output a message that says “Thank you for your loyalty. Please accept this gift card in the amount of ” followed by the dollar amount. Example output for a shopper that spent 10.00:
Thank you for your loyalty. Please accept this gift card in the amount of 2.00
First, describe your algorithm using pseudocode.
Translate the pseudocode into a C++ program. You must comment your program including comments at the top of the file that explains what the program does and comments for every line of code that explains what is happening for the line of code. Apply troubleshooting and testing strategies to ensure your code compiles, runs, and provides accurate results.
Submit 2 files:
Your Word document with your pseudocode.
Your .cpp file