Question: MEPV 1 0 2 Practical Assignment: Semester 2 , 2 0 2 4 Assignment Instructions 1 . Complete all questions in MATLAB, 2 . Test
MEPV Practical Assignment: Semester
Assignment Instructions
Complete all questions in MATLAB,
Test all programs with the run MATLAB program function
A hard copy of your assignment should be submitted no later than Thursday mathbf October before h outside room in the New Engineering Building and upload an electronic copy of the Mfile onto MOODLE. No emailed copies will be accepted. ONLY the Mfile 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 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 wheelmass calculated for the vehicle exceeds the allowablewheelmass, the MATLAB program you are developing must display the message, "Your vehicle exceeds the allowable mass per wheel". If the wheelmass does not exceed the allowablewheelmass, 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 kg
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
