Skip to main content

The university would like to remind students to pick up thei

Page 1

The university would like to remind students to pick up their books at Prompt the student for the number of courses being taken. Use a for loop to prompt the student for the price of each book based on the number of courses. After entering each price, display the total price of all books combined. Then, prompt the user to select a shipping option: delivery or pick-up. If delivery is chosen, add shipping charges to the total price; if pick-up is selected, no additional charges are applied. Use an if-then-else statement to determine if shipping charges apply. If there are shipping charges, display the total charges along with the shipping date. If there are no charges, display the total charges and a message indicating that the books can be picked up at the bookstore. Additionally, create a memo section in a template format including pseudocode that describes the revised program. Append a flowchart illustrating the algorithm for the program based on the revised needs.

Paper For Above instruction The objective of this program is to assist students in purchasing textbooks, calculating total costs including optional shipping, and providing clear instructions for pickup or delivery. It demonstrates control structures such as loops and conditional statements, offering a comprehensive understanding of basic programming logic applied in a real-world application. The program begins by prompting the student for the number of courses they are enrolled in, which determines how many book prices they need to input. Using a for loop, the program iterates through each course, requesting the specific book price. The individual prices are accumulated to compute the total cost of all textbooks. After gathering all book prices, the program displays the total amount due based on the inputted prices. Next, the program prompts the user to select their preferred shipping option—either delivery or pick-up. Based on this input, the program uses an if-then-else statement to determine if shipping charges should be added. If the student opts for delivery, a fixed or variable shipping fee is appended to the total, and the program then displays the total charges along with the scheduled shipping date. If pickup is selected, no additional charges are added, and a message informs the student that their books are ready for pickup at the bookstore. This logical structure ensures flexibility and clarity, helping students understand their purchase process and costs. The program also embodies good programming practices—prompting for user inputs, looping through data collection, and conditionally computing additional fees—all essential concepts in


Turn static files into dynamic content formats.

Create a flipbook
The university would like to remind students to pick up thei by Dr Jack Online - Issuu