-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCS201 Assignment 1 Spring 2022 .cpp
More file actions
35 lines (28 loc) · 1.01 KB
/
CS201 Assignment 1 Spring 2022 .cpp
File metadata and controls
35 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <iostream>
using namespace std;
int main()
{
int numberOfCourses = 6;
int studentId = 2;
int add = 0;
int i = 1;
cout << "\nMy Name is Muhammad Saim Raza" << endl;
cout << "MY VU id is BC210419616" << endl;
cout << "\nCourse List in current semester" << endl;
cout << "1. CS201 - Introduction to Programing" << endl;
cout << "2. CS201P - Introduction to Programing (Practical)" << endl;
cout << "3. ENG201 - Business and Technical English Writing" << endl;
cout << "4. MGT301 - Principles of Marketing" << endl;
cout << "5. MTH101 - Calculus And Analytical Geometry" << endl;
cout << "6. PHY101 - Physics" << endl;
cout << "\nTotal Number of Courses = " << numberOfCourses << endl;
cout << "First digit of VU ID = " << studentId << endl;
add = studentId + numberOfCourses;
cout << "Sum of first digit of VUID and total courses = " << add << endl;
cout << "\n";
while (i <= add)
{
cout << i << ": Welcome to CS201 Introduction to Programming " << endl;
i++;
}
}