Question

I need this in Net beans and not Python. Part 1 - Pseudo-code Design and write...

I need this in Net beans and not Python.

Part 1 - Pseudo-code

Design and write the pseudo-code for the following Problem Statement.

Problem Statement

A company gives its employees an that will provide one of 3 results based on the following ranges of scores:

Score Message on Report
90-100 Special Commendation
70-89 Pass
Below 70 Fail

Design a single If-Then-Else structure using pseudo-code which displays one of these messages based a score input by a user. Be sure your answer is properly aligned and indented and contains all the necessary comments.

You can assume that the Integer variable score has already been declared and that its value has already been input by the user. Write only the code required to evaluate the score and display the appropriate message. Do not write an entire module or program!

Part 2 - Java Code

Take the pseudo-code you designed in Part 1 and write the Java program code. Submit the pseudo-code and Java code in a file named in the form [Last Name]--Question 1. Use the headings Pseudo-code and Java Code to indicate Part 1 and Part 2 for this question.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Pseudo-code to evaluate score and display appropriate message:

//condition to check if the score is between 90 and 100
If score>=90 AND score<=100
//if yes, printing appropriate message
print "Special Commendation"
//if condition to check if the score is between 70 and 89
Else If score >=70 AND score<=89
//if yes, printing appropriate message
print "Pass"
//condition that executes if both the above conditions fail
Else
//printing appropriate message
print "Fail"

Java Program to implement the above pseudo-code:

//importing Scanner to read values from user
import java.util.Scanner;
//Solution class
public class Solution
{
//main function
public static void main(String[] args) {
//creating scanner object
Scanner sc=new Scanner(System.in);
//reading score from user
System.out.print("Enter Score: ");
//declaring the score variable and storing the value in it
int score=sc.nextInt();
//condition to check if the score is between 90 and 100
if(score>=90 && score<=100){
//if yes, printing appropriate message
System.out.println("Special Commendation");
}
//if condition to check if the score is between 70 and 89
else if(score >=70 && score<=89){
//if yes, printing appropriate message
System.out.println("Pass");
}
//condition that executes if both the above conditions fail
else{
//printing appropriate message
System.out.println("Fail");
}
}
}

Code Screenshot:

//importing Scanner to read values from user import java.util.Scanner; // Solution class public class Solution { //main funct

Output:

Enter Score: 95 Special Commendation BUILD SUCCESS Total time: 4.882 s Finished at: 2020-06-22T00:48:08+05:30 Final Memory: 7

Add a comment
Know the answer?
Add Answer to:
I need this in Net beans and not Python. Part 1 - Pseudo-code Design and write...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • PLEASE UPLOAD or Write a simple PSEUDO CODE AND JAVA CODE for this program WITH COMMENTS...

    PLEASE UPLOAD or Write a simple PSEUDO CODE AND JAVA CODE for this program WITH COMMENTS IN BOTH TELLING WHAT EACH PART DOES. (I NEED BOTH CODES NOT JUST ONE OR THE OTHER) Problem Statement A golf club has a small tournament consisting of five golfers every weekend. The club president has asked you to design a program that does the following: Reads player’s names and their scores from the keyboard for each of the five golfers and simulates writing...

  • Design a modular program using pseudo-code which prompts a user for their first name, followed by...

    Design a modular program using pseudo-code which prompts a user for their first name, followed by their last name; then displays a "Hello" salutation which concatenates their first name with their last name. Sample output (user input shown in red): Please enter your first name: John Please enter your last name: Smith Hello, John Smith! Your program must include a main module and one function; this function prompts the user for either their first name or last name, using a...

  • Design and Analysis of algorithm - -- pseudo code Write a program that, for a given...

    Design and Analysis of algorithm - -- pseudo code Write a program that, for a given graph, outputs: a. vertices of each connected component b. its cycle or a message that the graph is acyclic

  • IN JAVASCRIPT 5. Write the pseudo code to solve the following problem (10pts/10pts) You are asked...

    IN JAVASCRIPT 5. Write the pseudo code to solve the following problem (10pts/10pts) You are asked to write a calculator program. Your calculator must perform Addition, Subtraction, Division and Multiplication. The user will enter two numbers and then an operator. If the user enters an operator other than the four mentioned the program will display an error message otherwise it will display the answer. Demonstrate use of an if statement

  • (PLEASE UPLOAD ALL PARTS TO THE QUESTION) (IE: PSEUDO CODE AND JAVA CODE TOGETHER NOT ONE...

    (PLEASE UPLOAD ALL PARTS TO THE QUESTION) (IE: PSEUDO CODE AND JAVA CODE TOGETHER NOT ONE OR THE OTHER) Design an Employee class that fields for the following pieces of information: 1) Employee name 2) Employee number Next design a class named ProductionWorker that extends the Employee class. The ProductionWorker class should have fields to hold the following information: 1) Shift number (an integer, such as 1, 2, or 3) 2)Hourly pay The workday is divided into two shifts day...

  • (PLEASE UPLOAD ALL PARTS TO THE QUESTION) (IE: PSEUDO CODE AND JAVA CODE TOGETHER NOT ONE...

    (PLEASE UPLOAD ALL PARTS TO THE QUESTION) (IE: PSEUDO CODE AND JAVA CODE TOGETHER NOT ONE OR THE OTHER) Design an Employee class that fields for the following pieces of information: 1) Employee name 2) Employee number Next design a class named ProductionWorker that extends the Employee class. The ProductionWorker class should have fields to hold the following information: 1) Shift number (an integer, such as 1, 2, or 3) 2)Hourly pay The workday is divided into two shifts day...

  • PLEASE UPLOAD or Write a simple pesudo code and java code for this program with comments...

    PLEASE UPLOAD or Write a simple pesudo code and java code for this program with comments in both describe what things do. Problem Statement A golf club has a small tournament consisting of five golfers every weekend. The club president has asked you to design a program that does the following: Reads player’s names and their scores from the keyboard for each of the five golfers and simulates writing them to a file called "golf.dat" Entering "Z" for the player...

  • guys can you please help me to to write a pseudo code for this program and...

    guys can you please help me to to write a pseudo code for this program and write the code of the program in visual studio in.cpp. compile the program and run and take screenshot of the output and upload it. please help is really appreciated. UTF-8"CPP Instruction SU2019 LA X 119SU-COSC-1436- C Get Homework Help With Che X Facebook -1.amazonaws.com/blackboard.learn.xythos.prod/584b1d8497c84/98796290? response-content-dis 100% School of Engineering and Technology COSC1436-LAB1 Note: in the instruction of the lab change "yourLastName" to your last...

  • Write python code on computer, No handwritten code You will implement a program which asks the...

    Write python code on computer, No handwritten code You will implement a program which asks the user to enter scores of different courses in different semesters. The program should read the input and output some simple statistics 1. An example input string by the user is given below. Fal12016-coursel:82, course2:80,course3:85;Spring2018- course4:82;Fall2018-course5:85, course6:50, course7:78 Info from different semesters are separated by a ";", courses in each semester are separated by a,and score and corresponding course is separated by a, information of...

  • This program should be written in C Thoroughly following the Code Conventions, write an efficient program,...

    This program should be written in C Thoroughly following the Code Conventions, write an efficient program, which ask the user for their numeric grade, and determines and displays the equivalent letter grade, based on the following information: Use appropriate data types and initialize the variables correctly Use the following grading scale: A: 90 - 100 B: 80 - < 90 C: 70 - < 80 D: 60 - < 70 F: 0 - < 60 If the input is invalid,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT