subject

HURRY, HELP ME PLEASE In this lab, you complete a partially written C++ program that includes two functions that require a single parameter.
The program continuously prompts the user for an integer until the user enters 0. The program then passes the value to a function that computes the sum of all the whole numbers from 1 up to and including the entered number. Next, the program passes the value to another function that computes the product of all the whole numbers up to and including the entered number.

The given code is:
// SumAndProduct. cpp - This program computes sums and products
// Input: Interactive
// Output: Computed sum and product

#include
#include
void sums(int);
void products(int);
using namespace std;

int main()
{
double number;

cout << "Enter a positive integer or 0 to quit: ";
cin >> number;

while(number != 0)
{
// Call sums function here

// Call products function here

cout << "Enter a positive integer or 0 to quit: ";
cin >> number;
}
return 0;
} // End of main function

// Write sums function here

// Write products function here

WILL PICK BRAINLIEST for the fastest and most correct !!!

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Which action is good business etiquette? a. switching your cell phone off before you enter a meeting b. keeping your cell phone on low volume before you enter a meeting c. setting a pleasant ring tone on your cell phone before you enter a meeting d. setting a standard ringtone on your cell phone before you enter a meeting
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Which of the following would not be considered a pc? a. mainframe b. desktop c. tablet pc d. laptop
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
You know the right answer?
HURRY, HELP ME PLEASE In this lab, you complete a partially written C++ program that includes two...
Questions
question
Biology, 22.06.2019 14:30
question
Mathematics, 22.06.2019 14:30
Questions on the website: 13722367