Chat with us, powered by LiveChat C++ Switch case Lab – Chapters Covered ( Basic C++ syntax , Basic Expressions , various if & conditional statements , and flags / switches | Writedemy

C++ Switch case Lab – Chapters Covered ( Basic C++ syntax , Basic Expressions , various if & conditional statements , and flags / switches

C++ Switch case Lab – Chapters Covered ( Basic C++ syntax , Basic Expressions , various if & conditional statements , and flags / switches

Question Description
* Please read and thank you for your help*

Chapters Covered – ( Basic C++ syntax , Basic Expressions , various if – if else & conditional statements , and flags / switches)

!!! Please don’t use methods more advanced than what’s listed above !!!

////////////////////////////////////////////////////////// C++ “Switch and Case” Lab instructions

An on line music store offers the following package options:

Package A:

Price $4.99 per month. You get 10 free songs and $0.99 per song after that.

Package B:

Price $9.99 per month. You get 20 free songs and $0.59 per song after that.

Package C:

Price $14.99 per month. You get 30 free songs and $0.29 per song after that.

In this lab you ask for the user of what package they have and how many songs they downloaded. Then you report the total due.
Sales tax is 6%.
You must use switch case for the package choice.
Ifs are allowed AFTER that in your project (to see if the number of downloaded songs is legal, etc.).
If you have an if statement (or conditional operator) inside the switch statement then you are doing something wrong.
If you are using an if (or conditional operator) to distinguish what packet choice they have you are breaking the requirements.
If you have repeated code you are doing something wrong. Future labs may need to have if inside the switch, but this one doesn’t not. See how the situation is handled in this handout that improves an example of a program found in your book so it no longer has repeated code.
The switch is responsible for anything that has to do with the package choice. The if that you need to have after the switch should NOT have the package choice in its condition. It is there to see if the number of songs is legal, etc. Anything that depends on the package choice should be “resolved” in the switch!
If there are not extra charges you don’t have to say anything (run the example exe with package A and 9 songs vs 11 songs).
Have your code repeat for ever for easy testing. For instructions on how to have your code repeat for ever click
Use constants when appropriate and use the EVERYWHERE instead of the corresponding literal!
Try not to have duplicated/repetitive code!
Do NOT mix the input phase with the processing phase and the output phase!

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order