Question: Popic 8: User-Defined Methods Requirements for chapter 8 zyLab Full Program: User-Defined Methods NOTE: zyBooks does not cover everything you will need to complete this

 Popic 8: User-Defined Methods Requirements for chapter 8 zyLab Full Program:User-Defined Methods NOTE: zyBooks does not cover everything you will need tocomplete this program. Be sure to also read the online content for

Popic 8: User-Defined Methods Requirements for chapter 8 zyLab Full Program: User-Defined Methods NOTE: zyBooks does not cover everything you will need to complete this program. Be sure to also read the online content for Topic 8 before starting this program. Problem Summary An upstart rental car company would like you to write a program to generate rental car bills The company only offers compact size and full size cars, with the following car charges Compact: Full size $19.99 per day $4.99 per day for unlimited mileage $29.99 per day for the car +S5.99 per day for unlimited mileage When the customer chooses unlimited mileage, there are no additional mileage charges Otherwise, these daily rates include 80 miles per day. When the customer goes over 80 miles per day, the customer must pay additional mileage charges of 9 cents for each mile over the included miles Cars rented for more than a week will get one day free per full week (7 days) rented, valid on car charges only (not mileage charges) Implementation Requirements The program will be written in NetBeans. Create a new project named with a main class name of Topic8project RentalCarBillGenerator Within your program code, you must Include a complete JavaDoc program description and author/version tag at the top of the file Include JavaDoc comments above each defined method, including a method description and @param and@return tags for parameters and return values. Define and use constants for ALL fixed prices and the included miles per day (so there should be no hardcoded values in the program calculations). Store values individually -not sums Instead of defining all constants in the main method, each constant should be defined within the method that uses it o Follow all other CS210 Coding Standards . From the main method: . First display a one line program header to the user . Then prompt for and read the following inputs from the user: The car size: C for compact or F for full size, converted to uppercase when reading The number of days rented Unlimited mileage (Y or N), converted to lowercase when reading o o o Create a Boolean variable that will hold true when the user chooses unlimited mileage and set its value, according to the customer's input Popic 8: User-Defined Methods Requirements for chapter 8 zyLab Full Program: User-Defined Methods NOTE: zyBooks does not cover everything you will need to complete this program. Be sure to also read the online content for Topic 8 before starting this program. Problem Summary An upstart rental car company would like you to write a program to generate rental car bills The company only offers compact size and full size cars, with the following car charges Compact: Full size $19.99 per day $4.99 per day for unlimited mileage $29.99 per day for the car +S5.99 per day for unlimited mileage When the customer chooses unlimited mileage, there are no additional mileage charges Otherwise, these daily rates include 80 miles per day. When the customer goes over 80 miles per day, the customer must pay additional mileage charges of 9 cents for each mile over the included miles Cars rented for more than a week will get one day free per full week (7 days) rented, valid on car charges only (not mileage charges) Implementation Requirements The program will be written in NetBeans. Create a new project named with a main class name of Topic8project RentalCarBillGenerator Within your program code, you must Include a complete JavaDoc program description and author/version tag at the top of the file Include JavaDoc comments above each defined method, including a method description and @param and@return tags for parameters and return values. Define and use constants for ALL fixed prices and the included miles per day (so there should be no hardcoded values in the program calculations). Store values individually -not sums Instead of defining all constants in the main method, each constant should be defined within the method that uses it o Follow all other CS210 Coding Standards . From the main method: . First display a one line program header to the user . Then prompt for and read the following inputs from the user: The car size: C for compact or F for full size, converted to uppercase when reading The number of days rented Unlimited mileage (Y or N), converted to lowercase when reading o o o Create a Boolean variable that will hold true when the user chooses unlimited mileage and set its value, according to the customer's input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!