Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

 

ABC University offers admission in three disciplines 1) Computer Science 2) Software Engineering 3) Telecom Engineering. An admission test has already been conducted by the university. The university provides an interface to the interested candidates where they can check their eligibility for the disciplines offered by the university.

Eligibility criteria for the offered programs is:

 

  • Computer Science (70% marks)
  • Software Engineering (85% marks)
  • Telecom Engineering (80%)

 

Formula for calculating the eligibility percentage is:

     

(Admission test marks percentage x 0.20) + (Matric marks percentage x 0.30) + (Intermediate marks percentage x 0.50)

 

 

 

Your task is to:

Write a c++ program to implement the above mentioned interface for eligibility assessment

 

  • Your program should provide the user with options to choose the degree program for admission e.g.

Enter ‘c’ for Computer Science

Enter ‘s’ for Software Engineering

Enter ‘t’ for Telecom Engineering

 

  • After taking user’s choice of degree program, the program should ask the user to enter his/her marks percentages of admission test, matric and intermediate results

 

  • After that, program should calculate the eligibility percentage according to the provided formula and show the user if he/she is eligible for the selected degree program or not

 

  • For the eligible candidates, the program should show the message “Congratulations! You are eligible for the selected program” and for non-eligible candidates the program should show “Sorry! You could not qualify for the selected program”

 

  • If the user enters a choice other than ‘c’, ‘s’, or ‘t’, the program should show the following error message: “Invalid input! Enter the correct input option again”

Press any key to continue..

 

  • On pressing any key from the keyboard, the program should start again from the beginning

 

  • The program should keep showing the same error message until the user enters one of the correct inputs

 

  • At the end of the program, the program should ask the user if he/she wants to check eligibility for another degree program. If the user presses y or Y, the program should start again from the beginning, or terminate otherwise

      

Sample output:

 

The sample output is provided in the animated image output.gif

 

 

 

 

 

Deadline:

The deadline to submit your assignment solution is 17th November, 2016. Your assignment must be submitted within the due date through VULMS. No assignment will be accepted through email after the due date.

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:

if system("cls"); is not working in your dev c++ version then simply add #include<stdlib.h> header file or download this file.

Attachments:

cs201 assignment no 1 solution fall 17th nov 2016

#include<iostream>
using namespace std;

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


do

system("cls");
cout"Please select the program you are interested to take admission"endl;

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"\nEnter the percentage of your admission test marks : ";
cin>>admission_test;

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

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

final_merit = (admission_test*0.2)+(matric_marks*0.3)+(intermediate_marks*0.5);

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"\nEnter the percentage of your admission test marks : ";
cin>>admission_test;

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

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

final_merit = (admission_test*0.2)+(matric_marks*0.3)+(intermediate_marks*0.5);

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"\nEnter the percentage of your admission test marks : ";
cin>>admission_test;

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

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

final_merit = (admission_test*0.2)+(matric_marks*0.3)+(intermediate_marks*0.5);

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:

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service