Advertisement
jhnksr

CORV2, JOHN KAISER LLARVES

Sep 20th, 2023 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.06 KB | Software | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6.    
  7.     int term;
  8.     char schoolyear[10];
  9.     char name[100];
  10.     char studentno[100];
  11.     char college[100];
  12.     char program[100];
  13.    
  14.     cout << "Name: ";
  15.     cin.getline(name,99);
  16.     cout << "Student Number: ";
  17.     cin.getline(studentno,99);
  18.     cout << "College: ";
  19.     cin.getline(college,99);
  20.     cout << "Program: ";
  21.     cin.getline(program,99);
  22.     cout << "Term: ";
  23.     cin >> term;
  24.     cout << "School Year: ";
  25.     cin.getline(schoolyear,9);
  26.     cin >> schoolyear;
  27.     system("cls");
  28.     system("pause");
  29.     system("cls");
  30.  
  31.     cout << "" << endl;
  32.     cout << "" << endl;
  33.     cout << "CERTIFICATE OF REGISTRATION" << endl;
  34.     cout << "" << endl;
  35.     cout << "----------------------------------------------------------------------------------------------------------------------------------\n" << endl;
  36.     cout << "" << endl;
  37.     cout << "ENROLLMENT STATUS:  " << "Enrolled" << endl;
  38.     cout << "Term: 1" << setw(30) << "School Year: 20232024" << endl;
  39.     cout << "" << endl;
  40.     cout << "Student #: 202311502" << setw(50) << "College: Computer Studies" << setw(20) << "Program: BSCSSE" << endl;
  41.     cout << "Name: LLARVES, JOHN KAISER GARCIA" << setw(25) << "Year Level: 1" << setw(32) << "1st term, SY 20232024" << endl;
  42.     cout << "" << endl;
  43.     cout << "---------------------------------------------------------------------------------------------------------------------------------\n" << endl;
  44.     cout << "|  Courses  |                 Title                   | Section | Units | Days |                Time               |     Room    |" << endl;
  45.     cout << "---------------------------------------------------------------------------------------------------------------------------------\n" << endl;
  46.     cout << "|  CCS0001  | INTRODUCTION TO COMPUTING (LEC)         |   TN09  |   2   |  T   |         10:00:00-12:40:00         |    ONLINE   |" << endl;
  47.     cout << "|  CCS0001L | INTRODUCTION TO COMPUTING (LAB)         |   TN09  |   1   |  S   |         10:00:00-12:50:00         |     E608    |" << endl;
  48.     cout << "|  CCS0003  | COMPUTER PROGRAMMING (LEC)              |   TN09  |   2   |  F   |         10:00:00-12:40:00         |    ONLINE   |" << endl;  
  49.     cout << "|  CCS0003L | COMPUTER PROGRAMMING (LAB)              |   TN09  |   1   |  TH  |         10:00:00-12:50:00         |     E608    |" << endl;
  50.     cout << "|  GED0004  | PHYSICAL EDUCATION 1                    |   TN09  |   3   | S/TH |13:00:00-14:50:00/13:00:00-14:50:00| F1105/F1105 |" << endl;
  51.     cout << "|  GED0006  | PERSONAL AND PROFESSIONAL EFFECTIVENESS |   TN09  |   2   | F/T  |07:00:00-08:20:00/07:00:00-08:20:00|    ONLINE   |" << endl;  
  52.     cout << "|  GED0009  | READINGS IN PHILIPPINE HISTORY          |   TN09  |   3   | S/TH |07:00:00-08:50:00/07:00:00-08:50:00|  F612/F612  |" << endl;
  53.     cout << "|  GED0011  | SCIENCE, TECHNOLOGY, AND SOCIETY        |   TN09  |   3   | F/T  |14:00:00-15:50:00/14:00:00-15:50:00|    ONLINE   |" << endl;
  54.     cout << "| TOTAL UNITS 17                                                                                                                 |" << endl;
  55.     cout << "-------------------------------------------------------------------------------------------------------------------------------\n" << endl;
  56.     cout << "" << endl;
  57.    
  58.     int misc, adminfee, itelab1, itelab3, id, units;
  59.     int b = 1998;
  60.     cout << "Units: ";
  61.     cin >> units;
  62.     int c = units * b;
  63.     cout << "Your Unit Tuition is: " << c << endl;
  64.     cout << "Misc. Fee: ";
  65.     cin >> misc;
  66.     cout << "Admission Fee: ";
  67.     cin >> adminfee;
  68.     cout << "ITE Laboratory Fee (CSS0001): ";
  69.     cin >> itelab1;
  70.     cout << "ITE Laboratory Fee (CSS0003): ";
  71.     cin >> itelab3;
  72.     cout << "ID Fee: ";
  73.     cin >> id;
  74.     int d = c + misc + adminfee + itelab1 + itelab3 + id;
  75.     cout << "TOTAL TUITION FEE: " << d << ".00" << endl;
  76.     cout << "" << endl;
  77.     cout << "" << endl;
  78.     int midterm = d * 0.3;
  79.     int downpay = d * 0.4;
  80.     int final = d * 0.3;
  81.    
  82.     cout << "Down Payment (Upon Enrollment) 40%: " << downpay << endl;
  83.     cout << "Midterm (Oct 09 - Oct 11 2023) 30%: " << midterm << endl; 
  84.     cout << "Final (Nov 30 - Dec 04 2023) 30%: " << final << endl;
  85.  
  86.  
  87.  
  88.     return 0;
  89.  
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement