Professional Documents
Culture Documents
Task 1 Ahmad Solehuddin Bin Nizar (2019252848)
Task 1 Ahmad Solehuddin Bin Nizar (2019252848)
STUDENT ID : 2019252848
COURSE : CSC425
GROUP# : EC2203A1
ASSIGN# : ASSIGNMENT 2(TASK 1)
DUE DATE : 2/12/2020
PROGRAM DESCRIPTION :A PROGRAM TO DETERMINE THE AMOUNT OF
……………………………………………………………..SCHOLARSHIP A PERSON GETS PER YEAR BASED ON A
……………………………………………………………..PARTICULAR PROGRAM
Sid#: 2019252848
Course: CSC425
Group#: EC2203A1
Program Description: A program to determine the amount of scholarship a person gets per
year based on a particular program
*/
#include<iostream>
#include<string>
// Variables
double cgpa;
char program;
// Welcome Messages
cout << "This process will help you determine the amount of scholarship you will get per
year based on your program and CGPA :) " << endl;
// Input Statement
cout << "Please enter your Program (Diploma/Bachelor) using alphabet below: " << endl;
cout << "D for Diploma program " << endl;
// Output Statement
if (program=='D' or program=='d'){
cout << "Congratulations! The amount of scholarship you will get per year is
: RM 5,000 " << endl;
cout << "Congratulations! The amount of scholarship you will get per year is
: RM 7,000 " << endl;
else {
cout << "Ooops, I think that you have entered an incorrect value :) " << endl;
cout << "Congratulations! The amount of scholarship you will get per year is
: RM 10,000 " << endl;
else {
cout << "Ooops, I think that you have entered an incorrect value :) " << endl;
else {
cout << "I think that u have entered an incorrect alphabet :) " << endl;
return 0;
}
Sample Input and Output