Joe wants to record each transaction through the day and get the sum at the end of day. He would like to enter a transaction value into the program. Then he will let computer know there are more transactions to come by typing in Y. At the end of day, he will type a N and computer program should give him a sum of sales and exit. Please help him with this request. can you plz make it util.scanner form and can you make it so i can copy and past it plz thank you in advance

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

Transaction solution for Joe's Pizza, your friendly neighborhood pizza shop.

Joe wants to record each transaction through the day and get the sum at the end of day. He would like to enter a transaction value into the program. Then he will let computer know there are more transactions to come by typing in Y. At the end of day, he will type a N and computer program should give him a sum of sales and exit. Please help him with this request.

can you plz make it util.scanner form and can you make it so i can copy and past it plz

thank you in advance

 

 

Expert Solution
Step 1

Required:

Joe wants to record each transaction through the day and get the sum at the end of the day. He would like to enter a transaction value into the program. Then he will let the computer know there are more transactions to come by typing in Y. At the end of the day, he will type a N and the computer program should give him a sum of sales and exit. Please help him with this request.

 

Required code with comments for explanation and screenshot of both code and output has been provided in the next step.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning