Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello my C + + program wontt run & i can figure out why. Could you help me #include #include using namespace std; int readAccountNo
Hello my C program wontt run & i can figure out why. Could you help me
#include
#include
using namespace std;
int readAccountNo
int accNo;
do
cout "Enter an account number even positive, less than : ;
cin accNo;
while accNo accNo accNo ;
return accNo;
double readBalanceAmount
double balance;
do
cout "Enter the opening balance amount $ $: ;
cin balance;
while balance balance ;
return balance;
double calculateDepositdouble balance
double deposit;
cout "Enter the amount to deposit: ;
cin deposit;
return balance deposit;
double addReturnBonusdouble openingBalance
double bonusPercentage ;
double bonus bonusPercentage openingBalance;
return openingBalance bonus;
void printAllInfoint accNo double balance int accNo double balance int accNo double balance int accNo double balance
cout fixed setprecision;
cout "Account Balances for All Accounts:" endl;
cout "Account Number: accNotBalance: $ balance endl;
cout "Account Number: accNotBalance: $ balance endl;
cout "Account Number: accNotBalance: $ balance endl;
cout "Account Number: accNotBalance: $ balance endl;
int main
cout "Developer's Details:" endl;
for int i ; i ; i
cout "Name: Your Name endl;
cout CPS Section: Your Section endl;
cout "Due Date: Due Date endl;
int account account account account;
double balance balance balance balance;
cout "Enter data for customers:" endl;
for int i ; i ; i
cout "For customer i : endl;
if i
account readAccountNo;
balance readBalanceAmount;
else if i
account readAccountNo;
balance readBalanceAmount;
else if i
account readAccountNo;
balance readBalanceAmount;
else
account readAccountNo;
balance readBalanceAmount;
balance addReturnBonusbalance;
balance addReturnBonusbalance;
balance addReturnBonusbalance;
balance addReturnBonusbalance;
char choice;
do
cout "Main Menu:" endl;
cout A Do deposit" endl;
cout B View accounts" endl;
cout C Exit the program" endl;
cout "Enter your choice: ;
cin choice;
switchchoice
case A:
cout "Select an account to do a deposit:" endl;
Implement deposit functionality for selected account
break;
case B:
printAllInfoaccount balance account balance account balance account balance;
break;
case C:
cout "Exiting the program. Goodbye!" endl;
break;
default:
cout "Invalid option. Please choose a valid option A B or C endl;
whilechoice C;
return ;
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