Answer:
Please Find attached c++ code file.
Explanation:
- Ask User to enter highway number.
- Check if highway is primary or auxiliary.
- Check if highway number is even / odd.
- Find Primary high number for an auxiliary highway
Check if highway is primary or auxiliary.
Use if condition to check if the entered number is in between 0 and 99.If it's true than the highway is primary otherwise it's an auxiliary highway.
Check if highway number is even / odd.
To check if a number is even or odd we use simple modulo formula. In mathematics modulo returns the reminder of a division operation on two numbers.If modulo of a number and 2 is equal to zero than that number is an even number other wise its an odd number.
Find Primary high number for an auxiliary highway
As mentioned in the question last two digits of highway number is the number of primary high.
To Find last two digits of number apply modulo operation on highway number and 100. it will provide last two digits of number specifying our primary highway.
Answer:
I will respond by saying the destination is not the most important , the journey is.
Explanation:
Answer:
#include <iostream>
using namespace std;
int main()
{
int cookies;
cin >> cookies;
cout << "The calorie consumption is: " << cookies * 142 << endl;
return 0;
}
Explanation:
First line: include basic library of C++(input and output).
using namespace std;
Says to compiler we are using std.
int main() Main function
int cookies, cookies variable, of int type
cin >> cookies
get the number of the cookies from user
cout Print the text and calories(one cookie have 142 calories)
Have a nice day ;)
This question is unfortunately incomplete. However, I would guess the line numbers would extend from E1 to E14. To find a maximum value, use the 'Max' function call. Therefore, in cell E15, write: '= Max(E1:E14)'