Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

C++ USING IF STATEMENT

Rating
-
Sold
-
Pages
4
Uploaded on
26-01-2024
Written in
2023/2024

This can help you in your coding skills.

Institution
Course

Content preview

TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES
QUEZON CITY
COLLEGE OF INFORMATION TECHNOLOGY EDUCATION (CITE)
ITE001- Computer Programming 1

NAME:PAOLO NICOLAI R. SOLIMAN
PROGRAM/SECTION: BSIT IT11S9 DATE: SEPTEMBER 25,2023
ASSESSMENT TASK: Selection Control Structure using If() Condition

The following question support the attainment of Course Intended Learning Outcomes (CILO):
Design computing-based solution using control structures, functions, array and other statements;

Instruction: Write a program that will let the user enter a grade and show the output base on the table below.

Grade Input Output
94 100 1.00
88.50 93.99 1.25
83 88.49 1.50
77.5 82.99 1.75
72 77.49 2.00
65.5 71.99 2.25
61 65.49 2.50
55.5 60.99 2.75
50 55.49 3.00
1 49 FAILED
Below 0 and more than 100 INVALID


Source Code: paste the source code here
#include <iostream>
using namespace std;
int main(){
float grade;
cout<< "Enter your grade"<<"\n";
cin>>grade;
if(grade >= 94 && grade <=100)
cout<<"1.00";
else if (grade >=88.50 && grade <=93.99)
cout<<"1.25";
else if (grade >=83 && grade <=88.49)
cout<<"1.50";

Written for

Institution
Course

Document information

Uploaded on
January 26, 2024
Number of pages
4
Written in
2023/2024
Type
OTHER
Person
Unknown

Subjects

$10.19
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
paolosoliman

Get to know the seller

Seller avatar
paolosoliman Technological Institute of the Philippines
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions