UP | HOME

HW5
COP-3223H

Submit this project via git (not webcourses) using the Uploading homework to git documentation.

  1. (hw5-1.c) Hand-copy yourself without copy-and-paste the following program into a file on eustis and compile and run it.

    #include <stdio.h>
    
    int main(int argc, char **argv) {
      printf("%d\n", (22/7 +  355/113) / 2);
    }
    
  2. (hw5-2.c) Using only the C program template from class and without precomputing any intermediate values of the expression, write a program that computes \(10^2 - 7^2 - (10 - 7)(10 + 7) + 5\) and print it to the console. There should be eight arithmetic operators in the expression (not counting parentheses).

Author: Paul Gazzillo

Created: 2026-09-09 Wed 11:47

Validate