Assigment 4.docx - Shenell Tyson COM 204 6 Design the logic for a program that allows the user to enter a number Display the sum of every number 1

Assigment 4.docx - Shenell Tyson COM 204 6 Design the logic...

This preview shows page 1 - 4 out of 9 pages.

Shenell Tyson COM 204 6. Design the logic for a program that allows the user to enter a number. Display the sum of every number 1 through the entered number. 9A. Design an application for the Homestead Furniture store that gets sales transaction data, including an account number, customer name and purchase price. Start Declarations Num account num Balance due Num month Num payment amt String custname Num total_months =12 String prompt 1 = “enter an account number” String prompt 2 = “enter the customer name, purchase price” Housekeeping() DetailLoop() Finishup() Stop
Shenell Tyson COM 204 Housekeeping() Detail() Finishup() Stop Housekeeping() Output prompt1 Input account num Return Detail() Output prompt2 Input custname, balancedue Output accountnum, custname, Month = 1 Payment amt = balance due/total months While month = total months Balance due = balance due – payment amt Output month, balance due Month = month + 1 Endwhile Return Finishup() Ouput “end of program” Return 9B. Start Declarations Num account num Balance due Num month Num payment amt String custname Num total_months =12 String prompt 1 = “enter an account number” String prompt 2 = “enter the customer name, purchase price” Housekeeping() While account num<> Detailloop() Endwhile Finishup() Stop Housekeeping() Output prompt1
Shenell Tyson COM 204 Input account num Return Detail() Output prompt2 Input custname, balancedue Output accountnum, custname, Month = 1

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture