Question: answer this Q using c++ please Write a for loop to print all NUM_VALS elements of array hourlyTemp. Separate elements with a comma and space.

answer this Q using c++ please Write a for loopanswer this Q using c++ please

Write a for loop to print all NUM_VALS elements of array hourlyTemp. Separate elements with a comma and space. Ex: If hourlyTemp (90, 92, 94, 95), print: 90, 92, 94, 95 Note that the last element is not followed by a comma, space, or newline #include 2 using namespace std; 1 test passed 4 int main 5 const int NUM-VALS = 4; 6 int hourlyTempNUM VALS]; All tests passed int i = 0; 9 hourlyTemp[0]=90; 10 hourlyTemp[1]=92; 11 hourlyTemp[2]=94; 12 hourlyTemp[3]=95; 13 14 Your solution goes here 15 16 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!