CS101 Assignment NO.3 Solution Fall 2022

0

Vu All Subjects Assignment Quiz GDB Handouts Available here 


Aslam U Alaikum!

Dear Students

In this post we are providing you CS201p assignment 3 solution Fall 2022 100% correct or right solution. You’ll Download assignment Solution File From below download (Click Here) link interface.

You should never copy paste the same answer which we are providing. Please do make some changes in the solution file.
Answer
//Cs201 Assignment No.3 Fall 2022
//BY Orange monkey 🐒🐒
#include <iostream>
using namespace std;
int main()
{
string name="Orange monkey"; 
//Yaha pr name likhna apna
string vuID = "BC204040030"; 
//Yaha pr Id likhni hai apni
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;
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;
}

If you appreciate our work, please share our website vuonlinehelp.blogspot.com with your friends.

We are here to provide Latest Virtual University Assignment Solutions, GDB Solutions, Quiz Solution, Midterm Past Papers, and Final term Past Papers in this website.



Post a Comment

0Comments

Thanks everone

Post a Comment (0)