Question: In this lab, you will plan and create an algorithm for Cheryl Liu, the owner of a candy shop named Sweets-4-You. The problem specification is

 In this lab, you will plan and create an algorithm forCheryl Liu, the owner of a candy shop named Sweets-4-You. The problemspecification is shown in Figure 14-15. Problem specification Cheryl Liu is theowner of a candy shop named Sweets-4-You. She wants a program thatdisplays the following menu: Menu Options Add Records 2 Display Total Sales3 Exit If Cheryl selects option 1, the program should call a

function that prompts her to enter each salesperson's name and sales amount.

The function should save Cheryl's entries in a sequential access file named

In this lab, you will plan and create an algorithm for Cheryl Liu, the owner of a candy shop named Sweets-4-You. The problem specification is shown in Figure 14-15. Problem specification Cheryl Liu is the owner of a candy shop named Sweets-4-You. She wants a program that displays the following menu: Menu Options Add Records 2 Display Total Sales 3 Exit If Cheryl selects option 1, the program should call a function that prompts her to enter each salesperson's name and sales amount. The function should save Cheryl's entries in a sequential access file named sales.txt. If Cheryl selects option 2, the program should call a function that calculates and displays the total of the sales amounts stored in the sales.txt file. The program should end only when Cheryl selects option 3

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 Databases Questions!