Question: Problem statement: If a customer bought 5 or more bags of apples, he or she will pay only $ 2 . 0 0 per bag.

Problem statement:
If a customer bought 5 or more bags of apples, he or she will pay only $2.00 per bag. Otherwise, he or she will pay $3.00 per bag. Joe bought bags. Write a generalized program to calculate the total amount which Joe paid for his bags of apples. Print the total amount which Joe paid for his bags of apples.
Note: nbg is the variable you should use to represent the number of bags that Joe bought.
Question 4.
Produce the Flowchart of the control logic, the program design diagram (PDD), and the pseudocode of the problem in the spaces next.
Problem statement: If a customer bought 5 or more

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!