subject

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;
}

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, jayjay5246
What is the term for water wave that is created by an underwater earthquake
Answers: 1
image
Computers and Technology, 23.06.2019 06:00, hilarydodard7099
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
image
Computers and Technology, 23.06.2019 06:00, sebcbal
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
image
Computers and Technology, 23.06.2019 23:40, lexiecooley
4. what is the reason for including the following code snippet in the header file animal. h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
You know the right answer?
Finish the methods in the following code. DO NOT CHANGE THE MAIN METHOD. The instructions for each m...

Questions in other subjects:

Konu
Chemistry, 13.01.2021 16:20
Konu
Social Studies, 13.01.2021 16:20
Konu
Mathematics, 13.01.2021 16:20
Konu
English, 13.01.2021 16:20