Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2: Celsius ToFahrenheit Lab 2 45 points Data input, data processing, and data output. Problem 1: MaleFemalePercent Write a program that prompts the user

image text in transcribed

Problem 2: Celsius ToFahrenheit Lab 2 45 points Data input, data processing, and data output. Problem 1: MaleFemalePercent Write a program that prompts the user for the number of males and the number of females registered in a class using two separate prompts: ("Enter number of females enrolled:"). ("Enter number of males enrolled:"). Output: Display the percentage of males and females in the following way using the values from the screenshots: Write a program that asks the user for the temperature in Celsius. Convert the Celsius temperature to the temperature in Fahrenheit using the following formula: (9/5) Celsius +32 The input for the program should accept floating point values (decimals). The output for the program should display the Celsius temperature and the Fahrenheit temperature. Enter the Celsius temperature: 20 20.e degrees celsius converted to fahrenheit is: 68.2 Class enrollment: Percent female: 65 : Percent male: 35 Enter the Celsius temperature: 20.5 20.5 degrees celsius converted to fahrenheit is: 68.9 Please enter the number of female students enrolled: 7 Please enter the number of male students enrolled: 3 Clasa enrollment Percent female: 70.0 Percent sale : 30.0 Problem 3: FahrenheitToCelsius Write a program that asks the user for the temperature in Fahrenheit. Convert the Fahrenheit temperature to the temperature in Celsius using the following formula: (Fahrenheit - 32)5/9 Please enter the number of renale students enrolled. 18 Please enter the number of male students enrolled: class enrollment The input for the program should accept floating point values (decimals). The output for the program should be the Fahrenheit temperature and the Celsius temperature. Percent female: 75.0 Percent sale : 25. Please enter the number of resale students enrolled: 14 Please enter the number of male students enrolled: 10 Class enrollment Enter the Fahrenheit temperature: 68.8 68.8 degrees Fahrenheit converts to approximately 28.444444444444443 degrees Celsius. Percent female: 58.333333333333336 Percent male : 01.GGGGGGGGGGGGG7 Enter the Fahrenheit temperature: 68.9 68.9 degrees Fahrenheit converts to approximately 28.588888888888884 degrees Celsius

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

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago