Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Chrome MWestern Caro x Not Allowed x YouTube x sil x YouTube x Bank of Amer x c

ID: 3663788 • Letter: C

Question

Chrome MWestern Caro x Not Allowed x YouTube x sil x YouTube x Bank of Amer x c Home l Che Bb ke Test: As C Program to https:// blackboard com assessment id- 140549 1&course; id 59297 1&content; id 1825626 1&step; null E Mwestern Carolina Un university of Wiscon E Instructions My Grades Multiple Attempts This test allows 3 attempts. This is attempt number 1. Force Completion Setting: This test can be saved and resumed later. Academic Toolbox Question Completion Status Save and Submit Save All Answers QUESTION 1 1 points Create a variable, named as c, o store the speed of light (300,000,000 meters per secon A variable can store only the value, but not the unit. We, as d). programmers, need to know the units and do conversions properly when needed. What is the command to store the value, 300000000, in the variable c? NOTE: You must remove all the spaces in your answer to get an exact match to the correct answer. C 300000000 QUESTION 2 1 points Save Answer Create another variable, named as "c2", to store the speed of light, in miles per hour, converted from the variable, "c", provided in the last problem. The conversion between m e and meter is that 1 mile 1609.34 meters. What is the value of c2? Hint: Please think aobut the conversion formula from meter/second to mile/hour. Note: an expression like 1.2e-04 means 12000, which is obtained by moving the decimal point towards right by 4 and add 0's accordingly. When you type your answers, please write it as 12000, but not 1.2e+04, because the correct answer in this problem is evaluated by values, but not by character expressions. QUESTION 3 0.25 points

Explanation / Answer

c = 300000000
c2 = c * 2.236941852

Value of c2 = 671082555.6 miles/hour

Explanation for conversion

//For conversion form m/sec to mile/hour
1 mile = 1609.34 meters
so 1 meter = 1/1609.34 miles
1 hour = 3600 seconds
1 second = 1/3600 hours
1 meter/sec = (1/1609.34)/(1/3600) = 3600/1609.34 = 2.2369418519393043110840468763593 miles/hour
1 meter/sec = 2.236941852 miles/hour (approximate)