0% found this document useful (0 votes)
26 views

Assignment # 2: Programming Fundamentals 20 Shehzad Latif 23 January, 2019 BSCS-1 Semester Hu-Skp & Euro

This programming assignment contains 4 questions that assess fundamentals like loops and switch statements. Students must use for loops to calculate the product of even numbers between 75-95, while loops to calculate 5! and 6! and their sum, and do-while loops to divide products of odd 35-50 numbers by the factorials. The final question tests switch statements by using them to determine letter grades based on percentages. This assignment is worth 20 total marks and questions may appear on mid or final exams.

Uploaded by

Hash zee
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Assignment # 2: Programming Fundamentals 20 Shehzad Latif 23 January, 2019 BSCS-1 Semester Hu-Skp & Euro

This programming assignment contains 4 questions that assess fundamentals like loops and switch statements. Students must use for loops to calculate the product of even numbers between 75-95, while loops to calculate 5! and 6! and their sum, and do-while loops to divide products of odd 35-50 numbers by the factorials. The final question tests switch statements by using them to determine letter grades based on percentages. This assignment is worth 20 total marks and questions may appear on mid or final exams.

Uploaded by

Hash zee
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

ASSIGNMENT # 2

Subject Programming Fundamentals Total Marks 20


Teacher SHEHZAD LATIF Submission Date 23rd January, 2019
st
Program BSCS-1 Semester Campus HU-SKP & EURO
Note:
This Assignment will be a part of your syllabus. Any question from this assignment may
be given to you in Mid/Final Term Exam.

Question No. 1: Write a program to calculate the product of even integer’s b/w 75 – 95
using for loop.

Question No. 2: Write a program to calculate the factorial of 5! & 6! using while loop.

Also calculate their sum.

Questions No. 3: Write a program to divide the product of odd integers b/w 35 -50 with
the product of factorials of 5 & 6 using do-while loop.

Questions No.4: What is switch statement? Find grades of students using switch
statement by calculating their percentages.

You might also like