Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SKELETON CODE FOR PRACTICE PROBLEMS
- /*** PROBLEM 1B ***/
- #include <stdio.h>
- #include <math.h>
- double ComputeAreaOfSquare(double);
- int main(void)
- {
- //Local Declarations
- double base = 0.0;
- double area = 0.0;
- //Local Statements
- /* PROGRAM HERE */
- return 0;
- }//end main
- //WRITE ComputeAreaOfSquare FUNCTION HERE
- /*** PROBLEM 1C ***/
- #include <stdio.h>
- #include <math.h>
- void PrintInstructions(void);
- double GetInput(void);
- double ComputeAreaOfSquare(double);
- void PrintOutput(double);
- int main(void)
- {
- //Local Declarations
- double base = 0.0;
- double area = 0.0;
- //Local Statements
- /* PROGRAM HERE */
- return 0;
- }//end main
- //You would write function descriptions here
- void PrintInstructions()
- {
- /* Function Body goes here */
- }//end function
- //You would write function descriptions here
- double GetInput()
- {
- /* Function Body goes here */
- }//end function
- //You would write function descriptions here
- double ComputeAreaOfSquare(double baseIn)
- {
- /* Function Body goes here */
- }//end function
- //You would write function descriptions here
- void PrintOutput(double areaIn)
- {
- /* Function Body goes here */
- }//end function
- /*** PROBLEM 2 ***/
- #include <stdio.h>
- #include <math.h>
- double CalcHypotenuse(double, double);
- double CalcArea(double, double);
- double CalcPerimeter(double, double, double);
- int main(void)
- {
- //Local Decalarations
- double sideA = 0.0;
- double sideB = 0.0;
- double area = 0.0;
- double perimeter = 0.0;
- //Local Statements
- /* PROGRAM HERE*/
- //Remember to Prompt user for input for sideA and sideB ONLY
- return 0;
- }//end main
- //WRITE CalcHypotenuse FUNCTION HERE
- //WRITE CalcArea FUNCTION HERE
- //WRITE CalcPerimeter FUNCTION HERE
- /*** PROBLEM 3 AND 4 (This skeleton works for both) ***/
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int main(void)
- {
- /* PROGRAM HERE */
- return 0;
- }//end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement