
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Write a function called orbit that takes three inputs and returns three outputs. Our
function is related to a planet that is in orbit around a star. Your function should take information about your planet’s orbit and tell us how long that orbit will take.
Your three inputs should be:
- The major axis radius, major.
- The minor axis radius, minor.
- The planet’s orbital velocity, velo, in meters per second.
Your outputs should be the length of one year on that planet, in days, using three approximations for the
perimeter of an ellipse.A circular approximation, circTime.
- Using Ramanujan’s1 first approximation, ram1Time.
- Using Ramanujan’s second approximation, ram2Time

Transcribed Image Text:MAlws u
< 2-2.pdf
F3
gmail
ttps://rutgers.instructure.com/courses/217240/assignments/2432896
4
A
Home SP23_1
Output
Time in Days
Earth Data
You should find:
F4
%
perimeter ≈ n(a + b) (1 + ·
10
40 FS
5
T
circ Time
MATLA Zy Section
Note that those equations give you perimeters. To calculate the time it takes to travel that
distance, you have to divide a perimeter by a velocity. Then remember to convert the time to the
correct units (days).
To test your code, use these inputs:
Input
a (km)
4-
3.652952252479330e+02
6
F6
Y
149600000
4+ F7
&
O Search
7
U
*
FB
Hoxb Home zy Section
8
3h
10+ √4-3h
Page
b (km)
1
149580000
ram1 Time
▶11 F9
2
9
0
-
>
FIO
0
Files
where h =
of 2
v (km/s)
29.78
3.652952248398216e+02 3.652952248398215e+02
P
FII
Download
ram2 Time
M
(a - b)²
(a + b)²
{
C
[
F12
+
- ZOOM
G
i Info
DELETE
BACKSPACE
![01 SP23
← O
circTime, ramlTime, ram2 Time]
The circular approximation is:
Ramanujan's first approximation is:
SHAD
Ramanujan's second approximation is:
FI
ANTERIOR SIO
https://rutgers.instructure.com/courses/217240/assignments/2432896
56°F
Sunny
W
5
X
# F2
#
3
E
C
*F3
≈
(1
perimeter π(a + b)(1+
$
4
A
F
F4
V
%
40 FS
5
T
perimeter ≈ ñ[3(a + b) − √√(3a + b)(a + 3b)]
G
B
6
F6
Y
H
&
perimeter≈ 2π
=
N
O Search
F7
7
U
J
Page <
of 2
= orbit (major, minor, vel
*
FB
8
M
4
3h
10+ √4-3h
▶II F9
K
9
HI
a² + b²
2
FIO
L
2
0
P
where h =
FIL
F12
+
[
G
]
(a - b)
(a + b)²
PAUSE
C
DELETE
BACKSPACE
1](https://content.bartleby.com/qna-images/question/5351d465-75f3-4ada-a30b-2af32837c9ec/e4a2526d-74e5-474a-9c09-5f9a8df8c153/bbmmest_thumbnail.jpeg)
Transcribed Image Text:01 SP23
← O
circTime, ramlTime, ram2 Time]
The circular approximation is:
Ramanujan's first approximation is:
SHAD
Ramanujan's second approximation is:
FI
ANTERIOR SIO
https://rutgers.instructure.com/courses/217240/assignments/2432896
56°F
Sunny
W
5
X
# F2
#
3
E
C
*F3
≈
(1
perimeter π(a + b)(1+
$
4
A
F
F4
V
%
40 FS
5
T
perimeter ≈ ñ[3(a + b) − √√(3a + b)(a + 3b)]
G
B
6
F6
Y
H
&
perimeter≈ 2π
=
N
O Search
F7
7
U
J
Page <
of 2
= orbit (major, minor, vel
*
FB
8
M
4
3h
10+ √4-3h
▶II F9
K
9
HI
a² + b²
2
FIO
L
2
0
P
where h =
FIL
F12
+
[
G
]
(a - b)
(a + b)²
PAUSE
C
DELETE
BACKSPACE
1
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Write a function DrivingCost with input parameters drivenMiles, milesPerGallon, and dollarsPerGallon, that returns the dollar cost to drive those miles. All items are of type double. If the function is called with 50 20.0 3.1599, the function returns 7.89975. Define that function in a program whose inputs are the car's miles/gallon and the gas dollars/gallon (both doubles). Output the gas cost for 10 miles, 50 miles, and 400 miles, by calling your DrivingCost function three times. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: printf("%0.21f", yourValue); Ex: If the input is: 20.0 3.1599 the output is: 1.58 7.90 63.20 Your program must define and call a function: double DrivingCost(double drivenMiles, double milesPerGallon, double dollarsPerGallon) 324758.2040686.qx3zqy7 LAB 5.18.1: LAB: Driving cost - functions 0/ 10 ACTIVITY main.c Load default template.. 1 #include 2 3 /* Define your function here */ 4 5 int main(void) {…arrow_forwardA store has issued two different coupons for its customers to use. One coupon gives customers $25 off their purchase price, and the other coupon gives customers 30% off of their purchase. The store allows customers to use both coupons and choose which coupon to apply first. For this context, ignore sales tax. Let D be the function that inputs a cost (in dollars) and outputs the cost after applying the "$25 off" coupon, and let P be the function that inputs a cost (in dollars) and outputs the cost after applying the "30% off" coupon. 1.A customer purchases an item for $140 and asks the cashier to apply the "$25 off" coupon first, followed by the "30% off" coupon. Use function notation to represent the cost of the item (in dollars) after the two coupons are applied. 2.A customer purchases an item for $140 and asks the cashier to apply the "30% off" coupon first, followed by the "$25 off" coupon. Use function notation to represent the cost of the item (in dollars) after the two…arrow_forward
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education