Answer:
We can give the any integer value between 10 to 100 then it display the message "That number is acceptable."
Explanation:
In the given code the "number" variable takes an user input via cin .After taking user input it check the condition of if block that the user input is between the range of 10 to 100 .if this condition is true then the statement of if block will be executed i.e That number is acceptable otherwise else block will be executed That number is not acceptable.
following are the code in c++
#include <iostream> // header file
using namespace std;
int main() // main
{
int number; // variable
cin >> number; // taking input
if (number > 10 && number < 100) // if block
cout << "That number is acceptable.";
else
cout << "That number is not acceptable.";
return 0;
}
Output:
66
That number is acceptable.
456
That number is not acceptable.
/*
Since we have to check the first two options only as mentioned in last part of question the loop will work 2 times only and will compare the cost of first element and second and assign the healthoption accordingly
*/
for(int i =0;i<=1;i++){
if(annualCost[i]<annualCost[i+1]
best2 = healthOption[i]
else
best2 = healthOption[i+1]
}
Answer:
Scripting languages are easier to port to various platforms due to the compiling and interpreting tools it uses to read the source code.
Explanation:
Programming languages are used to create source codes for various applications from web programming to mobile application implementation.
A programming language can be a scripting language, only with the required tools like a compiler or an interpreter. For example, C source codes are compiled to executable scripting file with the GCC compiler and python codes are interpreted with the cpython interpreter.