I need a programer to do a simple project. I run a busness on campus, and my right hand man is sick, and I have fallen behind. So I am looking for someone to do some freelance work (it is simple stuff).
I basicly have 6 projects to do tonight and I need to sublet a few.
I also have my own homework to do, so my customers are not going to be happy if I don't get this done tonight.
*** forgot the most important part. It is C++, but it is *basic*. I am in Jr. in C++ 308, The skill level of the projects are only 151 and 251 (usually 151 projects, they are all different per student, so it is harder to to one unified one and spread it ariound)
I need basicly just source... If I am unclear, just ask, I may have left something out.
Write a program that repeatedly reads integers entered by a user. It should print in a bordered area, the integer read, the absolute value of the integer, the sum of the odd numbers from 1 to the absolute value of the integer and the sum of the even numbers from 0 to the absolute value of the integer. The program should stop when the user enters 0 as the integer.
Use the abs in the cstdlib
You will need:
Boarder prints a boarder line across the screen and returns no value. Boarder takes either no parameters or, if you would like, parameters which describe the type and size of border drawn.
Prompt_read prompts the user for an integer value and returns the integer value entered by the user. It takes no parameters
Sum_odd takes a single positive integer parameter and returns the sum of the odd integers from 1 to the given integer.
Print_results takes four integer parameters. These are the number read, the absolute value of the number read, the odd sum and the even sum. It prints these values with appropriate labels. Print_results does not return a value.
Enter an integer:
The number entered is 7.
Absolute value is 7.
Odd sum is 16.
Even sum is 12.
Enter an integer: 0
Thank you for using this technologically advanced program n00b!
It is a simple program, It should run in MS compiler ;).