Lab 2

docx

School

Humber College *

*We aren’t endorsed by this school

Course

BIA5001

Subject

Statistics

Date

Feb 20, 2024

Type

docx

Pages

2

Uploaded by CountScience10089

Report
BIA5001 Introduction to Statistical Software Languages Winter 2023 Dr. Nihad Al-juboori Lab 2 Student ID: Student Name: Q1: Problem Description Average acceleration is defined as the change of velocity divided by the time taken to make the change, as given by the following formula: a = v 1 -v 0 / t Write a Python program that prompts the user to enter the starting velocity v 0 in meters/second, the ending velocity v 1 in meters/second, and the time span t in seconds, then displays the average acceleration a . Here is a sample run: Enter the v 0 : 5.5 Enter the v 1 : 50.9 Enter t: 4.5 The average acceleration (a) is: 10.088888888888889 Part 1: The program must satisfy the following requirements: 1- It must let the user enter the starting velocity, ending velocity, and the time. 2- It must compute and display the acceleration. **Complete parts 2 - 4 Part 2: Analysis Describe the problem including input, process and output (use I-P-O). Part 3: Design and Test Describe the major steps for solving the problem. Part 4: Coding Copy and Paste Source Code here.
Q2: Problem Description Write a Python program that reads a number in feet, converts it to meters, and displays the results. One foot is 0.305 meter. Here is a sample run: Enter a value for feet: 16.5 16.5 feet is 5.0325 meters Part 1: The program must satisfy the following requirements: 1- It must let the user enter a number in feet. 2- It must compute and display the number in meters. **Complete parts 2 - 4 Part 2: Analysis Describe the problem including input, process and output (use I-P-O). Part 3: Design and Test Describe the major steps for solving the problem. Part 4: Coding Copy and Paste Source Code here. Note: 1. Complete and show me your group work.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help