Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program with methods that fit the following specifications Java Ensure all the methods you create are nonstatic methods. Take note of the information

Write a program with methods that fit the following specifications Java

Ensure all the methods you create are nonstatic methods.

Take note of the information you are given about parameters and return. Choose appropriate data types.

INCLUDE A METHOD HEADER COMMENT ABOVE EACH METHOD

Method 1: Is Even Objective: Determine if a whole number is even or not Parameters: The number to check Return: true if the number is even, false if not. (What data type seems best given these responses?)

Method 2: Letter Grade Objective: Determine the basic letter grade for a percentage Assume a scale of greater than or equal to 90 is an A, 80 is a B, 70 a C, 60 a D, and below an F Parameters: The percentage to use for the determination Return: A single character: the letter representing that grade.

Method 3: Weekly Paycheck Objective: Determine the amount one should expect to take home from their weekly paycheck Parameters: The rate of pay per hour, hours worked for the week, expected tax percentage Return: The take home dollars after taxes for the weekly paycheck

Method 4: Birthstone Objective: Determine the birthstone associated with a month You can use the U.S 2019 table here, and pick your favorite when there's more than one (or list them all!) https://en.wikipedia.org/wiki/Birthstone#Birthstones_by_culturesLinks to an external site. Parameters: The name of the month to examine Return: The name of the birthstone associated with that month, "No Birthstone" if information is not valid. Additional Requirement: When comparing Strings, you must use the way we described in Week 7 as best practice.

Method 5: Birthstone (nope, not a typo!) Objective: Determine the birthstone associated with a month You can use the U.S 2019 table here, and pick your favorite when there's more than one (or list them all!) https://en.wikipedia.org/wiki/Birthstone#Birthstones_by_culturesLinks to an external site. Parameters: The numeric representation of the month you are examining (eg, 1 is January) Return: The name of the birthstone associated with that month, "No Birthstone" if information is not valid. Additional Requirement: Method must have the same name as the name you gave Method 4

Method 7: Get Random ASCII Objective: Get a random ASCII character that is within the printable range (check an ASCII chart if you need help knowing what these are!) Parameters: Nothing Return: A single ASCII character that would be able to be seen on screen if it was printed out Hint: How can the two representations char has help you complete this task? Recall char has both its literal value AND integer mapping.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

To find integral of sin(logx) .

Answered: 1 week ago

Question

b. Will there be one assigned leader?

Answered: 1 week ago

Question

Do you currently have a team agreement?

Answered: 1 week ago