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";
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";