Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
833 B
5
Indexable
Never
#include <iostream>
#include <windows.h>

using namespace std;

float unit, per_unit, mis_amount;
float tuition_total, mis_total, lab_total, all_total;

void getTutitioFee() {
	cout << "Enter Tuition Fee Info\n";
	cout << "Total Unit: ";
	cin >> unit;
	cout << "Amount per unit: ";
	cin >> per_unit;
	tuition_total = per_unit * unit;
}

void getLabFee() {
	cout << "Enter Labolatory Fee Info\n";
	cout << "Total Unit: ";
	cin >> unit;
	cout << "Amount per unit: ";
	cin >> per_unit;
	lab_total = per_unit * unit;
}

void getMiscellaneous() {
	mis_total = 3600;
}

main() {
	char choice;
	
	getTutitioFee();
	system("cls");
	getLabFee();
	system("cls");
	getMiscellaneous();
	system("cls");
	all_total = tuition_total + lab_total + mis_total;
	system("cls");
	cout << "Total Tuition Fee: " << all_total;
	system("pause");
	return 0;
}
Leave a Comment