Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The weight of earth is estimated at 6,000,000,000,000,000,000,000,000 kgs. Write a program which calculates and prints earth's weight in kgs, pounds, Imperial tons and US
The weight of earth is estimated at 6,000,000,000,000,000,000,000,000 kgs. Write a program which calculates and prints earth's weight in kgs, pounds, Imperial tons and US tons accurate to one decimal place. You must not hard code calculated values in the print statement. Instead, use properly declared variables and perform calculations in your program. No String data types or exponential notation (E) allowed. [10 points]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started