Topic: Function
Write a function-‐oriented program to convert an input Celsius into Fahrenheit degree. Use the formula F= (9.0/5.0)*C+32. Display the Fahrenheit degree.
Note: you can choose any looping statement if needed.
You have a certain set-up of a vertical spring, and when hung freely the equilibrium position
reading is 30cm on earth. If you take the same set-up on the moon surface, would the equilibrium
position be more than, less than or equal to 30cm? Explain.
Topic: Function
Write a function-‐oriented program that converts the input indeed into its equivalent centimeters. One inch is equal to 2.54 cms. Display the converted centimeters value.
note: you can choose any looping statement if needed.
Topic: Function
Write a function-‐oriented program to calculate the area of a circle. Use the
formula: A=πr2 where Pi(π) is equal to 3.1416 (approximately).
note: you can choose any looping statement.
From two points each on the opposite sides of a river . The angles of elevation of the top of an 80 feet tree are 60° and 30°. The points and the tree are in the same straight line , which is perpendicular to the river. How wide is the river ?
A man 5 feet tall casts a shadow of 5 feet on the ground. Find the angle of elevation of the sun ?
A box contains 5 green and 2 blue dice.Four dice are chosen one after the other .Determine the values of the random variable G representing the number of green dice.
Find the length of a loading ramp which extends from a building to the ground. The lower end of the ramp is 6meter from the building , and the upper is 8 meter from the building.
For each of the following scenarios, give an example of a discrete and a continuous random variable. The first one is done as an example.
Scenarios
•Asking your classmates about their breakfast.
•Making an order at a fast food restaurant.
•Uploading a picture in a social media.
•Buying pairs of shoes.
• Writing a manuscript
Construct the probability distribution for each random variable X.
a. The random variable X represents the number of heads that occur when you toss 4 coins at the same time.
b. The random variable X represents the number of male children in a 3-child family.
c. The random variable X represents the amount gain by a person who buys s 20 peso ticket from a total of 1000 tickets for a raffle whose winner will obtain ₱5,000