
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Project; Professor: Volkert; Class: CS I PROG/PROBLEM SOLVING; Subject: Computer Science; University: Kent State University; Term: Fall 2006;
Typology: Study Guides, Projects, Research
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Write a program that inputs multiple lines of integer numbers and outputs them in an HTML table. The negative numbers should be output in red color. The numbers should be printed 3 in a row, one number per column. The fourth column should contain the sum of the numbers in the row. If the sum is negative it should be output in red. Input stops when 0 (zero) is entered. Zero should not be output. Empty cells should be output to complete the table if necessary. The last row should contain the sum of all numbers in each respective column and the total of all numbers. An example table is provided. As a starting point you can use the example program that just inputs the numbers and outputs them without change. HTML (HyperText Markup Language) is the language that is used in writing web-pages. The language consists of formatting elements called HTML tags. HTML table starts with a
Check out the project files from http://classes.cs.kent.edu/svn/cs23021/volkert/cs23021_shared/Project2/ File exampleinput contains an example input file that the program processes. Note, that your program has to work on any line of numbers not only on the numbers specified in exampleinput. Test your program with different input integer sequences. Write a C++ program table.cpp such that it outputs the numbers input in an HTML table three numbers in a row. You can use the provided example.cpp program as a starting point. Note, that example.cpp is nothing but a working template and you have to significantly add and modify its behavior. The negative numbers should be output so that they display in the color red. You are not allowed to use functions or arrays (material that we have not studied). You are only allowed to use branching and looping constructs as the control operators. Make sure that your modified program contains comments and otherwise adheres to good program style. The link to programming style guide is available on the course’s webpage. Your grade will be lowered if your do not follow the programming style guidelines outlined there.