Answer:
Following python statement will give the assignment to testResult as specified:
if((geneticMarkerA == 1) or (geneticMarkerB ==1)):
testResult = 1
if((geneticMarkerA ==1) and (geneticMarkerB == 1)):
testResult = 0
if((geneticMarkerA == 0) and (geneticMarkerB == 0)):
testResult = 0
Explanation:
In above statements or and and operator are used to check the conditions of set of values present in variable geneticMarkerA and geneticMarkerB.
Based on if the condition evaluate to true or false respective values to testResult varaible is assigned.
Following is sample run for above statements:
geneticMarkerA = 1
geneticMarkerB = 0
if((geneticMarkerA == 1) or (geneticMarkerB ==1)):
testResult = 1
if((geneticMarkerA ==1) and (geneticMarkerB == 1)):
testResult = 0
if((geneticMarkerA == 0) and (geneticMarkerB == 0)):
testResult = 0
print(testResult)
Output
1
Answer:
periodical databases
Explanation:
Among the various databases you can now access in a library, the periodical databases contains the text and other information about articles published in magazines, journal and newspapers.
This database allows you for example to easily search for all articles written about a specific event or person, and it will return you the list of articles you can then read from a single spot, no matter where or when the article was written.
An Information System is when key components such as hardware, software, data, and process are combined for collection, processing, and distribution of data. All of these scenarios mentioned on the choices above are considered transactions in an information system. There is an exchange of information that fully satisfies the request of a user and describes what transactions in information systems are. They are good examples of users entering information whether, physically or electronically, as data into computers. This data is then processed, and the database changes adjusted with some being made permanent.
Answer:
C. layout of each page with its respective elements
Explanation:
A layout of each page with its respective elements will give the client a good idea of the final product and help him confirm his desires/requests towards the creation of the Web site. Most people are visual, especially about things they don't fully understand, so a clear and visual representation is best.
<u>A. Bulleted lists and titles</u>... won't give the idea of the full layout of the Web site.
<u>B. chart depicting</u>.... that's more a tool for the programmer than the client, although user flow is important, it isn't as much as the visual aspect of each page.
<u>D. pictures and screenshots of websites of other florists..</u>. That could be a useful aid on the first contact, but the question implied the Web site is already in progress... so that wouldn't help much.
<u>E. programming code for the website</u>, absolutely not, the client hired Jeremy not to have to deal with that.
Answer:
dataFile << salary;
Explanation:
To write salary to a file (payroll.dat) using ofstream, you make use of the following instruction:
<em>ofstream dataFile;
</em>
<em>myfile.open ("payroll.dat");
</em>
<em>myfile <<salary;
</em>
<em>myfile.close();</em>
<em />
This line creates an instance of ofstream
<em>ofstream dataFile;
</em>
This line opens the file payroll.dat
<em>myfile.open ("payroll.dat");
</em>
This is where the exact instruction in the question is done. This writes the value of salary to payroll.dat
<em>myfile <<salary;
</em>
This closes the opened file
<em>myfile.close();</em>
<em />
<em />