Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Class activity 1 0 . A - More about function Learning outcomes: Test student's ability to define multiple functions and use the concept of function

Class activity 10.A - More about function
Learning outcomes:
Test student's ability to define multiple functions and use the concept of function linkage to complete a program.
Asses student's application of scooping in multiple functions.
Activity description: write three functions:
One function to collect and return a number between 1 and 100, inclusive. If the user enters a number that is not between 1 and 100, the program will ask the user to a new number. The function only returns a number (integer) between 1 and 100. This number will be used as time.
One function that will calculate the falling distance of an object using the following formula:
Distance =(()**)**
The function returns the calculated distance as a float value.
The gravity is set as a global variable with value of 9.8.
The time is collected from the first function and passes as a parameter.
One function to prompt the result as
The falling distance is meters
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

=+ (a) Show that A,(i) is trifling.

Answered: 1 week ago

Question

2. Outline the business case for a diverse workforce.

Answered: 1 week ago