The following code will program that prompts the user to enter the num- ber of hours a car is parked at the airport and outputs the parking fee.
<u>Explanation:</u>
Code:
#include<iostream>
using namespace std;
int main()
{
float hours;
cout <<"Enter number of hours a car parked at the airport: "; // prompt the user to enter hours.
cin >> hours ; // strong the hours
if (hours > = 0 && hours < =3 ) // if 0 < = h < = 3
cout << "Parking fee: 5"; //printing parking fee is 5.
else if (hours > 3 && hours < = 9)//if 3 < h < = 9
cout<<"Parking fee: "<<6*int(hours);//converting float value to int the multiplying with 6 then printing fee.
else//if 9 < h < = 24
cout<< "Parking fee: 60";// printing parking fee 60.
return 0;
}
Answer: Storage
Explanation:
Storage means means saving data in computer memory. Memory refers to the location which is meant for short-term data, while storage is the part of the computer system that allows an individual to store and also access data on long-term basis.
It should be noted that typically, storage usually comes in form of a hard drive or a solid-state drive.
Answer: C. Some people think they can tame deer, but I just don’t buy it.