Bonus Practice Sheet Winter 2018 [17-Mar-2018 to 7-Apr-2018]
Program ID- 1410
A student may apply for an arts college or an engineering college after his school. Admission to arts college or engineering college, is based on the marks obtained in the six subjects : English, Second language, Maths, Physics, Chemistry and Computer Science. Both the applications have the following details : application number, name, age, marks in all six subjects and cut-off for the eligibility. For Arts college, cut-off is the average of marks in all the subjects and whereas for engineering colleges cut-off is the average of marks in maths, physics, chemistry plus the marks scored in the entrance exam. Given all the required details, Design an OOP model to compute the cut-off marks and implement it using C++.
Note: Syntax to print ‘x’ decimal places of variable ‘a’
include <iomanip>
use
cout<<fixed<<setprecision(x)<<a;
Input Format
Type of application (0 for arts student and 1 for engineering student)
Application Number
Name of student
Age
Marks scored in English
Marks scored in Second Language
Marks scored in Maths
Marks scored in Physics
Marks scored in Chemistry
Marks scored in Computer Science
Marks scored in entrance exam (only for engineering student)
Output Format
Name of student
Cut-off marks
Note: Syntax to print ‘x’ decimal places of variable ‘a’
include <iomanip>
use
cout<<fixed<<setprecision(x)<<a;
Input Format
Type of application (0 for arts student and 1 for engineering student)
Application Number
Name of student
Age
Marks scored in English
Marks scored in Second Language
Marks scored in Maths
Marks scored in Physics
Marks scored in Chemistry
Marks scored in Computer Science
Marks scored in entrance exam (only for engineering student)
Output Format
Name of student
Cut-off marks
Please Comment Working if the code worked to you
If you have other working codes please comment the codes enclosing with <pre> and </pre>
Example: <pre> Your Code </pre>
Code: C++
NOTE: The Above Codes are for reference only. It doesn't mean everyone to directly copy/paste those codes.
No comments:
Post a Comment