Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CNA 267 Lab 2 Your second lab includes sections 2.1 - 2.5, 2.7, 2.9 -2.10, 2.15 and 2.19 in your zxBoek. For section 2.9, you

image text in transcribed
CNA 267 Lab 2 Your second lab includes sections 2.1 - 2.5, 2.7, 2.9 -2.10, 2.15 and 2.19 in your zxBoek. For section 2.9, you are not assigned the three challenge activities. In addition, write the following two programs in IDLE. In file names, the xyxy_should be replaced by your last name. Program 1: (Xxx Pizza, where yxxy is your family name plus your first name initial): Americans eat an average of 350 slices of pizza per second. How many slices of pizza do they eat in x days (where x is input by the user)? Here is a sample run: For how many days would you like to calculate the total number of pizza slices eaten by Americans? 4 Americans would eat 120960000 slices of pizza in 4 days. Program 2: yyyylab2-2 (where yyyy is as in no. 1). If you know an airplane's take-off speed (v) and acceleration (a), you can compute the minimum runway length needed for it to take off. The formula for the length of the runway is: length = v / 2a Write a program that prompts the user to enter v in meters/second and the acceleration a in meters/second squared, and displays the minimum runway length. This is a sample run: Enter the take-off speed of the airplane: 65 Enter the acceleration of the airplane: 3.6 The minimum runway length for this airplane is 586.805 meters. Copy the code for the two programs into a Word Processor or text program

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_2

Step: 3

blur-text-image_3

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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions