cs101 assignment 2 solution 2023 | cs101 assignment 2 2023 |cs101 assignment 2 solution

Опубликовано: 01 Октябрь 2024
на канале: Learning With Happy Mood
184
3

Questions No. 01 Marks (15 for code + 5 for output screenshot)
Deciding the Final Grads of various students manually is a tedious and challenging task. Your job is to
develop a C++ program that should be capable of calculating the Total and Average Marks of a student.
Based on the above calculations the program should award the correct Final Grad to a student. Following
is the sample screenshot of the Input and Output of a student.
Working Mechanism:
The program should allow the users to enter their OWN VU-ID and any random marks for four subjects
CS, Math, Pak Study, and MGT. Then, the Total marks and Average Marks are calculated using
mathematical operators on variables for each subject. The program should use Control Structure “if or ifelse” and “Logical Operators” to decide the final grad of a student based on the Average Marks. Also,
the following score limits should be implemented in your program to grant Correct grad to a student as
per the following upper and lower score bounds/limits. For example, if a student got Average Marks 86
then Grad “A- “should be awarded as present in the sample screenshot.
How/What to submit as assignment solution?
Write your code in a compiler application and run it to generate the output. After that copy your
code and paste it into a Microsoft Word document your solution file. Also, take a screenshot of
your program’s output and paste it into the solution file along with the code.
You can use any online or offline C++ compiler for writing your code for the assignment solution. Few
links for the online compilers are given below:
https://www.onlinegdb.com/online_c++_...
https://www.w3schools.com/cpp/cpp_com...

*WhatsApp group link*
https://chat.whatsapp.com/KJ61QyWmYIV...
#cs101
#cs101assignment2
#cs101assignmentn02