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

Write an EOFloop . Be sure to use all controlling logic AND thereminders to open

ID: 3613941 • Letter: W

Question


Write an EOFloop. Be sure to use all controlling logic AND thereminders to open and close the file. What, if any,additional variables will you need? (NOTE: do you needto perform the ReadData() module????. If not how do you get thedata into the program?)
NOTE: You need only focus on the main Start/Stopalgorithm. Copy the simple template from below (it’slisted in bold) and insert your loop as appropriate. PLEASE,do not reproduce the variable list OR the modules. Assumeglobal variables. Think logically and when it’s time tocall the modules, simply use the “perform” verb withthe appropriate module name. I want you to focus on the loopand the proper control statements.
Here’s a shell of a basic design for the exerciseWITHOUT the loop:
Variable List Acct characters CName characters Bal floating point Paymnt floating point
Start Declare variables Stop
Void DisplayData() Print “Account Number: ”, Acct Print “Customer Name: “, CName Print “Payment Amount: “, Paymnt Return
Void ReadData() Write “Enter Account Number: “ Read Acct Write “Enter Customer’s Name “ Read CName Write “Enter Balance Due “ Read Bal Return
Void CalcPayment() Paymnt = Bal / 12 Return
PROBLEM:
A loan company wants to print off a monthly payment amount forits customer. The input includes account number, customername and balance due. The output includes the account number,customer name, and monthly payment. To make it easier, we aregoing to assume that payment will occur within 12 months, the loansare interest-free (my kind of loan), and the customer will not beadding any additional amount to the balance. The monthlypayment calculation is the balance due divided by 12 months.

Write an EOFloop. Be sure to use all controlling logic AND thereminders to open and close the file. What, if any,additional variables will you need? (NOTE: do you needto perform the ReadData() module????. If not how do you get thedata into the program?)
NOTE: You need only focus on the main Start/Stopalgorithm. Copy the simple template from below (it’slisted in bold) and insert your loop as appropriate. PLEASE,do not reproduce the variable list OR the modules. Assumeglobal variables. Think logically and when it’s time tocall the modules, simply use the “perform” verb withthe appropriate module name. I want you to focus on the loopand the proper control statements.
Here’s a shell of a basic design for the exerciseWITHOUT the loop:
Variable List Acct characters CName characters Bal floating point Paymnt floating point
Start Declare variables Stop
Void DisplayData() Print “Account Number: ”, Acct Print “Customer Name: “, CName Print “Payment Amount: “, Paymnt Return
Void ReadData() Write “Enter Account Number: “ Read Acct Write “Enter Customer’s Name “ Read CName Write “Enter Balance Due “ Read Bal Return
Void CalcPayment() Paymnt = Bal / 12 Return
PROBLEM:

Write an EOFloop. Be sure to use all controlling logic AND thereminders to open and close the file. What, if any,additional variables will you need? (NOTE: do you needto perform the ReadData() module????. If not how do you get thedata into the program?)
NOTE: You need only focus on the main Start/Stopalgorithm. Copy the simple template from below (it’slisted in bold) and insert your loop as appropriate. PLEASE,do not reproduce the variable list OR the modules. Assumeglobal variables. Think logically and when it’s time tocall the modules, simply use the “perform” verb withthe appropriate module name. I want you to focus on the loopand the proper control statements.
Here’s a shell of a basic design for the exerciseWITHOUT the loop:
Variable List Acct characters CName characters Bal floating point Paymnt floating point
Start Declare variables Stop
Void DisplayData() Print “Account Number: ”, Acct Print “Customer Name: “, CName Print “Payment Amount: “, Paymnt Return
Void ReadData() Write “Enter Account Number: “ Read Acct Write “Enter Customer’s Name “ Read CName Write “Enter Balance Due “ Read Bal Return
Void CalcPayment() Paymnt = Bal / 12 Return
PROBLEM:
NOTE: You need only focus on the main Start/Stopalgorithm. Copy the simple template from below (it’slisted in bold) and insert your loop as appropriate. PLEASE,do not reproduce the variable list OR the modules. Assumeglobal variables. Think logically and when it’s time tocall the modules, simply use the “perform” verb withthe appropriate module name. I want you to focus on the loopand the proper control statements.
Here’s a shell of a basic design for the exerciseWITHOUT the loop:
Variable List Acct characters CName characters Bal floating point Paymnt floating point
Start Declare variables Stop
Void DisplayData() Print “Account Number: ”, Acct Print “Customer Name: “, CName Print “Payment Amount: “, Paymnt Return
Void ReadData() Write “Enter Account Number: “ Read Acct Write “Enter Customer’s Name “ Read CName Write “Enter Balance Due “ Read Bal Return
Void CalcPayment() Paymnt = Bal / 12 Return
PROBLEM:
A loan company wants to print off a monthly payment amount forits customer. The input includes account number, customername and balance due. The output includes the account number,customer name, and monthly payment. To make it easier, we aregoing to assume that payment will occur within 12 months, the loansare interest-free (my kind of loan), and the customer will not beadding any additional amount to the balance. The monthlypayment calculation is the balance due divided by 12 months.

Explanation / Answer

please rate - thanks I don't like answering pseudocode, since everyone does it in adifferent form, but hope this helps Variable List Acct characters CName characters Bal floating point Paymnt floating point Start Declare variables open file if error opening file        print error message and exitprogram do until eof      from file get Acct, CName, Bal      CalcPayment()      DisplayData() close file Stop Void DisplayData() Print “Account Number: ”, Acct Print “Customer Name: “, CName Print “Payment Amount: “, Paymnt Return Void ReadData() Write “Enter Account Number: “ Read Acct Write “Enter Customer’s Name “ Read CName Write “Enter Balance Due “ Read Bal Return Void CalcPayment() Paymnt = Bal / 12 Return

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