Question: write a C code based on the scenario given, please. 15 Scenarios - Posts, claims, implementation and review Please post your scenarios, each on a

 write a C code based on the scenario given, please. 15Scenarios - Posts, claims, implementation and review Please post your scenarios, eachon a new thread, in this forum. When you select a scenario

write a C code based on the scenario given, please.

15 Scenarios - Posts, claims, implementation and review Please post your scenarios, each on a new thread, in this forum. When you select a scenario to code, then post a claim for it on the same thread. When you have finished and tested your code implementing the scenario you chose, post that code here on the original thread as well. When someone posts code for a scenario you created, comment helpfully on it, again on the same thread. Post the code you write for the scenario you claim as a reply to the thread where the scenario was originally posted. In other words, scenario, claim, implementation and any comments or clarifications should stay on the original thread to keep things organized. Use your creativity to come up with an interesting scenario for your classmates! Here's an example showing all four steps: Student 1 posts his or her scenario Scenario - When to Panic When is it an appropriate time to panic while skydiving? Individually, when the wind is blowing over 60 miles per hour or when you are still free-falling under 1.200 feet from the ground, it can be a scary experience, but it is not necessarily a time to panic. However, if both happen at the same time then it is an appropriate time to panic. Alternatively, if your parachute jams at any given time, panic. Or if you got a little eager and forgot your instructor before you jumped out of the airplane, also panic. Keep these tips in mind next time you skydive to guarantee you stay cool, collected, and appropriately terrified. Student 2 claims that scenario Claim Student 2 creates C code for the scenario and posts it //This is my interpretation of the scenario: #include #include #include main() 1 long windspeed; double distanceFromGround; char parachute Jams[4]; int instructorPresence ; printf("What is the wind speed? "); scanf_s("%li", &windspeed); do { if (windspeed = 0. "); scanf_s("%11", &windspeed); } //end if while (windSpeed 18000.0) //18,000 feet is the highest skydiving altitude in the US. { printf("Please enter a valid number. (The distance has to be in feet, between @ and 18000). "); scanf_s("%1f", &distanceFromGround); }//end if } while (distanceFromGround 18000.0); //end do while if ((windspeed >= 60 && distance fromGround = 60 || distance fromGround = 60 || distance FromGround >= 1200.0)) { printf("Keep calm, no need to panic for now "); printf("Is your instructor with you? (Enter i for \"Yes" or o for \"No\" "); scanf_5("%i", &instructorPresence); do { if (instructor Presence != 1 && instructorPresence != 0) { printf("Incorect entry. Please enter i for "Yes" or o for \"No\" "); scanf_s("%i", &instructor Presence); Scenario - Take some exercise If you get up at 7:00 and it has been already 3 days since you went to the gym last time or you cannot sleep well at night and the gym is closed on Sunday, then do some exercise. It is good for your health to walk more than 5,000 steps a day. Edited by Hailin Zeng on Jan 22 at 4:27pm

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!