Skip to content
VUBuddy

CS101 Assignment 3 by VU Expert

Introduction to Computing PDF 188 KBUpdated 23 Oct 2026
Assignment CS101 Assignment 3 by VU Expert PDF 188 KB
vubuddy.com
Type
Assignment
Course
CS101 Introduction to Computing
Size
PDF 188 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 188 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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;

All CS101 files →
CS101 Introduction to Computing All CS101 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.