Question: 1 1 . Programming Problems ( Total points = 0 . 5 * 4 = 2 . 0 ) a . Seconds Conversion: Write a
Programming Problems Total points
a Seconds Conversion: Write a Java program that reads an integer value expressing seconds greater than and outputs the equivalent yearsY days D hours H minutes M and seconds S days a year, hours a day Please see the table below for the example inputs and the corresponding outputs. Test your program for the following input values provide screenshots of the input and output of your program execution.
Input Output
Y D H M S
Y D H M S
Y D H M S
b Integer Breakdown: Write a Java program that reads a 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 then the output would be where is the area code, is the prefix and is the line number. For convenience, you can assume that all the digits will be greater than
c Void Diamond: Write a Java program that reads an odd integer value N as input where N and prints a hollow diamond. See the attached PDF file for detailed examples.
d Find the number of awardeligible students and underperforming students: Hypothetically, XXXX students have enrolled in Spring 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 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 and below. As a computer science student, you are tasked with writing an objectoriented 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 awardeligible 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:
Total student no is an integer and greater than
The name is a String
CGPA is double, and CGPA
Student ID is integer
You must use reference type userdefined variables to store the student's information and can not directly use individual arrays to store name, student ID and CGPA
You can not use ArrayList, LinkedList, HashMap, HashSet, or similar data types in your program Hint: Array of objects
Output:
Number of awardeligible, underperforming students and their associated information.
Hints: Java Class, Method calling, Sequential searching
Test input : Students.txt
Students.txt
Abc
Abd
Pqm
Xyz
Yzx
Test output:
Yzx has a CGPA or above
Abd has a CGPA or lower
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
