Question: Complete the C++ instructions column in Figure 4-30. IPO chart information C++ instructions Input Latex price Mylar prce Latex purchased Mylar purchased sales tax rate
Complete the C++ instructions column in Figure 4-30.

IPO chart information C++ instructions Input Latex price Mylar prce Latex purchased Mylar purchased sales tax rate (6) double latexPrice 0.0; double mylarPrice 0.0; int latexPurchased - 0; int mylarPurchased - 0; const double TAX_RATE = .06; Processing double totalLatexCost - 0.0; double totalMylarCost 0.0%3; double subtotal - 0.0; double salesTax = 0.0; total latex cost total Mylar cost subtotal sales tax Output total cost double totalCost 0.0; Algorithm: 1. enter latex price, Mylar price, latex purchased, and Mylar purchaed 2. caleulate total latex cost by multiplying latex purchased by latex price 3. calculate total Mylar cost by multiplying Mylar purchased by Mylar price 4. calculate subtotal by adding total latex cost to total Mylar cost 5. calculate sales tax by multiplying subtotal by sales tax rate 6. calculate total cost by adding sales tax to subtotal 7. display total cost
Step by Step Solution
3.41 Rating (179 Votes )
There are 3 Steps involved in it
Algorithm 1 enter latex price Mylar price latex purchased and Mylar purchased 2 ca... View full answer
Get step-by-step solutions from verified subject matter experts
