Question: 1 1 . Programming Problems ( Total points = 0 . 5 * 4 = 2 . 0 ) a . Seconds Conversion: Write a

11. Programming Problems (Total points =0.5*4=2.0)
a. Seconds Conversion: Write a Java program that reads an integer value expressing seconds greater than 0. and outputs the equivalent years(Y), days (D), hours (H), minutes (M), and seconds (S).(365 days a year, 24 hours a day). Please see the table below for the example inputs and the corresponding outputs. Test your program for the following input values -100000,1000000000 provide screenshots of the input and output of your program execution.
Input Output
590Y 0D 0H 0M 59S
38000Y 0D 1H 3M 20S
864000Y 1D 0H 0M 0S
b. Integer Breakdown: Write a Java program that reads a 10-digit number representing a phone number breaks it down into an area code, prefix, and line number, and finally outputs the area code, prefix, and line number in a formatted string. For example - if the input is 7533571313 then the output would be (753)-357-1313 where 753 is the area code, 357 is the prefix and 1313 is the line number. For convenience, you can assume that all the digits will be greater than 0.
c. Void Diamond: Write a Java program that reads an odd integer value N as input where N>=3 and prints a hollow diamond. See the attached PDF file for detailed examples.
d. Find the number of award-eligible students and underperforming students: Hypothetically, XXXX students have enrolled in Spring 2024 in the various departments at YYYY State University. Each student has a name, student ID, and CGPA. Now, the campus wants to present an award (summa cum laude) to the students with the CGPA 3.9 and above. The campus also wants to reduce the number of dropout students and wants to know about the number of students with a CGPA of 3 and below. As a computer science student, you are tasked with writing an object-oriented program that reads total student no, and each student's information (name, ID, and CGPA) as input, stores them, and prints the count of the number of award-eligible students and their associated information (name, ID, and CGPA) and also count the underperforming students and their associated information. To achieve full credit your program has to successfully take inputs, store them, and achieve the intended goal of counting and printing students number and information.
Input characteristics and conditions:
1. Total student no is an integer and greater than 10
2. The name is a String
3. CGPA is double, and CGPA >0
4. Student ID is integer
5. You must use reference type (user-defined) variables to store the student's information and can not directly use individual arrays to store name, student ID, and CGPA
6. You can not use ArrayList, LinkedList, HashMap, HashSet, or similar data types in your program (Hint: Array of objects)
Output:
1. Number of award-eligible, underperforming students and their associated information.
Hints: Java Class, Method calling, Sequential searching
Test input 1: Students.txt
Students.txt
Abc 1233.5
Abd 123.0
Pqm 123.8
Xyz 4563.3
Yzx 6783.9
Test output:
1
Yzx has a CGPA 3.9 or above
1
Abd has a CGPA 3.0 or lower

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!