Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN JAVA SELF STUDY Problem Description Students are required to spend at least 25 hours weekly for self-study on basic programming course. The weekly hours

image text in transcribed

IN JAVA

SELF STUDY Problem Description Students are required to spend at least 25 hours weekly for self-study on basic programming course. The weekly hours that students spend on self-study are stored in a two-dimensional array. Each row consists of seven columns, stores a student's daily study hours. For example, the following array stores self-study hours for 8 students. Your program should be able to read the data and display total study hours for each student. Sun Mon Tue Wed Thu Fri Sat Student-1 2 4 3 4 5 8 8 Student-2 7 3 4 3 3 4 4 Student-3 3 3 0 3 3 2 2 Student-4 9 3 4 7 3 4 1 Student-5 3 5 4 3 6 3 8 Student-6 3 4 1 2 3 4 4 Student-7 3 7 4 8 3 8 4 Student-8 6 3 5 9 2 7 9 4 Input The first line of input is a positive integer N (N = 100) which indicates the number of students in the test case. Each of the following N lines contains 7 integers represent daily study hours for the student. Input is terminated by a test case where N is 0. Output The output should contain the percentage of student who studies more than 25 hours per week. The following N lines are the total study hours for each student, as shown in the sample output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions