Write a program to store information on vehicle owners

Assignment Help JAVA Programming
Reference no: EM131798719

Laboration  - Vehicle register

In this exercise, you should create a program that represents a vehicle register, i.e. a register of vehicles and its owners. Your customer is the Transport Authority, which task it is to keep track of all vehicles on the road in Sweden.

The Vehicle register should in this first version have a text-based interface. The following describes the data and the functions that should be included in the program.

Data

The type Person

This type should be used in the program to store information on vehicle owners. The information we need in this situation is the owner's name and age.

The type Vehicle

A vehicle have the properties vehicle type, vehicle make, registration number and owner. All these properties should get values when a vehicle is created.

Functions

An array that can store 10 vehicles should be created in the beginning of the program. If a register file already exists, this should be loaded into the array.

Thereafter, a menu with the following options should be presented:

Add a vehicle

In a function, information about the vehicle and its owner should be taken in from the user and the vehicle should be entered in the register. Check that the register is not already full.

Remove a vehicle

In a function, a vehicle in a specified position should be removed from the register. Check that the position is valid Sort by vehicle make
In a function, the register is sorted alphabetically by vehicle make.

Print information about a vehicle

In a function, information about a vehicle in a specified position should be printed.

Check that the position is valid.

Print the entire vehicle register

In a function, information about all vehicles in the register should be printed.

Quit

When the user chooses to quit, the register must be written to file.Requirements for the application code

• Secure input

• No "magic numbers"

• No Global variables

• File management functions should be in a separate c-file

• All standard header files, type declarations, function prototypes, etc. should be put in a header file

• Functions must not be "too long" Voluntary extra assignments:

1. Make it possible for a vehicle to have multiple owners

2. Make a search function where you can search for all the vehicles a certain person owns.

3. Make a search function where you can find out who owns a particular vehicle.

4. Make a search function where you can search for any of a vehicle's properties

5. Make a search function where you can search for a combination of a vehicle properties.

Reference no: EM131798719

Questions Cloud

Confidence interval for the expected value : Construct a 95% confidence interval for the expected value of Ownership if Income is $50,000.
Multicollinearity and heteroskedasticity : Discuss the potential problem s of multicollinearity and heteroskedasticity.
Problem on emissions with us department of energy : Emissions with U.S. Department of Energy data for selected years from 2000 and projected to 2030, sulphur dioxide emissions from electricity generation.
Sample correlation coefficients to confirm : Which explanatory variables are likely to be collinear? Find their sample correlation coefficients to confirm.
Write a program to store information on vehicle owners : This type should be used in the program to store information on vehicle owners. The information we need in this situation is the owner's name and age.
Healthy food on the incidence of smoking : E A nutritionist wants to understand the influence of income and healthy food on the incidence of smoking. He collects 2009 data on the percentage of smokers.
Show the functional dependencies in the relation : Draw a dependency diagram to show the functional dependencies in the relation. Decompose the GRADE REPORT relation into a set of 3NF relations.
Appropriate numerical measure : Consider the following 10 observations on the response variable y and the explanatory variable x.
Complete the payroll register : Complete the Payroll register below and Prepare the journal entries to accrue the payroll and record employer payroll taxes expense

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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