www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

CS201 Assignment No 01 Solution & Discussion Due Date:17-11-2016

CS201 Assignment No 01 Solution & Discussion Due Date:17-11-2016

Views: 5549

Attachments:

Replies to This Discussion

CS201 (Introduction to Programming) Assignment Solution on the request of someone.
This assignment can be done in different ways but i did it according to the required topics mentioned by the student.
In some version of Dev C++ compiler, system("cls"); doesn't work. so comment it.
-Everyone must need to make changes to avoid by copying issue.
-Feel free to ask any question OR query.

Attachments:

Attachments:

cs201 assignment no 1 solution fall 17th nov 2016

#include<iostream>
using namespace std;

int main()
{
char charin;
char yesno;
int matric_marks = 0;
int intermediate_marks = 0;
int final_merit = 0;

do

system("cls");

cout"\npress C or c for Computer Science"endl;
cout"press S or s for Software Engineering"endl;
cout"press T ot t for Telecom Engineering"endl;

cout"\nSelect any option from the above menu : ";
cin>>charin;

if(charin == 'C' || charin == 'c')
{

cout"Enter the percentage of your matric marks : ";
cin>>matric_marks;

cout"Enter the percentage of your intermediate marks : ";
cin>>intermediate_marks;

if(final_merit >= 70)
{
cout"Congratulations! You are eligible for the Computer Science degree program"endl;
}
else
{
cout"Sorry! You could not qualify for the Computer Science degree program"endl;
}

cout"Do you want to check your eligibility in some other degree program y/n? : ";
cin>>yesno;
if(yesno == 'n' || yesno == 'N')
{
break;
}
else
{
continue;
}
}
else
{
if(charin == 'S' || charin == 's')
{

cout"Enter the percentage of your matric marks : ";
cin>>matric_marks;

cout"Enter the percentage of your intermediate marks : ";
cin>>intermediate_marks;

if(final_merit >= 85)
{
cout"Congratulations! You are eligible for the Software Engineering degree program"endl;
}
else
{
cout"Sorry! You could not qualify for the Software Engineering degree program"endl;
}

cout"Do you want to check your eligibility in some other degree program y/n? : ";
cin>>yesno;
if(yesno == 'n' || yesno == 'N')
{
break;
}
else
{
continue;
}
}
else
{
if(charin == 'T' || charin == 't')
{

cout"Enter the percentage of your matric marks : ";
cin>>matric_marks;

cout"Enter the percentage of your intermediate marks : ";
cin>>intermediate_marks;

if(final_merit >= 80)
{
cout"Congratulations! You are eligible for the Telecom Engineering degree program"endl;
}
else
{
cout"Sorry! You are not qualified for the Telecom Engineering degree program"endl;
}

cout"Do you want to check your eligibility in some other program y/n? : ";
cin>>yesno;
if(yesno == 'n' || yesno == 'N')
{
break;
}
else
{
continue;
}
}
else
{
cout"Invalid input! Enter the correct option again\n";
system("pause");
}
}
}
}
while(charin != 'C' || charin != 'c' || charin != 'S' || charin != 's' || charin != 'T' || charin != 't');
}

1. install dev c++

2.copy this code to code bar

3. save ur programe

4. from menu click  execute nd then click compile nd run

done

CS201 Assignment-1 Solution Fall-2016

Attachments:

CS201 Complete Solution

Attachments:

1

2

3

4

5