Statements to convert the string representation of a student

Assignment Help JAVA Programming
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

Reference no: EM13940357

Questions Cloud

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..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd