Consider the following programming problem: The formula for the standard normal deviate z, used in
statistical applications, is:
where refers to a mean value and to a standard deviation. Using this formula, write a program that
calculates and displays the

/*
File:Sean Causey COS-116 Assignment 5 Problem 1.c
Description: Write a program to generate and display a table
of n and n^2, for integer values of n ranging from 1 through 10.
Be sure to print appropriate column headings.
Programmer: Sean Causey
Date:

/*
File:Sean Causey COS-116 Assignment 6 Problem 1.c
Description: This program determines the number of quarters, dimes, nickels, and
penies in the total coins number passed to it and writes these values directly
into the respective variables declared in

/*
File:Sean Causey COS-116 Assignment 2 Problem 1.c
Description: Proram that calculates the total of two numbers and their average.
Programmer: Sean Causey
Date: 07/06/15
*/
#include <stdio.h>
int main()
cfw_
float
float
float
float
save1;
save2;
total;

/*
File:Sean Causey COS-116 Assignment 4 Problem 1.c
Description: Ask for a single character to be typed from the keyboard. Analyze
the character and print out a message that
it is:
an alphabetic character (az or AZ)
a digit (09) or
a special character (a

/*
File:Sean Causey COS-116 Assignment 3 Problem 1.c
Description: Ask the user to enter a digit between 0 and 9.
Have the program print out the digit in words, for example:
Enter a digit between 0 and 9: 4
You entered the number four
Assume that the user

The vast majority of the error messages that I have received from my compiler are due to undeclared
functions, or simply forgetting a ( or . These are common mistakes, and fairly easy to spot if you
have sufficient line breaks and dont rush through the tr

Written Assignment 4
2016MAR COS-116-OL010
Section A: Choose one problem from this section.
1.
Write a program that reads a 5 x 5 two-dimensional array of integers and then prints the row
sums and the column sums:
Enter row 1:
Enter row 2:
Enter row 3:
En

Written Assignment 3
2016MAR COS-116-OL010
1. Write a C program that prompts for a variable number of integers, adds them up, averages
them, and prints out the average.
#include<stdio.h>
void main()
cfw_
int x,y,Sum=0,numbers;
float Average;
printf("How m

Written Assignment 6
2016MAR COS-116-OL010
Section A: Choose one problem from this section.
1.
Have a program prompt the user for a filename to open. Change every alphabetic character in
the file to a capital letter. Numbers and special characters should

Midterm Assignment 3
2016MAR COS-116-OL010
Midterm Programming Assignment Problem 3
Write a program that contains the function calories() that is to accept a long integer number total
and the addresses of the integer variables pizza, chips, apples, and mu

#include <stdio.h>
int main()
cfw_
int number;
printf("Input a number 1-9:");
scanf("0", &number);
if (number = 0)
printf("\nYou entered the number
else if (number = 1)
printf("\nYou entered the number
else if (number = 2)
printf("\nYou entered the number

Written Assignment 5
1.
2016MAR COS-116-OL010
Write a C program that accepts as input from the keyboard a floating point number, an integer,
and a character. Each of these inputs should be preceded by a prompt and stored using
individual variable names. H

Midterm Assignment 1
2016MAR COS-116-OL010
1. Use #define to set up a value STAMP_COST as 0.37 Prompt the user to input the number of
envelopes he/she needs stamps for and accept an integer number. Multiply these values
together and print a message tellin

Midterm Assignment 2
2016MAR COS-116-OL010
2. This program will require you to use a loop with some IF statements. It will require you to
repeat the loop for 7 times, for the 7 days of the week. Ask the user what the temperature will
be for each day of th

1. Why might a programmer choose one of these two types of statements over the other? When is
one better than the other?
The statements if-else and switch are similar, but are used in different scenarios. If-else is generally
applied to a limited set of s

Module 1 Written Assignment 1 Section A Problem 1
Date: 6/14/15
1. Write an algorithm describing the steps you would use to analyze this polynomial:
3x^3 - 5x^2 + 6
Do not code this problem in C. Instead, deliver the algorithm to solve the problem. After