Reference no: EM13940357
Need assistance with the java program below.
1. Declare two String variables named testScoreString and classRankString.
2. Declare two integer variables named testScore and classRank.
3. Write the interactive input statements to retrieve a student's test score and class rank from the user of the program.
4. Write the statements to convert the String representation of a student's test score and class rank to the integer data type.
/* Program Name: CollegeAdmission.java
Function: This program determines if a student will be admitted or rejected.
Input: Interactive
Output: Accept or Reject
*/
import javax.swing.JOptionPane;
public class CollegeAdmission
{
public static void main(String args[])
{
// Declare variables
// Get input and convert to correct data type
// Test using admission requirements and print Accept or Reject
if( testScore >= 90 )
{
if( classRank >= 25)
{
System.out.println("Accept");
}
else
System.out.println("Reject");
}
else
{
if( testScore >= 80 )
{
if( classRank >= 50 )
System.out.println("Accept");
else
System.out.println("Reject");
}
else
{
if( testScore >= 70 )
{
if( classRank >=75 )
System.out.println("Accept");
else
System.out.println("Reject");
}
else
System.out.println("Reject");
}
}
} // End of main() method
} // End of CollegeAdmission class
Manufactured product according to variable costing concept
: Which of the following costs would be included in the cost of a manufactured product according to the variable costing concept?(a) Rent on factory building,
|
Can you conclude that online gambling is more prevalent
: On the basis of the data provided, can you conclude that online gambling is more prevalent among individuals who are under the age of 30 at a level of significance of 0.05? Why or why not? (Show all seven steps of the appropriate hypothesis test.
|
Conduct a service firm audit for the commonwealth bank
: This assessment requires students to adopt the position of marketing consultants and conduct a service firm audit for the Commonwealth Bank of Australia Students are to apply Marketing and Services Marketing theory as well as concepts learnt in cl..
|
Finding various ratios for a hospital called louisville
: An assignment in finding various ratios for a hospital called Louisville Community Hospital for my finance class. One of the ratios that I am trying to find is: "Days Cash On Hand.
|
Statements to convert the string representation of a student
: Write the statements to convert the String representation of a student's test score and class rank to the integer data type.
|
Analyze the company cash flows
: Identify your company, its industry, and analyze the important segments (percentage of sales or subsidiaries) of your company compared to its industry and its overall business. Analyze the company's cash flows
|
The us dollar equivalent
: The us dollar equivalent is 0.3841 for the Brazilian real and 1.8759 for the U.K. pound. this means that
|
Reflection on a challenging experience
: Using a model of nursing reflection such as 5rs bain 2002 or Gibbs (1988) model of reflection write a 1000 words reflection on a challenging experience that occurred while you were on clinical practicum.
|
Discuss the tax law discussed in administrative announces
: Paul receives a 90-day letter after his meeting with and appeals officer. He is not satisfied with the $101,000 settlement offer. Briefly identify the relevant tax research issues facing Paul. The pertinent facts of both the case and the ruling match..
|