your goal is to use parallel arrays store the name of a dog in one array and the weight of the dog in the other array. the program will determine the total weight of the dogs, the average weight of the dogs, the highest weighing dog, and the lowest weighing dog. Ask the user how many dogs they would like to enter. Do not accept negative values for the number of dogs.
Use the number that the user entered to execute a loop to enter the names of the dogs into the name array. Then loop through the dog name array asking the user for the weight of each dog. Do not accept negative values for the weight of the dog.
Use a loop to sum the weight of all the dogs, determine the highest weighing dog using a conditional, and determine the lowest weighing dog using a conditional.
Display the total weight, the average weight, and the names of the highest weighing dog and lowest weighing dog.
Your goal is to use parallel arrays store the name of a dog in one array and the weight of the dog in the other array. The program will determine the total weight of the dogs, the average weight of the dogs, the highest weighing dog, and the lowest weighing dog.
Ask the user how many dogs they would like to enter. Do not accept negative values for the number of dogs.
Use the number that the user entered to execute a loop to enter the names of the dogs into the name array. Then loop through the dog name array asking the user for the weight of each dog. Do not accept negative values for the weight of the dog.
Use a loop to sum the weight of all the dogs, determine the highest weighing dog using a conditional, and determine the lowest weighing dog using a conditional.
Display the total weight, the average weight, and the names of the highest weighing dog and lowest weighing dog.