Question
Asked Oct 30, 2019
14 views

Could you help me with this question. This course is Programming 1. This is the question, "A customer in a store is purchasing five items. Write a program that asks for the price of each item, and then displays the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 6 percent." Round your output to two decimal places.

check_circle

Expert Answer

Step 1

Question is asking about to calculate the total, subtotal and the sale Tax of the 5 items purchase from the customer.

Followings variables and function has been used to solve this problem:

1.Variables: First_item, Second_item, Third_item , Fourth_item ,Fifth_item totl ,subTotl ,salestax

...

Want to see the full answer?

See Solution

Check out a sample Q&A here.

Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in

Engineering

Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by student like you
Show more Q&A
add
question_answer

Q: For this program you need to use Eclipse. Carefully read the instructions and write a program that r...

A: The program has the following algorithm: In the main method do the following operations,Get the empl...

question_answer

Q: How would I solve this problem in python language Grades a) Write a program that reads in the names ...

A: Program Instructions:Use the open() function to read from the file.Save the result o spilt() functio...

question_answer

Q: DESCRIBE IMPLEMENTING SUBPROGRAMS IN PRINCIPLES OF PROGRAMMING LANGUAGE? EXPLAIN IN BRIEFLY ABOUT TH...

A: Implementing subprograms in principles of programming language:A section of a code with a name is ca...

question_answer

Q: Improve the code below to include and (please describe) each activity pre and post-conditions. Thank...

A: Solution:Process model:The software process contains the four activities such as software specificat...

question_answer

Q: The following print code is to find out the ASCII code, character for the decimal codes,and comparis...

A: Reasons for displaying given output for each line of code: For “System.out.println((int)'1');”: From...

question_answer

Q: Provide a functional block diagram for a concept for an autonomous transportation and/or delivery th...

A: Autonomous transportation is the evolution of transport where the vehicles are connected to create a...

question_answer

Q: Which of the following code is used to check the web worker object is exists or not? if the web work...

A: The below given code snippet is used to check whether the web worker object is exist or not and if t...

question_answer

Q: Imagine you’d like a contractor to build a software application for you that operates like Windows C...

A: Statement of objectives (SOO):It provides an overall objective which serves as the basis for the sta...

question_answer

Q: Write a program to generate a random number between 1 - 100, and then display which quartile the num...

A: Program Instructions:Use the header files, constants, seed and random number generator given in the ...