Answer:
ofstream asia("asiasales2009.txt"); //It is used to open asiasales2009.txt files with the asia objects.
ofstream europe("europesales2009.txt"); //It is used to open europesales2009.txt files with the europe objects.
ofstream africa("africasales2009.txt");
//It is used to open africasales2009.txt files with the africa objects.
ofstream latin("latinamericasales2009.txt");//It is used to open latinamericasales2009.txt files with the latin objects.
Explanation:
- The above code is written in the c++ language which is used to open the specified files with the specified objects by the help of ofstream class as described in the question-statements.
- The ofstream is used to open the file in the c++ programing language, so when a user wants to use the ofstream to open the file in written mode, then he needs to follow the below syntax--
ofstream object("file_name_with_extension");
one thing you could do is a factory reset, but that depends on your system
A database management system<span> (DBMS) is system software for creating and managing databases. The DBMS provides users and programmers with a systematic way to create, retrieve, update and manage data.</span>
Explanation:
The Americans had a greater nuclear power with more than 300 land based intercontinental ballistic missiles (ICBMs) and a fleet of Polaris submarines. The Soviet Union had only 4 to 6 land based ICBMs and around 100 short range primitive V1 type cruise missiles that could only be launched from surfaced submarines.
Answer:
The following are the program in the Python Programming Language.
#get input from the user
val = input("Enter the value: ")
#split the input values
x=val.split()
#declare and initialize two variables to 0
total, l = 0,0
#set for loop
for n in x:
#coverting into string
n = int(n)
#perform addition
total= total + n
#check that is l is none or n is greater than l
if(l is None or n > l):
#initialize the value of n in l
l = n
#print the following output
print("Average and maximum value are:", total // len(x), l)
<u>Output</u>:
Enter the value: 10 20 0 5
Average and maximum value are: 8 20
Explanation:
<u>Following are the description of the program</u>.
- Firstly, declare a variable 'val' in which we get string type input from the user.
- Again declare two variables and assigned them to 0.
- Then set the for loop statement, in which we convert the string variable into the integer and perform addition with those converted values. Set the if conditional statement to check that if the variable 'l' is none or 'n' is greater than 'l
' then, assigned the value of the variable 'n' in the variable 'l'.
- Finally, print the following result with message.