Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program requirements Your program will need to read in N entries where N is the largest digit of your student ID (see Week4.java), or single

image text in transcribed

Program requirements Your program will need to read in N entries where N is the largest digit of your student ID (see Week4.java), or single entries at a time in a GUI. For each entry you need to read in at least a String or more if it is required and read in a number or numbers to perform a calculation. The calculation should be dependent on a series of if else statements which depends on a variation of pricing based on number of items. If it is just a calculation per entry then use if else statements to report on the result for example: calculating fuel consumption could report being very efficient, normal or not efficient. For each entry you will need to report the charges or calculation results similar to the receipt printed for assignment one. After the entries have been entered you will need to report a couple of cumulative values total money collected and an average of some value (it could be the average of money collected) for example. These could be displayed in a display all option if you are using a GUI interface. For extra credit you can include a GUI interface and store the records using an advanced data structure such as an array of objects, parallel arrays or an ArrayList. Your program needs to display the principles of good programming practises: meaningful identifiers using camel notation, correct indentation and layout, constants used for numeric values and correct commenting including a header comment for all files if applicable. Program requirements Your program will need to read in N entries where N is the largest digit of your student ID (see Week4.java), or single entries at a time in a GUI. For each entry you need to read in at least a String or more if it is required and read in a number or numbers to perform a calculation. The calculation should be dependent on a series of if else statements which depends on a variation of pricing based on number of items. If it is just a calculation per entry then use if else statements to report on the result for example: calculating fuel consumption could report being very efficient, normal or not efficient. For each entry you will need to report the charges or calculation results similar to the receipt printed for assignment one. After the entries have been entered you will need to report a couple of cumulative values total money collected and an average of some value (it could be the average of money collected) for example. These could be displayed in a display all option if you are using a GUI interface. For extra credit you can include a GUI interface and store the records using an advanced data structure such as an array of objects, parallel arrays or an ArrayList. Your program needs to display the principles of good programming practises: meaningful identifiers using camel notation, correct indentation and layout, constants used for numeric values and correct commenting including a header comment for all files if applicable

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions