Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java program as follows: 1. Prompt user for the number of students 2. For each student have user enter student's name and
Write a Java program as follows: 1. Prompt user for the number of students 2. For each student have user enter student's name and exam score (0-100) 3. Store names and scores in separate arrays 4. Code method which gets integer array and uses for-loop to find the index of the smallest value 5. Code method which gets integer array and uses for-loop to find the index of the largest value 6. Output all students with their scores 7. Output which student has highest exam score and which student has lowest exam score Make sure your Java program is using the recommended style such as: Javadoc comment up front with your name as author, date, and brief purpose of the program Comments for variables and blocks of code to describe major functionality Meaningful variable names and prompts Identifiers are written in upper CamelCase Class name starts with upper case letter and variables in lower case letter Constants are written in All Capitals Use proper spacing and empty lines to make code human readable Capture execution: You should capture and label screen capture associated with compiling your code, and running a test case. Here is a sample run: RUN: How many students do you want to enter: 3 Student 1: Enter student's name: John Smith Enter student's score (0-100): 80 Student 2: Jane Cebula Enter student's name: Enter student's score (0-100): 98 Student 3: Enter student's name: Enter student's score (0-100): 75 Ginny Jones John Smith Jane Cebula Ginny Jones 80 98 75
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Based on the instructions provided in the image youve shared youre looking to create a Java program that performs the following tasks 1 Prompt the use...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started