Lab No. 7 Using If Else and Loops
Lab No. 7 Using If Else and Loops
Write a program that will ask the user for 10 values and only print those that are divisible by 7.
Expected Output:
Enter a number: 45
You entered 45.
Enter a number: 14
Enter a number: 21
You entered 21.
Enter a number: 30
.
.
.
Lab Task 2
Write a C++ program in which user enter his NTS and F.Sc marks and your program help
student in selection of university. Based on these marks Student will be allocated a
seat different department of different university.
University Departments Criteria
Name
Oxford IT Above 70% in Fsc. and 70 % in NTS
University Electronics Engr: Above 70% in Fsc. and 60 % in NTS
Telecommunication Above 70% in Fsc. and 50 % in NTS
MIT IT 70% -60 % in Fsc. and 50 % in NT
Chemical Engr: 59% - 50 % in Fsc. and 50 % in NTS
Computer Engr: Above 40% and below 50 % in Fsc. and 50 % in NTS