Question: MEPV 1 0 2 Practical Assignment: Semester 2 , 2 0 2 4 Assignment Instructions 1 . Complete all questions in MATLAB, 2 . Test

MEPV102 Practical Assignment: Semester 2,2024
Assignment Instructions
1. Complete all questions in MATLAB,
2. Test all programs with the run MATLAB program function
3. A hard copy of your assignment should be submitted no later than Thursday \(\mathbf{17}\) October 2024 before 13h00, outside room 0124 in the New Engineering Building (276). and upload an electronic copy of the M-file onto MOODLE. No emailed copies will be accepted. ONLY the M-file program submitted on MOODLE will be evaluated. Thus if you fail to upload the Script file onto MOODLE, a mark of zero percent will be awarded.
Question 1- Loops \& Branching Structures
A certain company has been awarded a contract to build weighing stations at all of South Africa's toll booths. The need for the weighing system arose after it came to light that many road users overloaded their vehicles while traveling by road. The weighing system will be integrated with the toll system in such a way that the user will only be permitted to drive on after all the necessary tasks have been performed. The system functions in such a way that it calculates the mass of each wheel of the vehicle independently. To activate the system, the user first needs to select whether they would like to weigh their vehicle. This is merely done to speed up the process for other road users and must be performed with the aid of a menu function. The mass of the vehicle will be obtained digitally from the weighing scale, but for this program, which is a prototype as the system is only in a developmental stage, the mass of the vehicle must be entered manually by the user. Next the user needs to select (also through the menu function) the number of axles of their vehicle. If the individual wheel_mass calculated for the vehicle exceeds the allowable_wheel_mass, the MATLAB program you are developing must display the message, "Your vehicle exceeds the allowable mass per wheel". If the wheel_mass does not exceed the allowable_wheel_mass, the message "Your vehicle does not exceed the legal load limit" must be displayed. After the weighing process has been completed, the user must be asked whether they have finished weighing their vehicle. If the user selects "No", the entire weighing process must be repeated all over again. Only after the user had selected "Yes", again through a menu function, will the weighing loop stop. At this stage of the program the message "OK, you may drive now" must be displayed, and only then may the user drive away. Make provision for vehicles having two, three and four axles and assume the allowable load limit for ALL vehicles to be 25000 kg .
MEPV 1 0 2 Practical Assignment: Semester 2 , 2 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!