Answer:
check the explanation
Explanation:
Variables when it comes to programming are used to store data to be documented and manipulated in a computer program. They can also be used for labeling stored data with a descriptive name and any other needed details, so that the programs can be comprehended more understandably by the reader and ourselves.
to solve the question, we will write this set of codes;
numberOfIncompletes = 0;
for(k = 0; k < incompletes.length; k++)
{
if(incompletes[k] == studentID)
numberOfIncompletes++;
}
Answer:
hour = float(input("Enter hour:"))
minute = float(input("Enter minute:"))
second = float(input("Enter second:"))
am_pm = input ("Enter AM or PM:")
if am_pm == "AM":
if hour == 12:
hour = 0
seconds_since_midnight = ((3600 * hour) +(minute *60) + second)
elif am_pm == "PM":
seconds_since_midnight = ((3600 * (hour+12)) +(minute *60) + second)
print("Seconds since midnight:", int(seconds_since_midnight))
Explanation:
The point here is when PM is chosen, you need to add 12 to the hour. I added <em>elif</em> part to satisfy this. Moreover, since the output is in integer format, you may need to apply type casting for <em>seconds_since_midnight</em> variable.
Answer:
C. full featured
Explanation:
You need to make use of the full-featured version of the word processing programs to use the illustrations that are part of the program. And simple versions might not have that. By fully featured it means you need to have the license included or else you will be able to use it for a few days or a maximum of 3 months, and that is certainly not a good idea.
I believe its <span>c-set up a study space, preview your materials, create a routine</span>
Answer:
Binary to Gray Code Converter
The logical circuit which converts the binary code to equivalent gray code is known as binary to gray code converter. An n-bit gray code can be obtained by reflecting an n-1 bit code about an axis after 2n-1 rows and putting the MSB (Most Significant Bit) of 0 above the axis and the MSB of 1 below the axis.
The 4 bit binary to gray code conversion table is given in attached file.