CPS 125 Midterm: CPS 125 Winter 2013 Programming Questions

69 views4 pages
31 Jan 2019
Course
Professor

Document Summary

Obtained from ryerson"s mechanical engineering course union (mecu) 1 lz9 6 lt ryi}s8n tfni virsl ty " Note: this section must be written in pen. Cps125 (professors and invigilators will not answer any questions during the test (except if you need help understanding an english word)] The alternate fibonacci sequence is a series of whole numbers starting with o and 1. After these two, each subsequent number is the sum of the two numbers which precede it. (0+1=>1, 1+1=>2, 1+2=>3, 2+3=>5 ). Write a complete c program that calculates and prints out the first 20 odd numbers of the alternate fibonacci sequence (1,1,3,5 ). Your program must contain a function (you write the function and name it odd) that returns 1 if the argument is an odd number and 0 if it is an even number. Obtained from ryerson"s mechanical engineering course union (mecu) www. ryemecu. com. A civil engineer wants to build a bridge across a river.

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