- Type
- Assignment
- Course
- CS101 Introduction to Computing
- Size
- PDF 188 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2 of 3. Download the file for all 3 pages.
CS101 Assignment 3 Solution Fall 2022 Download File : vu expert Solutions
#include <iostream> #include <cstdlib> using namespace std; int main()
string name=" Enter Your Name"; ( Yaha pr name likhna apna) string vuID = " Enter Your VuID"; (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;
Related CS101 files
All CS101 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.