Please answer both of the questions please I'm begging you guys this is my last question already.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please answer both of the questions please I'm begging you guys this is my last question already.

 

Please use Python Programming

 

 

Write a program that prompts the user to enter a four-digit integer and displays the number in
reverse order. (hint: use math operators, using loops or list will result in a zero score)
Here is a sample run(blue user input):
Test run 1
Enter an integer: 3125
2
1
3
Transcribed Image Text:Write a program that prompts the user to enter a four-digit integer and displays the number in reverse order. (hint: use math operators, using loops or list will result in a zero score) Here is a sample run(blue user input): Test run 1 Enter an integer: 3125 2 1 3
The radius and mass of the Earth are r= 6378 X 103 meters and m1 = 5.9742 X 1024 kg, respectively.
Mr. Jones has a mass of m kg. Prompt the user to input m and then calculate the gravitational force
(F) and acceleration due to gravity (g) caused by gravitational force exerted on him by the Earth.
The formula:
g = [G(m1)(m)/(r²)]/m
Let the universal gravitational constant G = 6.67300 X 10" (in units of m³kg²s² assuming the MKS
meter-kilogram-second] system). Check that the resulting value of g is close 9.8 m/s?. The ? are
decimal places-you should format to 4 decimal places.
Here is a sample run(blue user input):
Test run 1(only one test run required)
Enter a mass in kg: 30
The resulting value of g is 9.8??? which is close to the earth's gravitational force.
Transcribed Image Text:The radius and mass of the Earth are r= 6378 X 103 meters and m1 = 5.9742 X 1024 kg, respectively. Mr. Jones has a mass of m kg. Prompt the user to input m and then calculate the gravitational force (F) and acceleration due to gravity (g) caused by gravitational force exerted on him by the Earth. The formula: g = [G(m1)(m)/(r²)]/m Let the universal gravitational constant G = 6.67300 X 10" (in units of m³kg²s² assuming the MKS meter-kilogram-second] system). Check that the resulting value of g is close 9.8 m/s?. The ? are decimal places-you should format to 4 decimal places. Here is a sample run(blue user input): Test run 1(only one test run required) Enter a mass in kg: 30 The resulting value of g is 9.8??? which is close to the earth's gravitational force.
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education