APS106H1 Midterm: APS106H1_20151_621429312984mid_2015_B_answers(1)

36 views6 pages

Document Summary

Faculty of applied science and engineering. Aps106 midterm ii march 17, 2015. Do all work in this booklet. Do not remove the staple. Time allotted: 60 min. Omg (b - 2marks) : what is the output: Fz: writes letter grade to a created file called lettermarks. txt . Unfortunately, the code contains 4 errors. Treat each error in isolation. Circle the errors in the code, and indicate the correct code immediately to the right of where the error occurs. #include int main() { Question 3. (6 marks) write the missing function consistent with the below code. Use the variable names given in the function prototype. You may not use any math. h functions. } while (numberx<0||numberx>=1000||basex<1||basex>9); decimal = basextodecimal(numberx, basex); printf("decimal value of entered number = %d\n", decimal); return 0; Question 4. (6 marks) write the missing function consistent with the below code. You can assume that the user enters different numbers (i. e. no two numbers entered are the same).

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents