I’d go for (A) as the right choice.
The basic principles of Oxygen-recombination chemistry hasbeen combined to traditional lead batteries technology to produceValve-regulated lead-acid battery (VRLA), also called recombinant batteries. The applicationof oxygen cycle to VRLA, at first, is much more difficult. However, if correctprinciples are followed, it becomes easy.
Answer:
#include <iostream>
#include <string>
using namespace std;
int main() {
string inputMonth;
int inputDay;
cin >> inputMonth >> inputDay;
if (inputMonth == "January" && inputDay >= 1 && inputDay <= 31)
cout << "Winter" << endl;
else if (inputMonth == "February" && inputDay >= 1 && inputDay <= 29)
cout << "Winter" << endl;
else if (inputMonth == "April" && inputDay >= 1 && inputDay <= 30)
cout << "Spring" << endl;
else if (inputMonth == "May" && inputDay >= 1 && inputDay <= 30)
cout << "Spring" << endl;
else if (inputMonth == "July" && inputDay >= 1 && inputDay <= 31)
cout << "Summer" << endl;
else if (inputMonth == "August" && inputDay >= 1 && inputDay <= 31)
cout << "Summer" << endl;
else if (inputMonth == "October" && inputDay >= 1 && inputDay <= 31)
cout << "Autumn" << endl;
else if (inputMonth == "November" && inputDay >= 1 && inputDay <= 30)
cout << "Autumn" << endl;
else if (inputMonth == "March" && inputDay >= 20 && inputDay <= 31)
cout << "Spring" << endl;
else if (inputMonth == "June" && inputDay >= 1 && inputDay <= 20)
cout << "Spring" << endl;
else if (inputMonth == "June" && inputDay >= 21 && inputDay <= 30)
cout << "Summer" << endl;
else if (inputMonth == "September" && inputDay >= 1 && inputDay <= 21)
cout << "Summer" << endl;
else if (inputMonth == "September" && inputDay >= 22 && inputDay <= 30)
cout << "Autumn" << endl;
else if (inputMonth == "December" && inputDay >= 0 && inputDay <= 20)
cout << "Autumn" << endl;
else if (inputMonth == "December" && inputDay >= 21 && inputDay <= 30)
cout << "Winter" << endl;
else if (inputMonth == "March" && inputDay >= 1 && inputDay <= 19)
cout << "Winter" << endl;
else
cout << "Invalid" << endl;
return 0;
}
Answer:
FOR PYTHON!!
input_month = input()
input_day = int(input())
months= ('January', 'February','March', 'April' , 'May' , 'June' , 'July' , 'August' , 'September' , "October" , "November" , "December")
if not(input_month in months):
print("Invalid")
elif input_month == 'March':
if not(1<=input_day<=31):
print ("Invalid")
elif input_day<=19:
print("Winter")
else:
print ("Spring")
elif input_month == 'April' :
if not(1<=input_day<=30):
print("Invalid")
else:
print("Spring")
elif input_month == 'May':
if not(1<=input_day<=31):
print("Invalid")
else:
print("Spring")
elif input_month == 'June':
if not(1<=input_day<=30):
print("Invalid")
elif input_day<=20:
print ("Spring")
else:
print("Summer")
elif input_month == 'July':
if not(1<=input_day<=31):
print("Invalid")
else:
print("Summer")
elif input_month == 'August':
if not(1<=input_day<=31):
print("Invalid")
else:
print("Summer")
elif input_month == 'September':
if not(1<=input_day<31):
print("Invalid")
elif input_day<=21:
print ("Summer")
else:
print ("Autumn")
elif input_month == "October":
if not(1<=input_day<=31):
print("Invalid")
else:
print("Autumn")
elif input_month == "November":
if not(1<=input_day<=30):
print("Invalid")
else:
print ("Autumn")
elif input_month == "December":
if not(1<=input_day<=31):
print("Invalid")
elif input_day <=20:
print ("Autumn")
else:
print ("Winter")
elif input_month == 'January':
if not(1<=input_day<=31):
print("Invalid")
else:
print("Winter")
elif input_month == "February":
if not(1<=input_day<=29):
print("Invalid")
else:
print ("Winter")
Explanation:
Good luck in the rest of your class!
Incomplete question. Here's the full question:
Data-Time Inc. is a company that manages databases for a large city in Colorado. Included in these databases is information collected from the city’s homeless shelters and free clinics. Specifically, the databases contain personal information of the users of these services over the past 10 years; this includes people’s Social Security numbers and health records.
This data is highly secure and only accessible to the employees of Data-Time Inc. Employees are given a laptop when they are hired which allows them to access the database remotely. Unfortunately, one of these laptops is stolen and the security of the database is compromised.
A majority of the people whose information was compromised are homeless; therefore there is no easy way to contact them in order to alert them of the security breach. How should Data-Time Inc. manage this breach in security?
Explanation:
Since the emphasis is not on reversing the breach that has occurred, but on managing the level of security damage that could occur, it is important measures are directed towards preventing unauthorized access to sensitive information.
For example, the Media Access Control Address (MAC address) of the laptop if known could be greylisted from accessing the server that contains the sensitive information.
void f1(int array, int size);
void f1(int& array, int size);
void f1(int array[100], int size);
void f1(float array[], int size);
All of the above
C and D
A and B
Answer:
Only
Option: void f1(float array[], int size);
is valid.
Explanation:
To pass an array as argument in a function, the syntax should be as follows:
functionName (type arrayName[ ] )
We can't place the size of the array inside the array bracket (arrayName[100]) as this will give a syntax error. The empty bracket [] is required to tell the program that the value that passed as the argument is an array and differentiate it from other type of value.
Answer:
See explaination
Explanation:
void showSeatingChart(string seatingChart[20][40], const int ROWS, const int COLS){
for(int i = 0;i<ROWS;i++){
for(int j = 0;j<COLS;j++){
cout<<seatingChart[i][j]<<" ";
}
cout<<endl;
}
}
Answer:
The solution code is written in Python.
Explanation:
Firstly, use input() function to prompt user for a file name. (Line 1)
Next, we use input() function again to prompt user input a target character (Line 2)
Create a reader object and user read() method to copy entire texts from to the variable content (Line 4 - 5).
At last we can get the number of times the specified character appears in the file using the Python string built-in method count() (Line 6)