Question: fundamental of programming Instructions: Please submit a PDF version of homewark in WT chss. Put the commands in a MATIAB live script (.mlx file), execute
Instructions: Please submit a PDF version of homewark in WT chss. Put the commands in a MATIAB live script (.mlx file), execute it, then click Save->Export to PDF and upload PDF file on WTClass. If completing work on paper, take images from phone, insert in word document and save as PDF before uploading. Submit a single PDFfile, if you have muliple PDF files, merge files using merge PDF tool in WTYClass sidebar. The first line of the live script file (and thus the PDF fle) shoukd be a comment indicating homework number, problem number, your name and date. See HW submission guide. You can discuss homework problems with your classmates. However, you must present your own solutions. Copying of assignments is not allowed. Home work Questions - TOTAL 100 points 1) Design an algorithm and the corresponding flowchart for finding the greatest of 3 numbers entered by the user. ( 25pts) 2) The following algorithm checks and displays whether an inputted number is prime or not. STEP I: START STEP 2: ENTER A POSITTVEINTEGER, N STEP 3: SET I = 2 AND SET DIVISORS =0 STEP 4: IF I +1 STEP 6:I=I+1 AND GO TO STEP 4 SIEP 7: IF DIVISORS >0 THEN PRINT "N IS COMPOSITE" EI SE PRINT "N IS PRIME" STEP 8: STOP Convert the above algorithm into a flowchart, and test ir using hand calculations for the numbers 11 and 35 . (25 pis)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
