Project #57063 - CS programming in C++

CS 1200 Spring 2015 Assignment 3 Loops

 

Objectives

·        First coding of loops in C

Instructions:

·        Write a C program the uses standard C

·        Print two (2) slightly modified multiplication tables

·        Submit just your source code file .c to e-learning

Table one

Rows 1-19 by 3 so first row 1, second 4 etc.

Columns 2-20 by 3 so first column 2, second 5 etc.

The number at each cell in the table will be row * col and must be 4 characters wide followed by a , (use a version of the %d format with leading spaces not leading 0)

Table two

Other way around

Rows 2-20 by three so first row 2, second 5

Columns 1-19 by three so first column 1 second 4

Rules:

·        You must use two (2) loops nested for each table.

·        One printf per number in the table

·        Do NOT print row or column labels.

·        No if or switch statements in your loops

·        one row per line of output

·        label for each table Table 1 or Table 2

·        Your variables must be named row and col and used correctly for row and column

·        Must compile with standard C compiler on CS department’s Linux machines, if in double take .c file to C-208 and try it out.

Submit:

Just your single C source code file the one with .c extension.

Submit to e-learning

No project files just one .c file.

Subject Computer
Due By (Pacific Time) 02/10/2015 01:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy