Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA For the midterm project, you will demonstrate your understanding of course concepts thus far. Create a program to exhibit your understanding of the key

JAVA
For the midterm project, you will demonstrate your understanding of course concepts thus far. Create a program to exhibit your understanding of the key components below. Please read through the expectations before you begin coding.
Develop a program using Java that demonstrates the following concepts:
Creating new files and classes
Importing packages
Using techniques to get information from the user (Scanner or JOptionPane)
Using techniques to display information or give user feedback (JOptionPane or console)
Properly formatted output, if applicable (EX: 2 decimal places and $ for money)
Apply a string method within your code. It may or may not changing or modifying the input from a user.
Variables types
Arithmetic operations other than increment/decrement ++ and --
Relational operators
If statements with relational operators
Loops - while loop, for loops, do.... while (at least one)
Working with strings & substrings (at least one String method)
Comments - single line and block
Creating methods
Method thoroughly tested in a JUnit test file with at least three methods
Uploading .java files to Canvas
Uploading image files to Canvas
Use of Java conventions
Excellent and effective coding methodology
You may include additional topics after you have illustrated the above. The following are not required but may earn bonus points (5 maximum).
Creating random numbers between ranges
nested loops
input validation
use of an import that we have not commonly used
After completing the program, answer the questions listed below.
1. Briefly explain the purpose of your program including your IPO (Input, Processing and Output) features.
2. What is/are the name(s) of the classes you imported?
3. What is/are the name(s) of the classes in the project?
4. What are line numbers for the beginning and end of your main method. Separate your answers with a comma. (Example: 5,25)
5. What method does the program use to get user input?
6. Which String method does the program utilize?
7. What are line numbers for the beginning and end of an if statement in your code? Separate your answers with a comma. (Example: 5,25)
8. What is the condition the if statement uses? What is the purpose of your if statement?
9. Which line number contains the arithmetic operator the program uses?
10. What are line numbers for the beginning and end of your loop? (Separate answers with a comma).
11. What is the condition for the loop?
12. What is the name at least one method you used and its purpose.
13. What parameters does that method take?
14. What is the return type of that method?
15. Which assert method(s) does the Junit test utilize?
16. Why did you select to use the assert method(s) you used ?
17. Which line contains feedback to the user?
18. Which line demonstrates a single line comment?
19. Which lines demonstrate a block comment?

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

More Books

Students also viewed these Databases questions

Question

3 What is the difference between interval and ratio data?

Answered: 1 week ago

Question

Consider this article:...

Answered: 1 week ago