Question: Need in java coding create a client/server application that: Calculates an average grade based on a set of assignment grades. Determines the corresponding letter grade
Need in java coding
create a client/server application that:
- Calculates an average grade based on a set of assignment grades.
- Determines the corresponding letter grade based on the average grade percentage. The client program and the server program should communicate over the network using messages.
The client program will collect assignment grades from the end user using the console. It will then send the grades to the server program, which will calculate the average grade percentage and determine the corresponding letter grade, both of which will be returned to the client program.
The programs should continue to run until the user indicates that they want to exit.
The following image illustrates the server program's console output:

The following image illustrates the client program's console output (with validation):

Server started Waiting for a connection to the client Successfully connected to the client The incoming message from the client is: 96.0 The incoming message from the client is: 95.0 The incoming message from the client is: 50.0 The incoming message from the client is: 100.0 The incoming message from the client is: 100.0 The incoming message from the client is: 75.0 Server stopped client started Waiting for a connection to the server Successfully connected to the server Enter an assignment grade as a percentage: 96 Enter y to add another grade. Enter N to calculate final grade. Enter an assignment grade as a percentage: 95 Enter y to add another grade. Enter N to calculate final grade. Enter an assignment grade as a percentage: 50 Enter y to add another grade. Enter N to calculate final grade. n Server response is: Percentage grade is: 80% Server response is: Letter grade is: B Enter y to continue. Enter x to quit. y Enter an assignment grade as a percentage: -1 Enter an assignment grade as a percentage: X Enter an assignment grade as a percentage: 100 Z Enter y to add another grade. Enter N to calculate final grade. Enter y to add another grade. Enter N to calculate final grade. Enter an assignment grade as a percentage: 100 Enter y to add another grade. Enter N to calculate final grade. Enter an assignment grade as a percentage: 75 Enter y to add another grade. Enter N to calculate final grade. n Server response is: Percentage grade is: 92% Server response is: Letter grade is: A Enter y to continue. Enter x to quit. Client stopped
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
