Computers and Technology

Finish the methods in the following code. DO NOT CHANGE THE MAIN METHOD. The instructions for each method are in a comment in the template. DO NOT CHANGE THE MAIN METHOD

#include
#include
using namespace std;
// prototypes
int main() {

int answer = 0;
int value1 = 0;
int value2 = 0;
double average = 0;
string string1 = "";
int numberVowels = 0;
int numberNonVowels = 0;

cout << "Enter string1: ";
getline(cin, string1);
cout << "Enter value1: ";
cin >> value1;
cout << "Enter value2: ";
cin >> value2;
cout << endl;
cout. setf(ios::fixed);
cout. precision(2);

answer = summationBetween(value1, value2);
cout << "The summation is: " << answer << endl << endl;

numberVowels = (string1, numberNonVowels);
cout << "The string \"" << string1 << "\" has " << numberVowels << " vowels and ";
cout << numberNonVowels << " characters that are not vowels. ";
cout << endl;
cout << endl;
average = calculateAverage();
cout << endl;
cout << "The average is: " << average << endl;

return 0;
}

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 21:20, nathanfletcher
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
image
Computers and Technology, 24.06.2019 10:20, silviamgarcia
Write a program that keeps asking the user for new values to be added to a list until the user enters 'exit' ('exit' should not be added to the list). these values entered by the user are added to a list we call 'initial_list'. then write a function that takes this initial_list as input and returns another list with 3 copies of every value in the initial_list. finally, inside print out all of the values in the new list. for example: input: enter value to be added to list: a enter value to be added to list: b enter value to be added to list: c enter value to be added to list: exit output: a b c a b c a b c note how 'exit' is not added to the list. also, your program needs to be able to handle any variation of 'exit' such as 'exit', 'exit' etc. and treat them all as 'exit'.
Answers: 2
image
Computers and Technology, 25.06.2019 05:00, nathan123498
Arun is 5 years older than anu. five years ago, the ratio of their ages was 3: 2 . find their present age
Answers: 2
image
Computers and Technology, 25.06.2019 08:30, Anliz0179
What is the chief concern of cloud computing?
Answers: 1
Do you know the correct answer?
Finish the methods in the following code. DO NOT CHANGE THE MAIN METHOD. The instructions for each m...

Questions in other subjects:

Konu
Geography, 30.03.2020 23:36
Konu
Mathematics, 30.03.2020 23:36
Konu
Mathematics, 30.03.2020 23:36