Answer:
The answer is "All of these could make good functions
".
Explanation:
In the given question some information is missing, that is options which can be described as follows:
a. Ask the user to confirm an input with a yes/no answer
b. Sort some input data into an ordered list
c. All of these could make good functions
d. Calculate a complex mathematical expression
A method is a collection of ordered code and provides a generic code, that is used to execute a single, connected operation.
- A good function is a function, which takes values from the user and it will sort all the data and store in memory, and whenever we call the function, it will give the values.
- It is also used to calculate some complex values,
// C++ switch
// It can also be used for JAVA, C#
switch(age){
// here age will be sent by the function in which it is used
// case to check the age<2
case(age<2 && age>0):
// printing the line
cout<<"ineligible";
// case to check the age ==2
case(age==2):
// printing the line
cout<<"toddler";
// case to check 3-5
case(age>=3 && age<=5):
cout<<"early childhood";
// case to check 6-7
case(age==6 || age==7):
cout<<"young reader";
//case to check 8-10
case(age>=8 && age<=10):
cout<<"elementary";
// case to check 13
case(age==13):
cout<<"impossible";
//case tocheck 14-16
case(age>=14 && age<=16):
cout<<"high school";
// case to check 17 or 18
case(age==17 || age==18):
cout<<"scholar";
//case to check >18
case(age>18);
cout<<"ineligible";
// default case
default:
cout<<"Invalid age";
}
Read more on Brainly.com - brainly.com/question/12981906#readmore
Answer:
See explanation
Explanation:
Given
if(fish > 400) {
Required
What is the condition checking?
The above statement is an if conditional statement. Analysing the statement in bits:
if -> This represents the beginning of the conditional statement
fish -.> The variable that is being checked
> 400 -> The condition which the variable is being measured by.
So, the statement above is checking if the value of variable fish is greater than 400.
<em>If the condition is true, the instructions associated to that if statement will be executed.</em>
Pendrive, CD is local storage divices
Answer:
format
alignment
excel
=
Explanation: i'm an accountant