Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCI 14-02 Assignment 1, 25 Points, Due 2/05/19 Basie Input and Output Write a C++ application that will calculate AND print the customer's bill for

image text in transcribed
CSCI 14-02 Assignment 1, 25 Points, Due 2/05/19 Basie Input and Output Write a C++ application that will calculate AND print the customer's bill for mail order delivered machine parts from Shodd Dee Manufacturing. The customer can order 0, 1, 2 or more of each part. Shodd Dee sells: Whizbangs Gizmos Widgets Wabbits Elmers $ 5.00 each $10.15 each S 5.99 each S 7.75 each S 9.50 each Shodd Dee charges a 10% Shipping and Handling fee and a 95% Sales Tax sales tax rate ra sed to offset the state deficit). The Shipping and Handling fee is based on the total of the order. The Sales Tax is based on the total of the order EXCLUDING the Shipping and Handling fee. Your application should perform the following Enter the customer's account number. Allow a clerk to enter the number of Whizbangs, Gizmos, Widgets, Wabbits, Elmers for the customer. A zero quantity is a valid entry. You cannot ordera fraction of a part (i.e. 2.5 of a Whizbang cannot be ordered). Calculate the subtotal for each machine part, the Sales Tax, Shipping and Handling Fee and the Grand Total. Show an "itemized" display (that helps you debug any logic errors, confirms that the calculations are in fact . 2 Whizbangs@$5.00 3 Gizmos @ $10.15 correct and gives that user a "warm" fuzzy feeling about your calculations) $10.00 30.45 Optional: Although we haven't got here yet, you can Format the output to two decimal places with trailing zeroes. This is not required at this time. To store a string use a char array #includes-iomanip> #include using namespace std; int main) string cust acet; cout.precision(2); cout.setf(ios::fixed, ios::floatfield); cout.setf(ios::showpoint)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions