ICS would bet he answer.
Good luck! (:
Answer:
char str[5][100]
Explanation:
See attachment for options:
From the options, we can see that the programming language is C language.
The syntax to store an array of m strings with a maximum of n elements in C is:
char array-name[m][n]
In this case:
--- Number of strings in the array
--- Maximum character in each string
Assume the array name is str, the syntax can be expressed as:
char str[5][100]
Answer:
Yes
Explanation:
Just like a human fingerprint, no 2 computers are the same.
Answer:
(10^6 + 9.9)
Explanation:
Given:
Total number of machine instructions = 1000
Number of page fault in 100 instructions = 1
Number of page faults in 1000 instructions = 10
Time to serve one page fault = 100 milliseconds
Time to serve ten page faults = 100*10 milliseconds = 1000 milliseconds = 10^6 Microseconds
Number of instructions without any page fault = 1000 - 10 = 990
Time required to run 1000 instructions = 10 Microseconds
So, time required to run 990 instructions = (10*(990/1000)) Microseconds = 9.9 Microseconds
So, the total time required to run the program = (10^6 + 9.9) Microseconds
Answer:
By presuming the question expect us to write a program to address the problem and the solution code written in Python is as follow:
- beer_name = input("Enter beer name: ")
- abv = int(input("Enter ABV value: "))
-
- if(abv > 10):
- label = "Very High"
- elif(abv >=6):
- label = "High"
- elif(abv >=3):
- label = "Average"
- else:
- label = "Low"
-
- print("Beer Name: " + beer_name)
- print("ABV value: " + str(abv))
- print(label)
Explanation:
Firstly, we can use input function to prompt user to input beer name and ABV value (Line 1 - 2).
Next, create if else if statements to check abv fallen into which range of value and then set a label accordingly (Line 4 -11). For example if abv is 4, the label will be set to "Average".
At last, print the information of beer that includes beer name, abv value and label (Line 13 - 15).