Design classes that work together to simulate parking ticket

Assignment Help C/C++ Programming
Reference no: EM131666311

Assignment: Parking Ticket Simulator

For this assignment you will design a set of classes that work together to simulate a police officer issuing a parking ticket. The classes you should design are:

• The ParkedCar Class: This class should simulate a parked car. The class's responsibilities are:

- To know the car's, make, model, color, license number, and the number of minutes that the car has been parked.

• The ParkingMeter Class: This class should simulate a parking meter. The class's only responsibility is:

- To know the number of minutes of parking time that has bene purchased.

• The ParkingTicketClass: The class should simulate a parking ticket. The class's responsibilities are:

- To report the make, model, color, and license number of the illegally parked car

- To report the amount of the fine which is $25 for the first hour or part of an hour that the car is illegally parked, plus $01 for every additional hour or part of an hour that the car is illegally parked part of an hour that the car is illegally parked.

- To report the name and badge number of the police officer issuing the ticket.

• The PoliceOfficerClass: This class should simulate a police officer inspecting parked cars. The class's responsibility are:

- To know the police office's name and badge number

- To examine a ParkedCar object and a ParkingMeter object, and determine whether the car's time has expired.

- To issue a parking ticket (generate a ParkingTicket object) if the car's time has expired.

Write a program that demonstrates hoe the classescollaborate.

Attachment:- Parking-Ticket-Code.zip

Reference no: EM131666311

Questions Cloud

What must be true about the quantities of np and nq : You are performing a hypothesis test of a single population proportion. What must be true about the quantities of np and nq?
Can doe be charged with any crimes as it relates to bobby : Can Doe be charged with any crimes as it relates to Jimmy, If so, for what crime, If not, why
Bigger problem for the middle east : Is water scarcity of the abundance of oil a bigger problem for the Middle East? How has the history of the 20th century shaped the current strife in the Middle?
What must you assume about the distribution of the data : You are performing a hypothesis test of a single population mean using a Student's t-distribution. What must you assume about the distribution of the data?
Design classes that work together to simulate parking ticket : For this assignment you will design a set of classes that work together to simulate a police officer issuing a parking ticket. The classes you should design are
Discuss some advantages and disadvantages to proceeding : Discuss some advantages and disadvantages to proceeding with a federal criminal prosecution as opposed to a state prosecution
What is the name of the extensive groundwater : What is the name of the extensive groundwater aquifer found beneath the southern plains A-pecos B- Ogalla C- new Madrid D Nazca
Discuss about the standard deviation : A population has a mean is 25 and a standard deviation of five. The sample mean is 24, and the sample size is 108.
Natural physical and cultural landscapes : Describe the changing American landscape, consider the natural physical and cultural landscapes.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd