Answered step by step
Verified Expert Solution
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: 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 incrementdecrement 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 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.
Briefly explain the purpose of your program including your IPO Input Processing and Output features.
What isare the names of the classes you imported?
What isare the names of the classes in the project?
What are line numbers for the beginning and end of your main method. Separate your answers with a comma. Example:
What method does the program use to get user input?
Which String method does the program utilize?
What are line numbers for the beginning and end of an if statement in your code? Separate your answers with a comma. Example:
What is the condition the if statement uses? What is the purpose of your if statement?
Which line number contains the arithmetic operator the program uses?
What are line numbers for the beginning and end of your loop? Separate answers with a comma
What is the condition for the loop?
What is the name at least one method you used and its purpose.
What parameters does that method take?
What is the return type of that method?
Which assert methods does the Junit test utilize?
Why did you select to use the assert methods you used
Which line contains feedback to the user?
Which line demonstrates a single line comment?
Which lines demonstrate a block comment?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started