Answer:
Following are the program in the Python Programming Language.
#get input from the user length of the pizza
inputStr = input('Enter the length of pizza: ')
#convert input into float
L = float(inputStr)
#initialize the area of the pizza
A = L*L
#calculate the amount of peoples can eat pizza
men = int(A/100)
#print the number of peoples
print('\nPizza can be eaten by {} people'.format(men))
<u>Output</u>:
Enter the length of pizza: 20
Pizza can be eaten by 4 people
Explanation:
<u>Following are the description of the program</u>.
- Firstly, set a variable that get length input from the user.
- Set variable 'L' that convert the input from the user into the float data type.
- Set variable 'A' that stores the area of the pizza.
- Set variable 'men' that store the amount of peoples can eat pizza.
- Finally, print the number of peoples can eat pizza.
Answer:
Python file with appropriate comments given below
Explanation:
#Take the input file name
filename=input('Enter the input file name: ')
#Open the input file
inputFile = open(filename,"r+")
#Define the dictionary.
list={}
#Read and split the file using for loop
for word in inputFile.read().split():
#Check the word to be or not in file.
if word not in list:
list[word] = 1
#increment by 1
else:
list[word] += 1
#Close the file.
inputFile.close();
#print a line
print();
#The word are sorted as per their ASCII value.
fori in sorted(list):
#print the unique words and their
#frequencies in alphabetical order.
print("{0} {1} ".format(i, list[i]));
<span>They wrote live updates to a blog, so D. The blog was called "Eye of the Storm." It was written as a series of personal musings and photographs of places where the storm hit- first hand accounts of the disaster. They received a journalism award for it.</span>
Answer:



So then the value of the maximum I/O wait that can be tolerated is 0.720 or 72 %
Explanation:
Previous concepts
Input/output operations per second (IOPS, pronounced eye-ops) "is an input/output performance measurement used to characterize computer storage devices like hard disk drives (HDD)"
Solution to the problem
For this case since we have 4GB, but 512 MB are destinated to the operating system, we can begin finding the available RAM like this:
Available = 4096 MB - 512 MB = 3584 MB
Now we can find the maximum simultaneous process than can use with this:

And then we can find the maximum wait I/O that can be tolerated with the following formula:

The expeonent for p = 14 since we got 14 simultaneous processes, and the rate for this case would be 99% or 0.99, if we solve for p we got:



So then the value of the maximum I/O wait that can be tolerated is 0.720 or 72 %
Answer:
C++.
Explanation:
<em>Code snippet.</em>
#include <map>
#include <iterator>
cin<<N;
cout<<endl;
/////////////////////////////////////////////////
map<string, string> contacts;
string name, number;
for (int i = 0; i < N; i++) {
cin<<name;
cin<<number;
cout<<endl;
contacts.insert(pair<string, string> (name, number));
}
/////////////////////////////////////////////////////////////////////
map<string, string>::iterator it = contacts.begin();
while (it != contacts.end()) {
name= it->first;
number = it->second;
cout<<word<<" : "<< count<<endl;
it++;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
I have used a C++ data structure or collection called Maps for the solution to the question.
Maps is part of STL in C++. It stores key value pairs as an element. And is perfect for the task at hand.