logo

Crowdly

ENG1013 - Engineering Smart Systems - S1 2025

Looking for ENG1013 - Engineering Smart Systems - S1 2025 test answers and solutions? Browse our comprehensive collection of verified answers for ENG1013 - Engineering Smart Systems - S1 2025 at learning.monash.edu.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Complete the code shown below. Note, your answer should not contain any spaces.

Code Logic

  • Using a for loop, print the values 1, 3, 5, 7, 9, 11 to the console

Code Snippet

for num in range(,,

):

print(num)

View this question

Complete the code shown below. Note, your answer should not contain any spaces.

Code Logic

  • Using a for loop, print the values 2, 4, 6, 8, 10 to the console

Code Snippet

for num in range(,,

):

print(num)

View this question

Which of these while loops are infinite loops?

View this question

This is an individual assessment competency hurdle task. If you have questions or need help, ask privately on the forums. Students caught working together will be awarded an automatic fail.

Instructions

  1. Write a python function as described in the logic requirements below.
  2. Your work must meet the following coding standards requirements:
    1. All variables must be in lowerCamelCase style
    2. Indentation must be in four space = 1 tab style
    3. Any use of 'except' must be followed by a specific error being trapped.
    4. Function headers are required to be defined using docstrings on the line following the function definition and must contain a short description (two lines max) of the function, parameters (explicit) and returns (explicit). If there are none, this must be specified.
    5. A file header is required. This must be the first 3 lines of the document using the normal commenting style, and must contain the author name, last modified date, file version number.

  3. When ready, attend your scheduled assessment slot and get your work marked off. If you fail to complete or meet the requirements of any item/part, you will be marked as not satisfactory and be required to return in the following week to re-attempt it.
  4. Completing this task within the first three weeks of assessment (i.e. week 4-6) will award 'second chance' bonus marks of 2% which can be used to 'make up' for marks lost from the project.
  5. Failing to complete this task by week 12 will result in an automatic fail of the unit with a mark cap of 45%. A late completion penalty of 5% will apply if you fail to complete this within the four week assessment period (week 4-7).
  6. Students who miss attempts (scheduled assessment period) due to valid special consideration reasons (unwell, etc) can request for a late completion penalty waiver by emailing eng1013.clayton-x@monash.edu with the reason and evidence.

In-Person Assessment Requirements

  1. Your completed code (as a .py file) on your computer.
  2. You will need to also pass an interview and discussion about your work.

Logic Requirements

Write a python program to calculate the penalty for speeding in Victorville using the conditions in the table provided below. Note that the conditions in the table shown are not in the correct sequence - conditional statements must be written in the right order, so make sure you read all of the conditions and then decide on the most appropriate order for them.

Your program will need to contain two sections, a main() function and a determine_overspeed_penalties() function.

main()

The main() function has no parameters and contains the logic as follows:

  1. Ask the user if they are driving a heavy vehicle or not
  2. Ask the user for the road speed limit in km/h (integer values only)
  3. Ask the user for their vehicle speed in km/h to two decimal places
  4. Perform the required validation for the three items above to ensure that the user only provides valid values. If an invalid input was provided, the program should print an appropriate error message and ask the user for a new value for that input.
  5. Call the determine_overspeed_penalties() function and provide the inputs above as parameters
  6. Using the dictionary returned by the function determine_overspeed_penalties(), print the following information out appropriately (e.g. if no penalties apply, you should state so)
    • The vehicle overspeed value in km/h to three decimal places
    • Any penalties that apply (only show the penalty that applies)

  7. Then, ask the user if they would like to check for another vehicle (Y/N)
    1. If they respond with 'Y', restart the program
    2. If they respond with 'N', end the program
    3. Otherwise, if they respond with anything else, ask for a new input (must only accept Y or N as valid inputs here)

At any time, if the user hits CTRL+C (Keyboard Interrupt), the program should end after printing 'Exiting program now'.

determine_overspeed_penalties()

The determine_overspeed_penalties() function has the three parameters vehType, roadSpeed, speedLimit:

  • vehType should be a boolean variable containing True if the vehicle is heavy.
  • roadSpeed should be an float variable containing the vehicle speed.
  • speedLimit should be a integer variable containing the road speed limit.

The function should contain the logic as follows:

  1. Determine the overspeed value which is calculated by taking the vehicle speed and subtracting the road speed limit from it.
  2. Using the tables below, determine the appropriate penalties that apply. In determining penalties, you should round the overspeed value up to the nearest integer (i.e. 23.1 rounds up to 24.0).
  3. If the vehicle is not speeding (overspeed <= 0), the dictionary should return 0 for overspeed with appropriate values for penalties.
  4. Return a dictionary containing the keys as follows:
    • overspeed: float value containing the original overspeed value calculated
    • penalties: a list containing the following three values - demerits (integer), suspension (integer), fines due (float).

Penalties for speeding offenses (except heavy vehicles)

Exceeding the speed limitPenaltyDemerit points

Automatic licence suspension
By less than 10 km/h$247.001 -  
10 km/h to under 25 km/h$395.003 -  
25 km/h to under 30 km/h$543.00 - 3 months
30 km/h to under 35 km/h$642.00 - 3 months
35 km/h to under 40 km/h $741.00 -  6 months
40 km/h to under 45 km/h $840.00 -  6 months
By 45 km/h or more $988.00 -  12 months
20 km/h to under 25 km/h (in a 110 km/h zone) $395.00 -  3 months

Penalties for speeding offenses - heavy vehicles

Exceeding the speed limitPenaltyDemerit points

Automatic licence suspension
By less than 10 km/h$3241 -
10 km/h to under 15 km/h$5093 -
15 km/h to under 25 km/h$7403 -
25 km/h to under 30 km/h$1,017-3 months
30 km/h to under 35 km/h$1,294-3 months
35 km/h to under 40 km/h$1,572-6 months
40 km/h to under 45 km/h $1,849- 6 months
By 45 km/h or more$2,127-12 months
20 km/h to under 24 km/h (only in a 110 km/h zone)$740-3 months
View this question

A multimeter is used to take a measurement as shown in the figure above.

What will be the measured output?

0%
0%
0%
0%
0%
0%
0%
50%
0%
View this question

In the circuit below, vs = -1 Volts, R1 = 6Ω, R2 = 9Ω. Find i in Amps. Give your answer to 3 decimal places.

Image failed to load: Series

View this question

In the circuit below, i = 1.1 Amps, R1 = 1.2Ω and R2 = 6.4Ω. Find Vs in Volts to 2dp.

Image failed to load: Parallel

 

View this question

For the loop picture below, v1 = -3 V, v2 = -3 V and v3 = 4 V. Find vx in Volts.

Image failed to load

View this question

How many loops are there in this circuit? Express your answer as an integer.

Image failed to load

View this question

At the node picture below, i1 = 0 A, i2 = 2 A and i3 = -1 A. Find ix in Amps.

Image failed to load

View this question

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!