Question
Write a C++ program called assignment4.cpp that will implement a menu for the user to choose between grade calculation (refer to Assignment#2) or banking activity
Write a C++ program called "assignment4.cpp" that will implement a menu for the user to choose between grade calculation (refer to Assignment#2) or banking activity (refer to Assignment#3). The program should also check for valid inputs (using loops). The program would allow user to perform the chosen activity multiple times (implement loops) based on the user input. In addition to this, all specifications for grade calculation (Assignment#2) and banking activity (Assignment#3) would also apply.
In your program you are expected to use conditional (IF-ELSE/SWITCH/CONDITIONAL OPERATORS) statements, loops (FOR/WHILE/DO-WHILE) and other decision control statements, and input/output objects that you have already learned about.
The program starts with a menu for the user to choose between the grade calculation or banking activity You are also expected to check for valid inputs (using a loop) and should print out error messages if invalid inputs are entered.
Based on their choice, they are prompted to enter the number of times (less than 10) they want to calculate a grade or perform transactions in their bank account You are expected to implement loops that will run only a finite number of times.
In addition to above specifications, you are expected to follow all specifications for grade calculation (Assignment#2) and banking activity (Assignment#3).
BONUS 5 POINTS on this assignment will be given to those who will implement break and continue statements in their code.
Sample Output Below are sample outputs with input in bold and underlined. Your output does not need to match directly.
Sample 1
CSE 100 ASSIGNMENT 4
What would you like to do today?
1) Calculate Grades for Students
2) Perform Banking Activity Your choice is 1
WELCOME TO GRADE CALCULATIONS
You are only allowed to calculate grades for up to 10 students at a time
How many students would you like to calculate the grades for?
You entered 12 Error!!! Wrong number!!! Want to try again?
How many students would you like to calculate the grades for?
You entered 2
Enter the Students Quiz Score: 15
Error!!! Quiz score can not be more than 10!!!
Enter a valid Quiz Score for the student 8
Enter the Students
Pre Class Activity Score: 2.2
Enter the Students In Class Activity Score: 2.4
Enter the Students Lab Score: 13.9
Enter the Students Assignment Score: 18.5
Enter the Students Test Score: 47
You total calculated score is: 92.00
The letter grade you will be assigned for the course is:
A Enter the Students Quiz Score:
..
..
The letter grade you will be assigned for the course is:.
Sample 2
CSE 100 ASSIGNMENT 4
What would you like to do today?
1) Calculate Grades for Students
2) Perform Banking Activity
Your choice is 2
WELCOME TO SBC BANK
How many transactions would you like to do today?
You entered 3
What would you like to do now?
1) Deposit
2) Withdraw
3) Transfer
4) Display Balance
Your choice is 2
Please choose the account
C for Checking
S for Savings
Your choice is C
Please enter the amount you would like to transfer-$ 800.87
!!!You have entered an invalid amount!!! You do not have available balance for this withdrawal!!!
Your available balance in this account is $200
Please enter an amount less than that- $ 113.50
Your current balance in Checking Account is $86.50
Your current balance in Savings Account is $800.00
What would you like to do now?
1) Deposit
2) Withdraw
3) Transfer
4) Display Balance
..
..
..
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started