Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what is the correct code of the souyrce code #include using namespace std; int main ( ) { double itemOne = 1 2 . 9

what is the correct code of the souyrce code #include
using namespace std;
int main()
{
double itemOne =12.95, itemTwo =24.95, itemThree =6.95, itemFour =14.95, itemFive =3.95;
double SubTotal = itemOne + itemTwo + itemThree + itemFour + itemFive;
double SalesTax = SubTotal *0.06;
double Total = SubTotal + SalesTax;
cout << "Item 1 is 12.95"<< itemOne << endl;
cout << "Item 2 is 24.95"<< itemTwo << endl;
cout << "Item 3 is 6.95"<< itemThree << endl;
cout << "Item 4 is 14.95"<< itemFour << endl;
cout << "Item 5 is 3.95"<< itemFive << endl;
cout << "SubTotal $"<< SubTotal << endl;
cout << "Sales Tax $"<< SalesTax << endl;
cout << "Total $"<< Total << endl;
return 0;
}

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

What is meant by the 95% confidence interval of the mean?

Answered: 1 week ago

Question

=+a) Which will be smoother, a 50-day or a 200-day moving average?

Answered: 1 week ago