Answer:
A Program was written to carry out some set activities. below is the code program in C++ in the explanation section
Explanation:
Solution
CODE
#include <iostream>
using namespace std;
int main() {
string name; // variables
int number;
cin >> name >> number; // taking user input
while(number != 0)
{
// printing output
cout << "Eating " << number << " " << name << " a day keeps the doctor away." << endl;
// taking user input again
cin >> name >> number;
}
}
Note: Kindly find an attached copy of the compiled program output to this question.
Answer:
They allow you to ask more questions and also your rank goes up or down.
Explanation:
Answer:
Document window
is through which we view the portion of a document.
Explanation:
We have many portions like tabs, ruler, ribbon, etc in word. There is one another feature called Document Window in word where it represents the actual view of a document in GUI (Graphical User Interface) operating system.
Here the actual contents of the page are created and the user can also insert various shapes based on the need. Any feature in the tabs can be included in the document window. You can set the zoom size of the document according to the need.
C. Let the database assign a unique number in a new field
Answer:
def most_frequent_letter():
file = open("words","r")
dWords = {}
for line in file:
line = line.rstrip()
words = line.split(" ")
for word in words:
counts = {}
for c in word:
counts[c] = counts.get(c, 0) + 1
dWords[word] = max(counts, key=counts.get)
return dWords
print(most_frequent_letter())
Explanation:
the file used was words in txt format and its contents are as follows:
hello aamir jan khan
parallelogram abdullah
anaconda ali
pycharm notebook