Prepare a complete flow chart for the project

Assignment Help Python Programming
Reference no: EM131656790

Aim

This assignment is intended to assess your skills in understanding and interpreting a moderately complex problem, designing a solution to the problem and implementing the design using principles of correct syntax, layout, and program structure.

Instructions

This assignment is a group assignment.

Note:It is your responsibility to clarify any aspect of the assignment of which you are unsure with your lecturer. Where you have used example code and modified it, you must reference the source.
You will be asked to demonstrate your work to your lecturer in the week of the due date. There will be a range of appointment times and you can choose your time. All assignments must be demonstrated otherwise they will not be marked.

Tasks

- Read the scenario and program specifications. Determine the functions required.
- Determine the logic for each of the option functions in the UI.
- Prepare a Complete Flow Chart for the Project
- Write the code for the module. You may wish to test each of the major functions before writing the next, so that the same mistake is not repeated in multiple functions.
- Demonstration of the Code

Scenario

Speeding fines increase progressively from $30 for speeds less than 10 km/h over the limit, to a maximum fine of $630 for speeds up to 50km/h over the limit.

At more than 40 km/h above the speed limit you could also get a 28-day licence suspension.

At more than 50 km/h over the limit you could be charged with careless, dangerous or reckless driving.

Write a program to

1. Create a dictionary to store the following information to a txt file:

Location

Limited Speed

Queen St

30

Carlisle Rd

50

East Coast Rd

50

Ponsonby Rd

40

Lake Rd

50

Onewa Rd

50

2. accept a value for the speed limit for the selected stretch of road

3. then, within a loop:

4. get the clocked speed of each car as it passes the radar gun (this value is inputted by the user each time).

5. calculate and print either that the speed was legal, or print the invoice of the fine, or print an error message (Constraints: the speed radar cannot cope with speeds under 1 (car is stationary or reversing, or over 180 (outside technical capabilities). In either situation, print out an error message, but do not process it.)

6. store the speeding information (including name, fine, and time) in a txt file (Create another option to store the information into a txt file, or store them while quitting the application)

7. allow police to check speeding ticket by name

Program Specifications

When the program starts:
- Display the welcome message.
- Initialize information of limited speed on different roads and records them into a dictionary.
- Display the main menu and wait for the user to enter an option.

Sample screen (the number of records shown is a sample only):
Welcome to Auckland Speed Gun System:
1. List road name and speed
2. Search speed limit for a road
3. Input speeding ticket
4. Display a speeding ticket
5. Display all speeding ticket(s)
6. Exit

Please select one option from menu:

Option 1: List road name and speed

This option allows users to view all the roads in the system. When this option is selected:
- If the number of road records is greater than 0:
- Display the heading "******** Road Information ********"
- Display the column headings
- Display each road information in the format to fit the column headings

Option 2: Search speed limit for a road

This option enables the users to view all the details of the road. When this option is selected:
- Display the heading "******** ROAD DETAILS ********" -Ask the user to enter a road name.
- Search for the road.
- If the road name exists, display
The limit speed of xx(road name) Rd is xx(limited speed).

- If the road name does not exist, output a message saying that there is no such road in the system.
- Ask if the user wants to view another road detail. (Prompt user again for a road name until they enter ‘n' to exit this option)

Option 3: Input speeding ticket(s)

This option allows users to input the oldest employer(s). When this option is selected:

- Output the heading "******** INPUT SPEEDING TICKET(S) ********"
- Input name.
- Input speed.
- Store them in a dictionary.
- Ask if the user wants to input another speeding ticket. (Prompt user again for a road name until they enter ‘n' to exit this option)

Option 4: Display a speeding ticket

This option enables the users to view all the details of the road. When this option is selected:
- Display the heading "******** Ticket DETAILS ********"
- Ask the user to enter a name.
- Search for the name.
- If the name exists, display
a) Name
b) Speed
c) Fine

If the name does not exist, output a message saying that there is no such person in the system.
Ask if the user wants to view another ticket. (Prompt user again for a road name until they enter ‘n' to exit this option)

Option 5: Display all speeding ticket(s)

This option allows users to view all the jobs in the system. When this option is selected:
- If the number of job records is greater than 0:
- Display the heading "******** ALL TICKETS ********"
- Display the column headings
- Display each ticket in the format to fit the column headings

Option 6: Exit

This option quit the system. When selected:
- Display the "Thank you" message.
- Terminate the program.

** Need Only Flow chart - Option 4 to 6

Attachment:- Program Specifications.rar

Reference no: EM131656790

Questions Cloud

What it does in a modern production planning system : Describe how the material requirements planning module works and what it does in a modern production planning system.
Construct the relevant control chart for the account process : Wilson, Ryan, and Reed is a large certified public accounting (CPA) firm in Charleston, South Carolina. It has been monitoring the accuracy of its employees.
Using appropriate solver to find the minimal-cost plan : Green Enterprises produces premium golf clubs. Develop an Excel spreadsheet model and solve it using the appropriate Solver to find the minimal-cost plan.
Determine the appropriate type of process control chart : Trinkle & Sons performs subcontract body paint work for one of the "Big Three" automakers. One of its recent contracts called for the company to paint 12,500.
Prepare a complete flow chart for the project : Implementing the design using principles of correct syntax, layout, and program structure - Prepare a Complete Flow Chart for the Project - Write the code
Identify and respond appropriately to client concerns : Identify and respond appropriately to client concerns. Exercise restraint when dealing with clients in conflict situations.
Construct an x and an r-chart using the fastlube data : Tony glanced through the data and noticed that the longest time it took to service a car was 25.33 minutes. Suppose the distribution of times to service a car.
Global economy affected the importance of cost estimation : How has the global economy affected the importance of cost estimation and cost control for many project organizations?
Identify the roles of associated financial advisers : Identify the roles of associated financial advisers and work effectively with them. Assess broking options, financial markets and investment characteristics.

Reviews

inf1656790

12/27/2017 4:58:20 AM

I did not ask to do the whole assignment I just want to do the thing in yellow highlights. that is the new assignment and no need to write introduction and conclusion I just want 10 page and the reference and the name of the company is southern cross new Zealand, of you not sure I could send you previous assignment and add image for three part off it and talk about it.

len1656790

9/25/2017 3:01:38 AM

Deliverables 1. A folder with the correct cover sheet, containing a. Flow Chart b. A printout of all the code 2. A zip file (not a rar) a. containing all the files (code and flow chart) and named with 4505_ and your login code eg 4505_SMITHJ23.zip b. upload to Moodle link.

len1656790

9/25/2017 3:01:30 AM

Note:It is your responsibility to clarify any aspect of the assignment of which you are unsure with your lecturer. Where you have used example code and modified it, you must reference the source. You will be asked to demonstrate your work to your lecturer in the week of the due date. There will be a range of appointment times and you can choose your time. All assignments must be demonstrated otherwise they will not be marked.

Write a Review

Python Programming Questions & Answers

  We would like to implement the lexical order

We would like to implement the lexical order for lists. For simplicity, we only consider lists of numbers, where , >= have their usual meaning.

  Development on windows and linux systems

develop a simple, data-intensive application in Python - Data Analysis of a Document Tracker

  Write a python script that will implement the given command

Write a python script that will implement the following command: The idea is that the contents of sourcedirectory1 and sourcedirectory2 are going to be copied and merged together into a new destination directory.

  Construct a model of a byte adder

Construct a model of a byte adder based on the bit adder and Specify an algorithm for integer addition based on binary operation - Create a program in Python which implement the model of the adder

  Write a program using the requetinteger function

write a program using the 'requetInteger' function that will ask the user to type a value that will draw a line from one point on a picture to another.

  Question 1 research 5-8 species within one family of birds

question 1 research 5-8 species within one family of birds. be sure to use primary or very good secondary literature

  How many times each word has occurred in the text file

The values in this dictionary should be a count of how many times each word has occurred in the text file. Second, add the word into a data structure that is keeping track of word information for the completion process.

  Find the output of the given script in python

Find the output of the following script in Python. Note: All statements are valid. Rewrite the following for loop Python statements using while loop.

  Implement and evaluate three learning algorithms as python

You are to implement and evaluate three learning algorithms as Python classes: A "classic" Decision Tree learner, a Random Tree learner

  What good are movie ids and ratings

Implement a function called topRated(). The function will take a file name as a parameter and return a sorted list - What good are movie IDs and ratings? You want to know the actual title of the movie! Implement a function called getTitles(). The fu..

  The program should allow the student

The program should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.

  Look up terms in a tech dictionary

Create a program that allows a user to look up terms in a tech dictionary - programming or scripting that is of interest to you, and complete one or more web-based tutorials on the topic.

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