
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: PRBLM SOLVNG:COMPUTR; Subject: Computer Science and Engineering ; University: University of Nebraska - Lincoln; Term: Spring 2009;
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

The following table has each row describe a function of certain inputs and output types or a description of a conditional expression. For functions, write a prototype. For conditionals, write the code expression.
Type Description Code
Func. biggest takes three integers and outputs the largest.
Func. average takes three integers and outputs the average of the values, which may not be an integer.
Func. outputPowers takes a double b and an integer p and prints the powers of b from 0 to p to the screen. Does not return anything.
Cond. a is smaller than b and is also bigger than c
Cond. a is not bigger than b or is the same as c
Cond. a is equal to b and b is not equal to c
Download conditional.zip from the lecture outline. Expand it into your Z: drive and open conditional.c. Implement the functions biggestNumber, smallestNumber, and allEqual, which are currently given as pro- totypes.
To check your work, type the command make and show the instructor.