What's new
  • Welcome to PHCorner forums. Take a moment to sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Help Mga expert patulong?

network phantom

Grasshopper
Joined
Oct 4, 2016
Messages
53
Reaction
8
Age
21
firstyear bsis student po ako. kakasimula lang nang klase namin binigyan kami agad ng assignment. kunti lang alam ko sa c++ tulungan nyu ako.

Problem: Make a list of instructions that will tell the user to input integer age of an athlete. If the value entered is greater than or equal to 10, it will display a text “You are (age) years old and You are qualified to play the game!”. However, if value entered is below 10, it will message “You are (age) years old, you are too young to play the game.”

Required:
Create a detailed instructions (pseudocode) of the above-problem.
 

drexz520

Honorary Poster
int age = 10;
if(age <=10){
cout << "You are"+age+" years old and You are qualified to play the game!";
}else{
cout << “You are "+age+"years old, you are too young to play the game.”
}
 
Comment

Online statistics

Members online
1,227
Guests online
1,684
Total visitors
2,911

Forum statistics

Threads
1,071,577
Messages
18,114,951
Members
1,515,963
Comments
1,081,353
Attachments
1,387,578
Profile posts
97,586
Top