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

  Evaluate the amount of a certificate of deposit on maturity

Write a GUI program to compute the amount of a certificate of deposit on maturity -  prepare a program to evaluate the amount of a certificate of deposit on maturity

  Write a program comprising classes

Write a program comprising three classes: MonteCarlo (with the main() method), Simulation, and Metrics.

  Produce a fully functional gui program

Produce a fully functional GUI program in accordance with the specifications mentioned below. The program will be used to determine and display the final mark of students

  Java applet to find how much federal tax we need to pay

Write a java applet to determine how much federal tax we need to pay assuming the tax rate is 12%.  Ask the taxable income.

  Create class called hospital and add all relevant attributes

Create a class called Hospital and add all the relevant attributes for the created class - Create a User's super class that contains all the properties common to the all the users that will be using the Hospital patient billing system.

  A small mobile application using android or ios

A small mobile application using Android or IOS, the application idea chosen by each student individually, or in groups of two students only. The app must be not less than 3 activities.

  Write a java program that inputs a string

Write a program that inputs a string similar to: 3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3. Your program should apply the Shunting-yard algorithm to this string to ultimately produce a mathematical result.

  Using a linked implementation of graph write a method

Write a method that takes two nodes as input and returns true if joining an edge between these two nodes, forms a duplicate path to one of the input nodes within the graph.

  What are mobile oss you have personally used explain the

write a 200- to 300-word short-answer response to the following bull what are mobile oss you have personally used?

  Write servlet code for accepting two numbers from user

Write the servlet code for accepting two numbers from user show addition and multiplication of numbers. If error occurs, then call JSP error page to display suitable error message.

  Write down a java program that implements a stack of

write a java program which implements a stack of integers. an integer should only be pushed into the stack if it is

  Create a graphical application stackdemogui

Create a graphical application StackDemoGUI that provides a button for push and pop from a stack, a text field to accept a string as input for push, and a text area to show the contents of the stack after each operation.

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