APS106H1 Midterm: APS106_2010_ts_1361545971

98 views7 pages

Document Summary

Faculty of applied science and engineering. Aps 106 - fundamentals of computer programming. Term test # 2, june 10, 2010. Instructor: professor m. bussmann. Do all work in this booklet, and do not separate the pages. Closed book (type c) - one 8. 5 x 11 aid sheet allowed. Time allotted: 60 minutes (3 minutes per mark) Question 1 - for all of these short questions, write your answers in the boxes. Write a piece of code to follow this statement that fills a with the fibonnaci sequence: Consider that part of a program has already been written: int main () { File * in; int id, quant; double price; in = fopen ("stock. txt", "r"); // assume that stock. txt opens successfully fclose(in); return 0; On the next page, write the code that corresponds to ??? that will produce the following output: Question 2 [ 10 marks ] On the following page, write a complete program with just a main function.

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