logo

Crowdly

Browser

Add to Chrome

UCB - MCD4540 Engineering Smart Systems - Trimester 1 - 2025

Looking for UCB - MCD4540 Engineering Smart Systems - Trimester 1 - 2025 test answers and solutions? Browse our comprehensive collection of verified answers for UCB - MCD4540 Engineering Smart Systems - Trimester 1 - 2025 at lms.monashcollege.edu.au.

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

View this question

Given the circuit diagram:

Image failed to load

Select the image that correctly identifies all nodes in the circuit.

View this question
View this question

Draw a circuit diagram that implements the ultrasonic sensor with the Arduino. 

You should upload/attach a photo/screenshot of the circuit diagram as a pdf file.

It is recommended that you complete the circuit diagram using draw.io.

Note: Don't forget to meet circuit diagram standards!

View this question

Given the segment layout of a single 7-segment display digit below,

Image failed to load

Identify the pin-out mapping for each of the pins on the 4 digit 7-segment display in your kit.

View this question

In this unit you have been introduced to flowcharts. Select all flowchart shapes that are used in the unit which have correct descriptions attached.

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

Which of the following code fragments correctly implement the following algorithm?

  1. Generate a random number as a secret number
  2. Ask the user to guess the number
  3. Convert the guess to an integer
  4. Compare the guess to the secret

    1. If match

      1. print "Congratulations"
    2. If not a match

      1. go to step 2
View this question

Select all code fragments that correctly implement the pseudocode below.

  1. Obtain user input as val
  2. Check if val is "quit"

    1. If so, quit.
    2. If not, continue
  3. Convert val to a float

    1. If fail, quit
  4. Check if val is a positive number and less than 1000

    1. If so, print "success"
    2. If not, quit
View this question

What is the result printed by the code shown

a = 9.1

b = 5

View this question

Finally, you should write appropriate file header documentation for the program (in previous parts).

You will need to modify your work as follows:

  • Add a parameter to the function which replaces the input variable from Part A
  • This parameter will contain / accept a list of values which meets the input requirements from the previous parts
  • You should assume that no invalid values are passed to this parameter and thus do not need to write additional validation for the parameter
  • Your program should process the values provided in the list of values via the parameter, instead of using inputs from the user

Finally, write some test code that will execute only if the file is run directly (i.e. test code won't run when imported as a module), to demonstrate that the function does not crash and works correctly when provided values via its parameter.

View this question

Want instant access to all verified answers on lms.monashcollege.edu.au?

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

Browser

Add to Chrome