The outer loop controls the number of students. Note that

The outer loop controls the number of students. Note that the inner loop of this program is always executed

exactly three times, once for each day of the long weekend. Modify the code so that the inner loop iterates n times, where n is a positive integer that the user inputs. Thus, the users decide how many days to consider just as they choose how many students to consider. A sample run: This program will find the average number of hours a day that a student spent programming over a long weekend; How many students are there? 2 Enter the number of days in the long weekend 2 Please enter the number of hours worked by student 1 on day 1 4 Please enter the number of hours worked by student 1 on day 2 6 The average number of hours per day spent programming by student 1 is 5 Please enter the number of hours worked by student 2 on day 1 9 Please enter the number of hours worked by student 2 on day 2 13 The average number of hours per day spent programming by student 2 is 11

Modify question3.cpp so that it also finds the average number of hours per day that a given student studies biology as well as programming. For each given student include two prompts, one for each subject. Have the program display which subject the student, on average, spend the most time on.

 

Stressed over that homework?

Essay deadline breathing down your neck?

Let’s cut to the chase: Why struggle when you can ace it with zero hassle?

Whether it’s essays, research papers, or assignments — we’ve got you covered.

✅ Expert writers
✅ 100% original work
✅ No AI tools, just real pros

Stressed about your essay or homework? Get a top-quality custom essay NOW!!! Stop worrying. Start succeeding.

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top