help (original) (raw)

I been failing the java class and all program I am writing is wrong. To able to pass the class I need to write the following program l would be greatful.heres the projects that need writing...

Prob #2: Write a program for a college's admission office. Create varaibles to store a student's numeric high school grade point average and an admission test score. Print the message "Accept" if the student has any of the following:

* A grade point average of 3.0 or above and an admission test score of at least 60

* A grade point average below 3.0 and an admission test score of at least 80

If the student does not meet either of the qualification criteria, print "Reject." Save the program as Admission.java

Prob #3: Write a program that prints every integer value from 1 to 20 along with its squared value. Save the program as TableOfSquares.java

Prob #4: Write a program that calculates the amount of money earned on an investment; that amount should include 12 percent interest. Prompt the user to choose the investment amount from one menu and the number of years for the investment from a second menu. Display the total amount (balance) for each year of the investment. Use a loop instruction to calculate the balance for each year. Use the formula amount = investment * (1 + interest) raised to a power equal to the year to calculate the balance. Use the math power function. Math, pow(x,y) where x= (1 + interest) and y is the year save as Intvestment.java

Prob #5: Write a program that calculates the total number of letters contained in the String "Event Handlers Incorporated, 8900 U.S. Highway 14, Crystal Lake, IL 60014". Save as StringLetters.java

Prob6: Create a class that holds three initialized StringBuffer objects: your first name, Middle name, and last name. Create three new StringBuffer objects as follows:

* An object named EntireName that holds your three names, separated by spaces

* An object named LastFirst that holds your last name, a comma, a space, and your first name, in that order

* An object named Signature that holds your first name, a space, your middle, initial (not the entire name), a period, a space, and your last name

Display all three objects. Save as Buffer.java

Prob #6: Write a program that calculates the total number of whitespaces contained in the String “[Tab] [Tab] “, which respents two tabs and three spaces. Save the program as StringWhite.java

Prob #7: Store 20 integer employee ID numbers in an integer array, and 20 corresponding employee last name, Such as “Hello Kimberly!” Sava as HelloArray.java