fork download
  1. //*******************************************************
  2. //
  3. // Homework: 1 (Chapter 4/5)
  4. //
  5. // Name: Tina Gayle-Campbell
  6. //
  7. // Class: C Programming, Fall 2026
  8. //
  9. // Date: September 13, 2026
  10. //
  11. // Description: Program which determines gross pay and outputs
  12. // to the screen. This version does not use file pointers
  13. //
  14. // Non file pointer solution
  15. //
  16. //********************************************************
  17.  
  18.  
  19.  
  20. #include <stdio.h>
  21.  
  22. int main(void) {
  23. //declare and describe what each variable is used for */
  24. int clockNumber; /* employee clock number */
  25. float grossPay; /* gross pay for week (wage * hours) */
  26. float hours; /* number of hours worked per week */
  27. float wageRate; /* hourly wage */
  28. return 0;
  29. }
  30.  
Success #stdin #stdout 0s 5300KB
stdin
printf ("\n98401 ");
scanf ("%d", &98401);
printf ("\n10.60 ");
scanf ("%f", &10.60);
printf ("\n51.0 ");
scanf ("%f", &51.0);
stdout
Standard output is empty