QUESTION 6: in the TEXTBOX PROVIDED: WRITE the CODING for t…
QUESTION 6: in the TEXTBOX PROVIDED: WRITE the CODING for the FORMULAS * use the following Code for variable names & types in the formulas DECLARE the variable names & Data type= ===================== QUESTION 6- FORMULAS // VARIABLES AND VALUES TO USE: float markRate = 0.15; // markup rate float taxRate = 0.03; // tax Rate float comRate = 0.05; // commission Rate float baseDiscRate = 0.01; // base Discount Rate int carCost = 20000; // car Cost int noOfDisc = 1; // no of Discounts // *********************************** FORMULAS NEEDED ARE AS FOLLOWS: FINAL PRICE Found by : Subtract the DISCOUNT AMOUNT ..FROM.. the SUB PRICE ================================ DISCOUNT AMOUNT Found by : MULTIPLY the Customer Discount Rate by the Sub Price. ======================= CUSTOMER DISCOUNT RATE Found by : MULTIPLY the Base Discount Rate by the No of Discounts ======================= SUB PRICE Found by : Add TOGETHER: the Car Price, Commission Amount and Tax Amount. ======================= TAX AMOUNT Found by : MULTIPLY the Car Price by the Tax Rate. ======================= COMMISSION AMOUNT Found by : MULTIPLY the Car Price by the Commission Rate. ======================= CAR PRICE Found by : FIRST .. ADD 1 to the Markup Rate.. THEN.. MULTIPLY this by the Car Cost.