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

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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