We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# 100% correct solution of assignment#1

enjoyyyyyy!!!!!

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

Views: 1089

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Attachments:

### Replies to This Discussion

agr wo likh dain to sahi ans nahi aaty

actually (calmarks/100)*4 formula say pahlay division ho jati hain or ans zero ho jata hai is liye main ne (calmark*4)/100 use kiya hai is say pahlay multiplication hoti hai ans thk ata hai

#include<iostream.h>
#include<conio.h>
#include<string.h>
int main()
{
char remarks[20];
int cal_marks=0,comp_marks=0,eng_marks=0;
float cal_gpa=0,comp_gpa=0,eng_gpa=0,total_gpa=0;
do{
cout"******************************Assesment system******************************";
cout"\nEnter marks of computer:";
cin>>comp_marks;
cout"\nEnter marks of calculas:";
cin>>cal_marks;
cout"\nEnter marks of english:";
cin>>eng_marks;
if(cal_marks<40)
{
cal_gpa=0;
}
else
{
cal_gpa=(cal_marks*4)/100;
}
if(comp_marks<40)
{
comp_gpa=0;
}
else
{
comp_gpa=(cal_marks*4)/100;
}
if(eng_marks<40)
{
eng_gpa=0;
}
else
{
eng_gpa=(cal_marks*4)/100;
}
total_gpa=(3*(cal_gpa+comp_gpa+eng_gpa))/9;

if(total_gpa==4)
{
char a[20]="Excellent";
strcpy(remarks,a);
}
else if(total_gpa>=3)
{
char a[20]="Good";
strcpy(remarks,a);
}
else if(total_gpa>=2)
{
char a[20]="Satisfactory";
strcpy(remarks,a);
}
else if(total_gpa>=1.6)
{
char a[20]="Pass";
strcpy(remarks,a);
}
else{
char a[20]="Fail";
strcpy(remarks,a);
}
if(cal_gpa==0)
{
cout"\nYou have to repeat calculas";
}
if(comp_gpa==0)
{
cout"\nYou have to repeat computer";
}
if(eng_gpa==0)
{
cout"\nYou have to repeat English";
}

cout"\nDo you want to calculate another result?(y/n):";
cin>>a;
system("cls");
}while(a=='y'||a=='Y');
}

#include <iostream.h>
#include <conio.h>
#include <string.h>
int main()
{
char remarks[20];
int calculus_marks=0,computer_marks=0,english_marks=0;
float calculus_gpa=0,computer_gpa=0,english_gpa=0,total_gpa=0;
do{
cout"******************************Assesment system******************************";
cout"\nEnter marks of Computer:";
cin>>computer_marks;
cout"\nEnter marks of Calculas:";
cin>>calculus_marks;
cout"\nEnter marks of English:";
cin>>english_marks;
if(calculus_marks<40)
{
cal_gpa=0;
}
else
{
calculus_gpa=(cal_marks*4)/100;
}
if(computer_marks<40)
{
computer_gpa=0;
}
else
{
computer_gpa=(cal_marks*4)/100;

if(english_marks<40)
{
english_gpa=0;
}
else
{
english_gpa=(cal_marks*4)/100;
}
total_gpa=(3*(cal_gpa+comp_gpa+eng_gpa))/9;

if(total_gpa==4)
{
char a[20]="Excellent";
strcpy(remarks,a);
}
else if(total_gpa>=3)
{
char a[20]="Good";
strcpy(remarks,a);
}
else if(total_gpa>=2)
{
char a[20]="Satisfactory";
strcpy(remarks,a);
}
else if(total_gpa>=1.6)
{
char a[20]="Pass";
strcpy(remarks,a);
}
else{
char a[20]="Fail";
strcpy(remarks,a);
}
if(calculus_gpa==0)
{
cout"\nYou have to repeat calculas";
}
if(computer_gpa==0)
{
cout"\nYou have to repeat computer";
}
if(english_gpa==0)
{
cout"\nYou have to repeat English";
}

cout"\nDo you want to calculate another result?Press y to continue:";
cin>>a;
system("cls");
}while(a=='y'||a=='Y');
*/
cout"\n\n**************** THANK YOU FOR USING THE PROGRAM ****************";
cout"\n\n**************** Imran Aslam ****************";
cout"\n\n**************** 0345-7860795 ****************";
}

/****************** CS201  Assignment No. 1  :    **********************/

#include<iostream.h>

#include<conio.h>

#include<string.h>

int main()

{

char remarks[20];

int cal_marks=0,comp_marks=0,eng_marks=0;

float cal_gpa=0,comp_gpa=0,eng_gpa=0,total_gpa=0;

do{

system("cls");                  //clear screen function

//following lines of code are for taking and printing Information

cout"******************************Assesment system******************************";

//Taking input for Marks of computer

cout"\nEnter marks of computer:";

cin>>comp_marks;

//Taking input for Marks of Calculas

cout"\nEnter marks of calculas:";

cin>>cal_marks;

//Taking input for Marks of English

cout"\nEnter marks of english:";

cin>>eng_marks;

// Now using codition if marks less than 40 cgpa show 0 else it will calulate

if(cal_marks<40)

{

cal_gpa=0;

}

else

{

cal_gpa=(cal_marks*4)/100;

}

if(comp_marks<40)

{

comp_gpa=0;

}

else

{

comp_gpa=(cal_marks*4)/100;

}

if(eng_marks<40)

{

eng_gpa=0;

}

else

{

eng_gpa=(cal_marks*4)/100;

}

// Now total of cgpa

total_gpa=(3*(cal_gpa+comp_gpa+eng_gpa))/9;

// Now condition if cgpa is 4 it will show A grade and excellent result

if(total_gpa==4)

{

char a[20]="Excellent";

strcpy(remarks,a);

}

// Now condition if cgpa is 3 it will show B grade and Good result

else if(total_gpa>=3)

{

char a[20]="Good";

strcpy(remarks,a);

}

// Now condition if cgpa is 2 it will show C grade and Satisfactory result

else if(total_gpa>=2)

{

char a[20]="Satisfactory";

strcpy(remarks,a);

}

// Now condition if cgpa is 1.6  it will show D grade and Pass result

else if(total_gpa>=1.6)

{

char a[20]="Pass";

strcpy(remarks,a);

}

// Now condition if cgpa is less than 1.6  it will show F grade and Fail result

else{

char a[20]="Fail";

strcpy(remarks,a);

}

if(cal_gpa==0)

{

cout"\nYou have to repeat calculas";

}

if(comp_gpa==0)

{

cout"\nYou have to repeat computer";

}

if(eng_gpa==0)

{

cout"\nYou have to repeat English";

}

//taking user's choice whether to calculate another result?(or not

cout"\nDo you want to calculate another result?(y/n):";

cin>>a;

system("cls");

}while(a=='y'||a=='Y');

}

Great effort ASH

CS201_Assignment_No_1_Solution

Attachments:

CS201_Solved_Assignment#01

Attachments:
brother c++ ke hamisha ".cpp" wale file upload kerna hai ok

Complete and Final Solution

#include<iostream>
#include<conio.h>
using namespace std;
main()

{
a:
system("cls");
cout "********************* Assesment System***********************\n";
float english,computer,calculus,gpa1,gpa2,gpa3,cgpa;

cout"\n\n\n Enter the marks of English:\t";
cin>>english;
cout"\n Enter the marks of Computer:\t";
cin>>computer;
cout"\n Enter the marks of Calculas:\t";
cin>>calculus;

if(english >=40 && english <=100)
{
gpa1= english*4/100;

}
else
{
gpa1=0;
}

if(computer >=40 && computer <=100)
{
gpa2=computer*4/100;

}
else
{
gpa2=0;
}

if(calculus >=40 && calculus <=100)
{
gpa3=calculus*4/100;

}
else
{
gpa3=0;
}
cgpa=3*(gpa1+gpa2+gpa3)/9;
cout "\n\n CGPA \t\t grade \t\t REMARKS";
coutendl;
if(cgpa==4)
{
coutendlcgpa" \t\t "" A \t\t Excellent"endl;
}
else if(cgpa<=3.99 && cgpa>=3)
{
cout"\n "cgpa" \t\t "" B \t\t Good"endl;
}
else if(cgpa<=2.99 && cgpa>=2)
{
cout"\n "cgpa" \t\t "" C \t\t Satisfactory"endl;
}
else if(cgpa<=1.99 && cgpa>=1.6)
{
cout"\n "cgpa" \t\t "" D \t\t Pass"endl;
}
else if(cgpa<=1.5)
{
cout"\n "cgpa" \t\t "" F \t\t Fail"endl;
}

if(gpa1==0)
{
cout"\n You have to repeat English subject!";
}

if(gpa2==0)
{
cout"\n You have to repeat Computer subject!";
}
if(gpa3==0)
{
cout"\n You have to repeat Calculus subject!";
}

cout"\n\n Do u want to calculate another Result(y/n): ";
cin>>select;

if (select =='y'|| select == 'Y')
{
goto a;
}
else if (select == 'n' || select == 'N')
{
system("exit");
}

}

Attachments:

## Latest Activity

Shanzay liked Mani Siddiqui BS VIII's discussion Heavy Raining in Karachi
7 minutes ago
Shanzay liked + Ḱẚảḿḯ's discussion Mohabbat Ki Jhari
8 minutes ago
16 minutes ago
+!!! Alan Walker !!! liked + Ḱẚảḿḯ's discussion Dil
20 minutes ago
+ Ḱẚảḿḯ posted discussions
1 hour ago
+ Ḱẚảḿḯ liked + Ḱẚảḿḯ's discussion Dil
1 hour ago
+ Ḱẚảḿḯ replied to + Ḱẚảḿḯ's discussion Mohabbat
1 hour ago
Muhammad Hamza Mehmood posted a status
"CS507 assignment no 3 salution needed"
1 hour ago
2 hours ago
Rosetta added a discussion to the group ENG201 Business and Technical English Writing

### Assignment No 2 spring2020

2 hours ago
Binte Ahmed liked Mani Siddiqui BS VIII's discussion Heavy Raining in Karachi
2 hours ago
Shanzay liked +!!! Alan Walker !!!'s discussion kya mai writer ban sakti hon
3 hours ago

1

2

3