78 446
Assignments Done
99,6%
Successfully Done
In September 2019

Answer to Question #24617 in C++ for aron

Question #24617
hi i want to ask for help to make a program that would compute the total tuition fee of a student,using the following data input: tuition fee:15,000 cash: two payments: three payments: output: total_tuition_fee sample output: enter name of student: enter initial tuition fee: enter mode of payments: (1)cash-10%discount (2)two payments-5% interest (3)three payments-10% interest
Expert's answer
#include<string>
#include<iostream>
using namespace std;
& &
int main (){
string s;
float a,b,c,d;
cout<<"enter name of student: ";
cin>>s;

cout<<"enter initial tuition fee: ";
cin>>a;


cout<<"enter mode of payments:\n(1)cash-10%discount\n(2)two payments-5% interest\n(3)three payments-10% interest : ";
cin>>b;

if (b==1)
a=a*0.9;
if (b==2)
a=a*0.95;
if (b==3)
a=a*0.9;
cout<<"the total tuition fee: "<<a<<endl;

&
system("PAUSE"); &
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions