I am a beginning level programmer taking an intro programming class and im still having trouble. These are 2 assignments due monday the 5th of december. if you could either complete them and explain what you did wih comments or talk me through it, either would be great. I also am going to post another one thats for our exam. Just for more information though, I am using Textpad for my java code.
This assignment consists of two programs, each worth 25 points, for a total of 50 points. For each exercise, make sure you show decimal numbers to the hundredths place.
Program 7.1
Write a program that accepts ten student grades. Store the values into an array. Display the following results:
•The numeric value of each grade
•The letter grade equivalent (use the class syllabus to see how to derive the letter grade from the number)
•The highest grade
•The lowest grade
•The average grade
When you present the information, be sure to prefix it with text that describes what the user is seeing. For example, when showing the average, don't just put "85" but put "Average: 85".
Follow the steps below: 1.Create a Java program, naming the file and the class DisplayGrades.
2.Put your name, date, program number and title at the top of your program listing as a comment.
3.Write in the pseudocode for the program as comments before you write the real code.
4.Meet the requirements stated above.
5.Display a "Press any key to exit..." and wait for the user to press a key. The program will then end.
6.Run the program and capture the output. Paste the sample output in as a comment at the bottom of your code listing.
--------------------------------------------------------------------------------
Program 7.2
Write a program that asks the user to enter a value indicating the number of candidates running for an election. Then, for each candidate, allow the user to enter the last name and votes received for the candidate. If the last name is missing or the votes are less than zero, ask the question again until the user enters the correct response. When all the data has been entered, display a table showing the candidate name, votes received, and percent of total votes. A sample output is:
Follow the steps below: 1.Create a Java program, naming the file and the class Candidates.
2.Put your name, date, program number and title at the top of your program listing as a comment.
3.Write in the pseudocode for the program as comments before you write the real code.
4.Meet the requirements stated above, making sure you store the names and votes received into arrays.
5.Display a "Press any key to exit..." and wait for the user to press a key. The program will then end.
6.Run the program and capture the output. Paste the sample output in as a comment at the bottom of your code listing.