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:
C. A set of principles dictating that technology should do no harm and seek to improve the human condition
Explanation:
Anything "ethical" refers to being "right" or "just", for example, calling someone a racial slur would not be ethical, but learning a little bit about their culture to understand them better would be ethical
Answer:
Explanation:
def cvtToSeconds(hours,minutes,seconds):
total_seconds=3600*hours+60*minutes+seconds;
return total_seconds
def readData():
hours = eval(input("Enter Hours: "))
minutes = eval(input("Enter Minutes: "))
seconds = eval(input("Enter Seconds: "))
total_seconds=cvtToSeconds(hours,minutes,seconds)
print("Total Seconds: "+str(total_seconds))
readData()
Answer:
can you pls type the answer choices in the comments
The python statement that instructs the program to open a file for input is a false statement.
<h3>How to open file for input ?</h3>
The code above is a python code.
The python statement to instructs a program to open a file for input can be represented as follows:
The Python function open() is a built-in function that opens a file and allows your program to use it and work with it.
The open functions accepts a file(relative path to the file) and a string or character that indicates what you want to do with the file.
inFile = open("grocerydataFinalPY.txt", "w") is use to open a file and write on it.
learn more on python here: brainly.com/question/13696872
#SPJ1