Task 1:
float75 = float(75)
string75 = "75"
# you cannot add together a number and a string because a string has no inherent numerical value like a number does.
Task 2:
num = float(input("Enter a number"))
print(num**2)
Task 3:
num = int(input("Enter an integer: "))
print("When you divide "+str(num)+" by 7, the quotient is "+str(num//7)+" and the remainder is "+str(num%7)+".")
Task 4:
gigs = int(input("How many gigabytes does your flashdrive hold? "))
print("A flashdrive with "+str(gigs)+ " gigabyte(s) holds "+str(gigs*8589934592)+" bit(s).")
For task 4, you might have to change the number 8589934592 to something else. I'm not entirely sure how many bits are in a gigabyte. I hope this helps though.
Answer:
weightEarth = float(input("Enter weight on earth: "))
weightMoon = weightEarth/6
print("Weight on moon:", weightMoon)
Explanation:
You have to convert the string input into a float in order to do calculations with it.
<span>You could use cloud storage. Basically, the things you save are actually saved on another computer, that is, on another server, that is used as a hard drive for many pcs. You can access the cloud storage if you have internet and it works like a normal hard drive. There are even laptops that don't have storage other than cloud storage.</span>
Answer:
A. 4 CPUs and 6 megabyte cache memory
B. 1.3157 x10^-9 nanoseconds
Explanation:
The Intel core i5 7500 is a seventh generation central processing unit with a 4 CPU core and a 6 megabyte cache memory. It executes task at a clock cycle of 5 clock cycle at a speed of 3.8 GHz.
The relationship between frequency and clock cycle is,
Clock cycle = 1 / ( frequent).
So, One clock cycle = 1 / 3.8 GHz
= 0.3 x10^-9
For five clock cycles = 5 x 0.3 x10^-9
= 1.3157 x10^-9 nanoseconds.
Cone cells, or cones, are one of three types of photoreceptor cells in the retina of mammalian eyes. They are responsible for color vision and function best in relatively bright light, as opposed to rod cells, which work better in dim light.