Page 125 - Modular_V2.0_C++_Flikpbook
P. 125
Project 7 21 st Century #Critical Thinking
Skills
Write a C++ program to input marks and display the grade:
Marks Range Grade
90–100 A+
80–89 A
70–79 B
60–69 C
Below 60 Fail
Project 8 21 st Century #Critical Thinking
Skills
Write the following C++ code and see the output:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int num1, num2, a, b, temp, hcf, lcm;
cout<< "Enter two numbers: ";
cin>> num1 >> num2;
a = num1;
b = num2;
while (b != 0)
{
temp = b;
b = a % b;
a = temp;
}
hcf = a;
lcm = (num1 * num2) / hcf;
cout<< "HCF of " << num1 << " and " << num2 << " is: " << hcf <<
"\n";
cout<< "LCM of " << num1 << " and " << num2 << " is: " << lcm <<
"\n";
getch();
}
Project 9 21 st Century #Critical Thinking
Skills
Create an app 'Food of India' using App Inventor. This app will display the famous dishes around
India and give basic information about them.
123
Project Work

