New

Learn smart - Learn online. Upto 80% off on courses for a limited time. View Courses

# BN108D Programming For Networking

## Question:

Look at the sample logs of execution to see how your program is to behave. Your program must exactly reproduce the behavior demonstrated in these logs.  For each applicant, we prompt for exam scores (either SAT or ACT) and overall GPA.  The exam information is turned into a number between 0 and 100 and the GPA information is turned into a number between 0 and 100 and these two scores are added together to get an overall score between 0 and 200.  After obtaining scores for each applicant, the program reports which one looks better or whether they look equal.

Notice that the program asks for each applicant whether to enter SAT scores or ACT scores (SAT scores are integers that vary between 200 and 800, ACT scores are integers that vary between 1 and 36).  In the case of SAT scores, the user is prompted for SAT verbal and SAT math subscores.  In the case of ACT scores, the user is prompted for English, math, reading and science subscores.  These scores are turned into a number between 0 and 100 using the following formulas.

These formulas produce numbers in the range of 0 to 100.  After computing this exam score, we compute a number between 0 and 100 based on the GPA.  You will notice that the program prompts for the GPA and the maximum GPA.  Both the GPA and maximum GPA are real values (i.e., they can have a decimal part).  You should turn this into a score between 0 and 100 using the following formula:

At this point your program has two scores that vary from 0 to 100, one from their test score and one from their GPA.  The overall score for the applicant is computed as the sum of these two numbers (exam result + gpa result).  Because each of these numbers is between 0 and 100, the overall score for an applicant ranges from 0 to 200.

You do not have to perform any error checking.  We will assume that the user enters numbers and that they are in the appropriate range.

In terms of program style you should use static methods to eliminate redundant code and to break the problem up into logical subtasks.  Your main method should be short so that a person can easily see the overall structure of the program.  You are to introduce at least five static methods other than main to break this problem up into smaller subtasks and you should make sure that no single method is doing too much work.  In this program, none of your methods should have more than 15 lines of code in the body of the method (not counting blank lines or lines with just curly braces on them).

Be sure to once again include a short comment at the beginning of your program as well as a short comment for each method describing what it does.

Also remember that because this program involves both integer data and real data, you need to use appropriate type declarations (type int and calls on nextInt for integer data, type double and calls on nextDouble for real-valued data).

Your program should be stored in a file called MITnnnnnAdmit.java where MITnnnnn is your MIT student ID.  Because your program will be using a Scanner object, you will need to include the following declaration at the beginning of your program.

### Cite This Work

My Assignment Help (2021) Programming For Networking [Online]. Available from: https://myassignmenthelp.com/free-samples/bn108d-programming-for-networking/programming-language.html
[Accessed 27 June 2022].

My Assignment Help. 'Programming For Networking' (My Assignment Help, 2021) <https://myassignmenthelp.com/free-samples/bn108d-programming-for-networking/programming-language.html> accessed 27 June 2022.

My Assignment Help. Programming For Networking [Internet]. My Assignment Help. 2021 [cited 27 June 2022]. Available from: https://myassignmenthelp.com/free-samples/bn108d-programming-for-networking/programming-language.html.

### Latest Programing Samples

• Course Code: ME3055
• University: Aston University
• Country: United Kingdom

Answer: Introduction The advancements in the design of the system have sparked the developments and implementation of different smart automated systems that that executes the duties of the respective jig systems but in a more convenient, reliable and easier manner. Some of the systems in jig industry have adopted the use of automated systems in their particular sectors such as the Parson automated driller which reduces the costs in various wa...

#### FIT5163 Information And Computer Security

• Course Code: FIT5163
• University: Monash University
• Country: Australia

Answer: Definition, Advantages and Disadvantages of Homomorphic Encryption (HE) Approaches Name of HE Approach Definition of HE Approach Advantages of HE Approach Disadvantages of HE Approach Security Efficiency Textbook RSA Textbook RSA is one algorithm that is a public key encryption algorithm. This algorithm relies on the generation of two large prime numbers. The product of these two factor...

Read More Tags: Australia Melbourne Finance FIT5163 Information & Computer Security University of Melbourne

#### CSP2108 Introduction To Mobile Applications Development

• Course Code: CSP2108
• University: Edith Cowan University
• Country: Australia

Answer: Introduction Writing a code that is testable needs extra effort, discipline and concentration. However, application development is a complex activity that requires carefulness and avoidance of coming up with new code recklessly. Black Box Testing This is a testing procedure for application under test (AUT) functionalities without considering the internal code design, knowledge of the application internal paths and implementation det...

Read More Tags: Australia Westfield Management University of Melbourne

Next

### We Can Help!

Get top notch assistance from our best tutors !

### Refer & earn

Just refer 5 friends to earn more than \$2000.

### Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the content removal request.

## 5% Cashback

On APP - grab it while it lasts!