CompletePROBLEM 1 ONLYof the following assignments (find out how to input a number from a keyboard into
Question:
Complete PROBLEM 1 ONLY of the following assignments (find out how to input a number from a keyboard into your Java program). Study Chapter 2 PPT
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
Document your program about data type that you used and why, using either single line comments // or multi-line comments /* */
Submit your .java source code and a screen capture of your program at runtime, including output.
HINT: On Mac use SHIFT-COMMAND-4 to capture a portion of your screen, then find the capture file on your Desktop. Rename it before the upload.
See How to Submit Assignment folder below and use the submit link above to attach your assignments.
Auditing and Assurance services an integrated approach
ISBN: 978-0132575959
14th Edition
Authors: Alvin a. arens, Randal j. elder, Mark s. Beasley