Homework #1 Consider the students file format given in the last example. Write a complete Java program which will implem

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Homework #1 Consider the students file format given in the last example. Write a complete Java program which will implem

Post by answerhappygod »

Homework 1 Consider The Students File Format Given In The Last Example Write A Complete Java Program Which Will Implem 1
Homework 1 Consider The Students File Format Given In The Last Example Write A Complete Java Program Which Will Implem 1 (243.01 KiB) Viewed 28 times
Homework 1 Consider The Students File Format Given In The Last Example Write A Complete Java Program Which Will Implem 2
Homework 1 Consider The Students File Format Given In The Last Example Write A Complete Java Program Which Will Implem 2 (87.71 KiB) Viewed 28 times
is 2questions ( homework and exercise)
Homework #1 Consider the students file format given in the last example. Write a complete Java program which will implement a Student class. In the student class you will have the following functionalities. Pay attention that the structure of the students.txt file should never be broken. 1. One class constructor that accepts the full filepath for the students file as its only argument. A method called modify(stdid, field, new_value) which will modify the requested field to the provided new value of the given student. You should consider finding the student only by reading the student ids and stopping once you find. An insert(stdid, name,cgpa,date,gender) method which will append a student to the end of the student file. 4. A delete(stdid) method which will delete a student record (line) completely. display() which will display all students on the monitor (tab separated). 6. A method called stats() which will create a new file called stats.txt in the same path of the students.txt which will contain how many female and male students there are, the average cgpa and the total student count on separate files. How the student class will be used is your experiment which will be explained and tested during the lab hours. 5. 13:35
EXERCISE : Using the knowledge you got from the previous example; Write a multithreaded JAVA application to multiply two 100 x 100 matrices. Like the previous example, again use 10 threads • Assign 10 rows to each thread Fill your matrices with random values • Remember you are practicing the idea that, the main thread should wait for the other 10 threads to complete, so that it can form the final result 13:35
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply