Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that solves the following problem: One marker costs 80 cents. A package of five markers costs $3.50. This encourages people to buy
Write a program that solves the following problem: One marker costs 80 cents. A package of five markers costs $3.50. This encourages people to buy complete packages rather than having to break packages open. The tax is 6.5% of the total. The shipping cost is 5% of the total (before tax). Your program will prompt for a number of markers (an integer). It will calculate and display: The number of complete packages of markers The number of separate markers (hint: use // and %) The cost for the markers before shipping and tax The cost of shipping The cost of tax The total cost of the markers after shipping and tax are added (the grand total) Program requirements: . Your program must label output properly. Your program must display all monetary amounts to exactly two decimal points, preceded by a dollar sign. Here is a sample of what the program's input and output might look like. Your output does not have to look exactly like this, but it must contain the same information. In this example, the user inputs the number 7, and the program calculates and prints everything else. How many markers are you buying? 7 Number of packages: 1 Number of separate markers: 2 Subtotal: $5.10 Tax: $0.33 Shipping: $0.26 Total: $5.69 HINT: Write pseudocode or a flowchart before you start writing your 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