Answer:
Explanation:
The oldest operating system is Version 6 Unix 1975 and the next is 1BSD 1977, then we can find the Apple DOS 1978, in several years we have Mac OS (System 1.0) 1984, in 1985 was born one of the most popular OS in the world Windows 1.0, and Linux version 0.01-0.1 is the newest in 1991.
Nowadays we can find other system like android, windows 10 or Chrome OS.
Answer:
Program is in C++
Explanation:
C++ Code:
#include <iostream>
#include <cctype>
using namespace std;
int main(){
char ch;
do{
cout<<"Enter Character: ";
cin>>ch;
if (isupper(ch)){
cout<<"OK"<<"\n";
}
}
while(ch!='!');
return 0;
}
_______________________________________
Code Explanation
First execute a do while loop as we want user to enter at least first character to check whether its upper case or not. If user enters exclamation character then this loop will terminate along with the program.
To check whether the entered character is upper case or not we will be using isupper(ch) method defined in cctype library.
If the character is upper case then if condition will show Ok by printing it using cout and this program will show nothing if the character is not upper case.
Sample Output
Enter Character: A
OK
Enter Character: b
Enter Character: c
Enter Character: d
Enter Character: E
OK
Enter Character: G
OK
Enter Character: F
OK
Enter Character: !
Answer:
Answered below
Explanation:
// Python implementation
incrementAmount = 5
basePrice = 10
price = 0
arrivalHour = int(input("Enter arrival hour 0-12: ")
if arrivalHour < 0 or arrivalHour > 12:
print ("Invalid hour")
if arrivalHour == 0:
price = basePrice
else:
price = arrivalHour * incrementAmount
totalPrice = price + basePrice
if totalPrice > 53:
totalPrice = 53
print ("Your bill is $totalPrice")
I love puzzle games, I like how they expand your knowledge and make you have to think.
Answer:
The blank is online learning