Question: Problem 1: Create a program that asks that asks the user for the number of males and females in a class. The program should display
Problem 1:
Create a program that asks that asks the user for the number of males and females in a class. The program should display a percentage of males and females. For example, there are 5 males, and 15 females. That makes 20 people total. To find the percentage of males you can divide 5 by 20, which makes 0.25, or 25%
HINT: USE A VARIABLE for every group of people that you will use in your calculation. Submit your .java source code and a screen capture of your program at runtime, including output.
Problem 2:
You are given a Fahrenheit temperature of 87.6 degrees. Convert it to Celsius, and display both temperatures. Your output should look similar to the following:
Fahrenheit Temperature: 87.6 Celsius Temperature: 30.88
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
