CS101 Assignment 3 Solution Fall 2022
CS101 Assignment No 3 Solution 2022 with File


Dear Student, Here we provide you CS101 Assignment 2 Solution 2022 with Complete Code and Files. Easy to See Correct Solution from this post and Download CS101 Assignment 2 Solution Fall 2022 PDF and Docx Files Below.\


LATEST CS101 2022 ASsIGNMENT HERE


Here: CS101 Assignment 1 Solution 2022



CS101 ASSIGNMENT 3 SOLUTION FALL 2022 

Provide by VU Answer


Total Marks: 20

Due Date: 15 Feb 2022


Assignment Submission Instruction:

You are supposed to submit your assignment only in .doc or Docx format.


Important Note:

  • Your solution file must be a Microsoft Word document (in .doc or .docx file extension).

  • Solution file must contain both code and the output screenshot of your code.

  • It is mandatory to use your name and Student ID in the program (No marks will be awarded if the student’s personal information is copied or any other information is used).

  • You can use any random number as obtained marks in all 5 subjects that are required for calculations.


Q1. ....


CODE Solution:


#include <iostream> 

#include <cstdlib> 

using namespace std; 

int main()

{


string name="Muhammad Sarim"; // Name 

string vuID = "BC190561282"; // VU ID

string div; 

int sub1, sub2, sub3, sub4, sub5; 

int total;

float avg;


cout<<"Enter Marks for First Subject: "; 

cin>>sub1;

cout<<"Enter Marks for Second Subject: "; 

cin>>sub2;

cout<<"Enter Marks for Third Subject: "; 

cin>>sub3;

cout<<"Enter Marks for Fourth Subject: ";

cin>>sub4;

cout<<"Enter Marks for Fifth Subject: ";

cin>>sub5;

cout<<""<<endl;


total = sub1+sub2+sub3+sub4+sub5; avg = total/5.0;


if(avg>=60){

div = "First Division";

}


else if(avg>=45 && avg<60){

div = "Second Division";

}


else if(avg>=33 && avg<45){

div = "Third Division";

}


else{

div = "Fail";

}

 

system("cls");

cout<<"Student Name: "<<name<<endl; 

cout<<"Student ID: "<<vuID<<endl;

cout<<"Obtained Marks: "<<total<<"/500"<<endl; 

cout<<"Average: "<<avg<<"%"<<endl;

cout<<"Division:" <<div<<endl; 

return 0;

}


OUTPUT SCREENSHOT


CS101 Assignment Solution 3 2022



1. CS101 Assignment 3 Solution 2022 PDF


1. DOWNLOAD


2. CS101 Assignment 3 Solution 2022 Word File


2. DOWNLOAD


3. CS101 Assignment 3 Solution 2022 Code


3. DOWNLOAD 



For any Help or Suggestion Connect with Us.


REGARD SARIM 

WHATSAPP +923162965677


PLEASE NOTE:

Don't copy-paste the same answer.

Make sure you can make some changes to your solution file before submitting the solution.

Before submitting an assignment check your assignment requirement file.