Reference no: EM13115438
Create a complete Java application that meets these requirements:
1. The program has an opening comments section (using block comments) with the file name, date, your name, and purpose of the program.
2. Organize your program into sections for declaring variables and constants, input, processing, and output as much as possible. Add comments denoting these sections.
3. In the declaration section, declare all variables and constants used in the program. Use the most appropriate data types for all variables and constants. The Army's qualifying time to run 2 miles for a male is 16 minutes and for a female is 19 minutes. Enter these times as constants in your program.
4. Make your program user-friendly by providing an opening explanatory message using JOptionPane. The program tests whether a male or female passes the Army running test.
5. In the input section, ask the user to enter M for a male or F for a female candidate using JOptionPane. Then ask the user to enter the time (in decimal minutes) for the candidate's 2 mile run.
6. In the processing section, determine if the candidate passes the test or not.
7. In the output section, display the candidate's gender (M or F), the candidate's time, and the word PASS or FAIL as appropriate. The output should be user-friendly (that is, self-explanatory, neat, and organized).
Elucidate the momentum change
: One ball is perfectly inelastic and stays on the wall after collision andsecond ball is elastic and bounces of the wall. Elucidate the momentum change
|
Mathematics-number puzzles
: Thirty flasks, 10 full, 10 half empty and 10 entirely empty, are to be divided among 3 sons so that flasks and content should be shared equally.
|
Determine the actual duration
: On average, cells in the Allium root tip divided about once per day. Assuming this is true for the specimen you examined, use your calculations of relative duration to determine how much time, in minutes, Allium cells spend in each phase of mitosi..
|
Computing premium and discount on bonds
: Swanson Inc. purchased $400,000 of Malone Corp. ten-year bonds with a stated interest rate of 8 percent payable quarterly. At the time the bonds were purchased
|
Create a complete java application
: Create a complete Java application that meets these requirements and the program has an opening comments section (using block comments) with the file name, date, your name, and purpose of the program.
|
What is the total pressure in the tank
: A 2.0 L tank at 298 K contains oxygen gas with a partial pressure of 3.8 atm and helium gas with a partial pressure of 5.2 atm.
|
Illustrate what effect did catharsis have on the mental
: In the field of psychology, what is meant by the term “catharsis”? According to Joseph Bruer, Illustrate what effect did “catharsis” have on the mental functioning of someone with a “troubled mind”? Why?
|
Determining bonds and interest expense
: The issuance price of a bond does not depend on the-Which of the following is true of a premium on bonds payable?
|
How many grams of helium are contained in balloon
: A 2.32 L balloon contains helium at 1.00 atm and 25°C. How many grams of helium are contained in the balloon.
|