Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I dont know what I am doing wrong, help me please... ElementaryOS [Running) - Oracle VM VirtualBox File Machine View Input Devices Help Q Applications

image text in transcribed

image text in transcribed

I dont know what I am doing wrong, help me please...

ElementaryOS [Running) - Oracle VM VirtualBox File Machine View Input Devices Help Q Applications Sat, Feb 27 23:05 X project2 - wind_chill.py File Edit View Navigate Code Refactor Run Tools VCS Window Help project2 te wind_chill.py Project dragon_curve.py te die.py sum T 1: Project te day_of_week.py te quadratic.py 1 import stdio 2 import sys 3 4 t = float(sys.argv[1]) v = float(sys.argv[2]) 5 H. Z: Structure 6 7 w = 35.74 + 0.6215*t + (0.4275*t-35.75)*(V**0.16) 8 9 10 11 project2 project2 sources root, - workspace/project2 te card.py day_of_week.py die.py dragon_curve.py factorial.py La fibonacci.py te gcd.py te perfect_numbers.py te primality_test.py prime_counter.py te quadratic.py te ramanujan_numbers.py report.txt root.py setup.cfg sum_of_powers.py wind chill.py > stdlib-python-/lib/stdlib-python > External Libraries Scratches and Consoles 12 13 14 15 16 17 if t > 50: stdio.writeln("Value of t must be s 50 FT) else: stdio.writeln(w) if v 3 mph") else: stdio.writeln(w) | Terminal: Local + python3wind: command not found student@turing:-/workspace/project2$ python3 wind_chill.py 55 1 Value of t must be s 50 F Value of v must be > 3 mph student@turing:-/workspace/project2$ python3 wind_chill.py 30 1 31.460000000000004 Value of v must be > 3 mph student@turing:-/workspace/project2$ python3 wind_chill.py 30 5 24.726816695818375 24.726816695818375 2: Favorites * student@turing:-/workspace/project2$ Bb Syllabux Submit project X - Project x Google x m CS110 X CS110 Greate: x ALDS1 x Windchx C Exercise X pills for X can psix piazza CS 110 X O Mail - + c @ https://www.swamiiyer.net/cs110/project2.pdf + Not syncing 1 of 3 Q (L Page view A Read aloud V Draw Highlight Erase Project 2 (Programs with Control Flow) This document only contains the project problems. For the programming exercises on concepts related to the project, please refer to the project checklist available on the course website. Goal The purpose of this project is to write interesting programs using control-flow statements. W = Problem 1. (Wind Chill) Given the temperature t (in Fahrenheit) and the wind speed v (in miles per hour), the National Weather Service defines the effective temperature (the wind chill) to be - 35.74 +0.6215t + (0.4275t 35.75)v0.16. Write a program called wind_chill.py that accepts t (float) and v (float) as command-line arguments, and writes the wind chill w to standard output. Your program should report the message Value of t must be 50, and the message Value of v must be > 3 mph if v _ /workspace/project2 $ python3 wind_chill.py 32 15 21.588988890532022

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 And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

5. Arranging for the training facility and room.

Answered: 1 week ago

Question

1. Discuss the five types of learner outcomes.

Answered: 1 week ago