pak u

 avatar
unknown
c_cpp
2 years ago
903 B
9
Indexable
#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;
	per_unit_string = toString(per_unit);
	tuition_total = per_unit * unit;
}

void getLabFee() {
	cout << "Enter Labolatory Fee Info\n";
	cout << "Total Unit: ";
	cin >> unit;
	unit_string = toString(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;
}
Editor is loading...
Leave a Comment