Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

cpu project for 1st years students they can use it for our porseonal purpose, Essays (university) of Computer Science

project of cpu cpu project for 1st years students they can use it for our porseonal purpose cpu project for 1st years students they can use it for our porseonal purpose cpu project for 1st years students they can use it for our porseonal purpose cpu project for 1st years students they can use it for our porseonal purpose

Typology: Essays (university)

2017/2018

Uploaded on 08/02/2018

manish-jangra
manish-jangra 🇮🇳

1 document

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Programming in C++ Project
for basket toturials
NAME - MANISH
UID - 17BCS2499
SUB - C++
Class – 17CSE (A)
Submitted To - Mrs NAVDEEP Mam
Question
Develop a mini project that allows the user to enter the
grade scored in a programming class (0-100).
A)- if the user scored a 100 then notify the user that
they got a perfect core.
B)- modify the project so that if the user scored a
90-100 it informs the user that they scored an A.
C)- Modify the project so that it will notify the user of
their latter grade - 0-59 F , 60-69 D , 70-79 C ,
80-89 , B 90-100 A.
CONCEPT USED- VARIABLES,data types , and numerical operators basic
input/output logic(if statements, switch statements)
#include<iostream>
#include<conio.h>
pf3
pf4
pf5

Partial preview of the text

Download cpu project for 1st years students they can use it for our porseonal purpose and more Essays (university) Computer Science in PDF only on Docsity!

Programming in C++ Project

for basket toturials

NAME - MANISH

UID - 17BCS

SUB - C++

Class – 17CSE (A)

Submitted To - Mrs NAVDEEP Mam

Question

Develop a mini project that allows the user to enter the

grade scored in a programming class (0-100).

A)- if the user scored a 100 then notify the user that

they got a perfect core.

B)- modify the project so that if the user scored a

90-100 it informs the user that they scored an A.

C)- Modify the project so that it will notify the user of

their latter grade - 0-59 F , 60-69 D , 70-79 C ,

80-89 , B 90-100 A.

CONCEPT USED- VARIABLES,data types , and numerical operators basic

input/output logic(if statements, switch statements) #include #include<conio.h>

using namespace std; int main() {double maths,english,physics,cpu,marks; int score; cout<<"Enter the marks Of Maths = " ;

cin>>maths;

if(maths>100) { cout<<"Wrong Marks Entered\n"; } cout<<"Enter the marks Of English = ";

cin>>english;

if(english>100) { cout<<"Wrong Marks Entered\n"; }

cout<<"Enter the marks Of Physics = ";

cin>>physics;

score=marks*100/400;

cout<<"\nThe total Score :"<<score;

if(score>100) cout<<"\nYou Entered Invalid Marks";

if(score==100) cout<<"\nYou Get a Perfect Score";

switch(score) { case 0 ... 59 : cout<<"\nYou Get F Grade";

break;

case 60 ... 69 : cout<<"\nYou Get D Grade";

break;

case 70 ... 79 : cout<<"\nYou Get C Grade";

break;

case 80 ... 89 : cout<<"\nYou Get B Grade";

break;

case 90 ... 100: cout<<"\nYou Get A Grade";

break; } getch(); return 0; }