Write Program Solves Following Problem One Marker Costs 80 Cents Package Five Markers Cost Q43808423
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! Show transcribed image text 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!
Expert Answer
Answer to Write a program that solves the following problem: One marker costs 80 cents. A package of five markers costs $3.50. Thi…
OR