ITP120 NVCC JGrasp Easy Coding Less than 130 Lines of Code

User Generated

unfv191

Programming

ITP120

Northern Virginia Community College

Description

everything will be included in the files i send. should not take long to finish

Unformatted Attachment Preview

ITP 120 Grading Rubric Programming Assignment 1 Requirement Class is named correctly using CamelCase Variables are declared with correct data type and use camelCase CONSTANTS are declared with correct data type and use ALL_CAPS Scanner or JOptionPane is used to gather user input The license plate numberis input A menu or prompt require the user to choose between long term or short term parking A menu requires the user to choose a type of long term parking A menu or prompt requires the user to choose a type of short term parking A prompt asks the user to enter the number of days for long term parking A prompt asks the user to enter the number of hours for short term parking One or more if or switch structure(s) are used to set the basic parking fees for long term or short term parking Parking fees are calculated correctly Except for the report heading and display message at the end, results are displayed in 2 columns using the printf st All monetary amounts are formatted with 2 decimal places and integers with no decimal places Code is indented correctly Curly braces are paired and indented correctly A comments area is used at the top of program to indicate the programmer, version, and purpose of the program Comments are included to document how the program works Total Points NOTE: When submitted, all code is debugged and the program is written such that it will work for ming Assignment 1 Does Not Meet Requirements 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Meets Some Requirements 1 2 1 2 2 3 3 3 2 2 6 3 2 1 1 1 1 1 32.5 Meets All Requirements 2 3 2 3 3 5 5 5 3 3 12 5 4 2 2 2 2 2 65 hat it will work for any set of test data given; otherwise the grade will be no higher than 32.5 regardless of wh than 32.5 regardless of which requirements are met after the code is debugged. ITP 120 Programming Assignment 1 (65 Points) The chart below lists the Long Term Parking Rates for Dulles International Airport. You must write a program that prompts that helps the user to estimate parking fees. You begin by asking the user for his or her License Plate Number. Then, you must ask the user for which type of parking (either Long Term or Short Term) they want based on the chart below. Long Term parking is based on the type of parking chosen and the number of days so you will have to ask Long Term parking customers how many days they plan to park. Short Term parking is based on the type of parking chosen and the number of hours so you will have to ask Short Term parking customers how many hours they plan to park. A customer parking by the day will be charged for a full day even if the customer uses the parking for just a few hours within the day. A customer parking by the hour will be charged for a full hour even if the customer uses the parking for just a few minutes. The output must show 2 decimal places for any monetary amount, but the number of days and number of hours should show 0 decimal places. You will need to use the printf command to control the number of decimal places shown. Here is how the Program should run when tested with Test Data. Your program must run for all test data on any given day and not just the test data shown. Your program must be debugged or the best you can hope for is a grade of 31.25 and it may be lower. This is the Dulles Airport Parking Fee Calculator. Please enter your License Plate Number: abc123 Please tell us if you need Long Term or Short Term Parking. Long Term is required for parking for 1 day or more. Short Term is required for parking for 1 hour or more. Please enter L for Long Term or S for Short Term L Please enter your choice of Long Term Parking. LT for Long Term Off-Site With Shuttle. Per Day ($6) EP for Economy Parking With Shuttle ($10) PG for Parking Garages 1 and 2 ($17) VP for Valet Parking ($35 First Day, $30 Each Additional Day VP Please enter the number of days you plan to park: 2 Parking Fees Report For abc123 Type of Parking: Long Term Parking Location: Valet Parking Parking Fee: 65.00 This is the Dulles Airport Parking Fee Calculator. Please enter your License Plate Number: bcd234 Please tell us if you need Long Term or Short Term Parking. Long Term is required for parking for 1 day or more. Short Term is required for parking for 1 hour or more. Please enter L for Long Term or S for Short Term L Please enter your choice of Long Term Parking. LT for Long Term Off-Site With Shuttle. Per Day ($6) EP for Economy Parking With Shuttle ($10) PG for Parking Garages 1 and 2 ($17) VP for Valet Parking ($35 First Day, $30 Each Additional Day LT Please enter the number of days you plan to park: 1 Parking Fees Report For bcd234 Type of Parking: LongTerm Parking Location: Parking Fee: Long Term Off-Site With Shuttle 6.00 This is the Dulles Airport Parking Fee Calculator. Please enter your License Plate Number: cde345 Please tell us if you need Long Term or Short Term Parking. Long Term is required for parking for 1 day or more. Short Term is required for parking for 1 hour or more. Please enter L for Long Term or S for Short Term L Please enter your choice of Long Term Parking. LT for Long Term Off-Site With Shuttle. Per Day ($6) EP for Economy Parking With Shuttle ($10) PG for Parking Garages 1 and 2 ($17) VP for Valet Parking ($35 First Day, $30 Each Additional Day PG Please enter the number of days you plan to park: 1 Parking Fees Report For cde345 Type of Parking: Long Term Parking Location: Parking Garages 1 and 2 Parking Fee: 17.00 This is the Dulles Airport Parking Fee Calculator. Please enter your License Plate Number: efg456 Please tell us if you need Long Term or Short Term Parking. Long Term is required for parking for 1 day or more. Short Term is required for parking for 1 hour or more. Please enter L for Long Term or S for Short Term S Please enter your choice of Short Term Parking. TR for Terminal. Per Hour ($6) P12 for Parking Garages 1 & 2 ($6) TR Please enter the number of hours. 2 Parking Fees Report For efg456 Type of Parking: Short Term Parking Location: Terminal Parking Fee: 12.00 This is the Dulles Airport Parking Fee Calculator. Please enter your License Plate Number: fgh678 Please tell us if you need Long Term or Short Term Parking. Long Term is required for parking for 1 day or more. Short Term is required for parking for 1 hour or more. Please enter L for Long Term or S for Short Term S Please enter your choice of Short Term Parking. TR for Terminal. Per Hour ($6) P12 for Parking Garages 1 & 2 ($6) P12 Please enter the number of hours. 1 Parking Fees Report For fgh678 Type of Parking: Short Term Parking Location: Parking Garages 1 & 2 Parking Fee: 6.00 This is the Dulles Airport Parking Fee Calculator. Please enter your License Plate Number: hji987 Please tell us if you need Long Term or Short Term Parking. Long Term is required for parking for 1 day or more. Short Term is required for parking for 1 hour or more. Please enter L for Long Term or S for Short Term L Please enter your choice of Long Term Parking. LT for Long Term Off-Site With Shuttle. Per Day ($6) EP for Economy Parking With Shuttle ($10) PG for Parking Garages 1 and 2 ($17) VP for Valet Parking ($35 First Day, $30 Each Additional Day EP Please enter the number of days you plan to park: 5 Parking Fees Report For hji987 Type of Parking: Long Term Parking Location: Economy Parking With Shuttle Parking Fee: 50.00
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

At...


Anonymous
Great study resource, helped me a lot.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags