Question: Ask the user to input their first name and the first letter of their last name. Set their birth country or birth state in USA

Ask the user to input their first name and the first letter of their last name. Set their birth country or birth state in USA as a constant. Make up the value of the birth country or birth state. Then ask C++ to generate random numbers with no decimal place numbers from 1 to 10 in letters a, b, c, d, e, f, g. Ask the user to input 3 decimal place numbers to h, i.
Calculate the Result (number) based on the formula above and based on the numbers the user entered.
Print the size of first name, first letter of their last name, and the variables a and g -- on 4 separate lines in the output. Each line must be in a complete sentence containing the size of the variable. Then print out the first name, first letter of the last name, birth country or birth state, and the result of the formula above -- using a complete sentence all on ONE line in the output.
Include blank lines between sections of your codes and clear prompts. Include detailed comments in every section of the program.
The program must execute. If the program does not execute, an automatic start of 3 points deduction.

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 Programming Questions!