Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There are also 10 bonus points. To earn the bonus points you have to complete the Participation Activities and challenge Activities for zyBooks/2ylabs unit 2

image text in transcribed
There are also 10 bonus points. To earn the bonus points you have to complete the Participation Activities and challenge Activities for zyBooks/2ylabs unit 2 These have to be completed by the due date for lab lesson 2. For example, if you complete 89% of the activities you will get 8 points (there is no rounding). There are bonus points for units 1 through 7 of rybooks/zylabs. General overview Write a Ch+ program that will compute the total sales tax on a $95 purchase. Assume the state sales tax is 6% and the county sales tax is 2%. You only have to output the total sales tax. You should not output any text nor should to output the S. Make sure you end your output with the end of * new line character. You must calculate the total taxes in the program, and then output them. Do not calculate them outside of the program Your program should assign the value of 95 to a variable, you should not read in the value from cin. If you try to read in the value from cin your program will not pass the test in Submit mode, Create vorables for the purchase price, state sales tax rate, county sales tax rate, and the total sales tax that you will be calculating. Give these variables meaningful names. The following are NOT meaningful variable names, st, co, ts, Examples of a meaningful variable names would be purchase price Failure to follow the requirements for lab lessons can result in deductions to your points, even if you pass the validation tests. Logic errors, where you are not actually implementing the correct behavior can result in reductions even if the test cases happen to return valid answers. This will be true for this and all future lab lessons Expected output You will get yellow highlighted text when you run the tests If your output is not what is expected. This can be because you are not getting the correct result it could also be because your formatting does not match what is required. The checking that zyBooks does is very exacting and you must match it exactly More information about what the yellow highlighting means can be found in course "How to use XyBooks'especially section '14 zylab basics Finally, do not include a system("pause"), statement in your program. This will cause your verification steps to fall Note that the mystent "pause"); command runs the pause command on the computer where the program is running. The pause command is a Windows command. Your program will be run on a server in the cloud. The cloud server may be running a different operating system (such as Linux)

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 And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions