Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Give the c++ code corresponding to the following: 1. Declare a variable to store

ID: 3674265 • Letter: G

Question

Give the c++ code corresponding to the following:

1. Declare a variable to store the number of checks

2. Declare variables for two check amounts

3. Declare a variable for total (dollars)

4. Declare a variable for a checking account number

5. Declare a constant for interest rate of 4%

6. Increment the number of checks

7. Prompt for two check amounts

8. Input two check amounts

9. Add check amounts and store in total

10. Display the two check amounts and total

  

11. Write a complete program, including declarations.

Write a menu program that allows the user to select from the following menu:

English

Spanish

French

When the user selects one of the options, hello is printed in that language.

Explanation / Answer

Multiple Questions : Answering 1st.

1. Declare a variable to store the number of checks
   int num_of_checks;
2. Declare variables for two check amounts
   float check1_amount,check2_amount;
3. Declare a variable for total (dollars)
   float total_amount;
4. Declare a variable for a checking account number
   long checking_account_number;
5. Declare a constant for interest rate of 4%
   const float rate = 0.04;
6. Increment the number of checks
   num_of_checks++;
7. Prompt for two check amounts
   cout<<"Enter thetwo check amounts";
8. Input two check amounts
   cin>>check1_amount>>check2_amount;
9. Add check amounts and store in total
   total_amount = check1_amount + check2_amount;
10. Display the two check amounts and total
   cout<<"Check 1 amount = "<<check1_amount<<endl;
   cout<<"Check 2 amount = "<<check2_amount<<endl;
   cout<<"Total amount = "<<total_amount<<endl;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote