Develop Psudocode - Programming Logic and Design / Modules, Case structures, and
ID: 3602606 • Letter: D
Question
Develop Psudocode - Programming Logic and Design/Modules, Case structures, and Logical Operators.
Step 2 # Develop the Pseudocode
Question: design the logic for a program that calculates the service charge customers owe for writing a bad check. The main program should contain three modules.
The service charge is computed as $20 basic fee plus 2 percent of the check amount.
Displays the total charge the user will pay for writing a bad check.
EX:
odd Cust nom Stork sling Cuet nome,dould- Balon AMCLExplanation / Answer
start
Declare custName,balance,checkAmount As Variables
print "Enter your name"
input name
print "Enter balance"
input balance
print "Enter check amount"
input checkAmount
if(checkAmount > balance) Then{
print "Bad Check:Service charge is $", 20 + .02*checkAmount
}
else
{
print "Not a bad check: Service charge is 0"
}
stop
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.