Question
In this lab, you add a loop and the statements that make up the loop body to a Visual Basic program provided with the data
In this lab, you add a loop and the statements that make up the loop body to a Visual Basic program provided with the data fi les for this book. When completed, the program should calculate the total daily sales for a book store. Your loop should execute until the user enters the word done instead of a book title. After the user enters a book title, he or she should be asked to enter the transaction amount. Th e transaction amounts are listed in Table 5-1.
Note that variables have been declared for you, and the input and output statements have been written, but you must decide where they belong in the program.
1. Open the source code fi le named BookSales.vb using Notepad or the text editor of your choice.
2. Write a loop and a loop body that allows you to calculate a total of daily sales for the bookstore.
3. Save this source code fi le in a directory of your choice, and then make that directory your working directory.
4. Compile the source code fi le BookSales.vb.
5. Execute the program using the data listed in Table 5-1. Record the output of this program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started