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.
Answer:
The first automatic digital computer has been designed by the English mathematician and inventor Charles Babbage. Babbage developed the Analytical Engine Plans for the mid-1830s.
Explanation:
- Babbage has developed the concept of a digital, programmable computer and was a mathematician, philosopher, inventor, and mechanical engineer.
-
Some regard Babbage as a "computer father"
-
The inventing of its first mechanical computer, the difference engine, is attributable to Babbage, which eventually resulted in more complex electronic designs, although Babbage's Analytical Engine is the main source of ideas for modern computers. He was described as the "prime" among the numerous polymaths of his century by his varied work in another field.
Answer:
This is what the code should do:
“Lift off in T minus
5
4
3
2
1
Blast-off!”
When I run it, it just keeps printing ''Sum = 5'' forever.
Explanation:
Code:
int main(void) {
int sum = 5;
int i;
printf("Lift off in T minus\n");
for (i = 0; i < 5; i=i+i) {
sum = sum - i;
printf("sum = %d\n",sum);
}
printf("Blast-off",sum);
return 0;
The three real-life objects that are instances of each of the following classes are given below:
a.<u> Song:</u>
The song Believe in yourself is an instance of song class
The song Where do broken hearts go is an instance of song class.
The song Ambition is an instance of song class
b. <u>CollegeCourse</u>
The College course Engineering is an instance of College course class
The College course Accounting is an instance of College course class
The College course Medicine is an instance of College course class
c. <u>Musician:</u>
The musician Rihanna is an instance of musician class.
The musician Sean Paul is an instance of musician class.
The musician Wyclef is an instance of musician class.
Real-life objects refer to the things that are characterized together as they share common qualities. The assignment simply wants you to name examples under the categories given.
Read related link on:
brainly.com/question/16699733