Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using only C++ programming Language. Develop a project/program that calculates t

ID: 3802107 • Letter: U

Question

Using only C++ programming Language.

Develop a project/program that calculates tuition and fees due based on the following conditions/situations: Users have the option to a maximum of 4 course selections and a minimum of 1. If only selected 1 course, there is an additional dollar 50 administrative fee assessed. Each course has a flat-fee of dollar 350. There is a textbook fee where you have to select the media for the textbook. If media for textbook is electronic, textbook fee is dollar 175. If hardbound, paper textbook, textbook fee is dollar 350. Tuition fee discount If a part-time employee of the university, discount is 25percentage If a full-time employee of the university, discount is 50percentage You may show the tuition and fee using a textbox or label.

Explanation / Answer

#include<iostream.h>
#include<conio.h>
int main(){
float Tutionfee;
float fees;
int choice;
int addFee;
char employeeType;
char mediaForTextbook;
int discount;
int textbookFee;
cout<< "Enter the number of subjects you want to choose";
cin>>choice;

//check for invalid selection of subjects
if(choice<1 || choice>4)
{
cout<<"invalid choice";
exit(0);
}
cout<<"Enter F for full time employee and P for part time employee";
cin>>employeeType;
cout<<"Enter E for electronic media or P for Paper Media for Textbook";
cin>>mediaForTextbook;
if(employeeType=='F')
discount=50;
else if(employeeType=='P')
discount=20;
else
{
cout<<"please enter valid employee type";
exit(0);
}
if(mediaForTextbook=='E')
textbookFee=175;
else if(mediaForTextbook=='P')
textbookFee=350;
else{
cout<<"please enter valid media for textbook";
exit(0);
}

if(choice==1)
{
addFee=50;
fees=addFee+350+textbookFee;
Tutionfee=fees-(discount*fees)/100;
cout<< "Tution Fees :"<<Tutionfee;
}
else
{
addFee=0;
fees=addFee+350+textbookFee;
Tutionfee=fees-(discount*fees)/100;
cout<< "Tution Fees :"<<Tutionfee;
}
   getch();
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote