0

can i please get help with a project

14th Mar 2019, 7:34 PM
Hamza Keita
Hamza Keita - avatar
4 Answers
0
please send a more clearer question so as to avoid spamming the app
14th Mar 2019, 7:58 PM
Buhle 💃💃💃
Buhle 💃💃💃 - avatar
0
i havw no idea how im going inser the code in this is my first time using this
14th Mar 2019, 9:23 PM
Hamza Keita
Hamza Keita - avatar
0
DISPLAY 3.15 Explicitly Nested Loops //Determines the total number of green-necked vulture eggs //counted by all conservationists in the conservation district. #include <iostream> using namespace std; void instructions (); int main() { cout << "This program tallies conservationist reports\n" << "on the green-necked vulture.\n" << "Each conservationist's report consists of\n" << "a list of numbers. Each number is the count of\n" << "the eggs observed in one” << "green-necked vulture nest.\n" << "This program then tallies << "the total number of eggs.\n"; int number_of_reports; cout << "How many conservationist reports are there? "; cin >> number_of_reports; int grand_total = 0, subtotal, count; for (count = 1; count <= number_of_reports; count++) { cout << endl << "Enter the report of " << "conservationist number " << count << endl; cout << "Enter the number of eggs in each nest.\n" << "Place a negative integer at the end of your list.\n”;” subtotal = 0; int next; cin >> next; while (next >=0) { subtotal = subtotal + next; cin >> next; } cout << "Total egg count for conservationist " << " number " << count << " is " << subtotal << endl; grand_total = grand_total + subtotal; } cout << endl << "Total egg count for all reports = " << grand_total << endl; return 0; }
14th Mar 2019, 9:28 PM
Hamza Keita
Hamza Keita - avatar
0
so i have the code which i have to plug in this function without main
14th Mar 2019, 9:29 PM
Hamza Keita
Hamza Keita - avatar