0

Reads from the user data for 5 computers as follows ?

answer

17th Sep 2018, 10:36 AM
toomy11
toomy11 - avatar
1 Answer
0
Write a Java program that: 1. Reads from the user data for 5 computers as follows: A) Brand name for each computer (for example “SONY”, as a string) and save them into an array with the name - computer. B) Hard drive size for each computer (for example 500 Gbyte, as an integer number) and save them into an array with the name - hd. 2. Prints these arrays to the screen as follows (for example): HP 500 Gbyte LENOVO 750 Gbyte .... 3. Finds if a computer with hard disk 1000 Gbyte exists (the answer is yes or no). 4. Finds the size (number) of the smallest hard disk. 5. Finds the size (number) of the biggest hard disk. 6. Finds how many computers have hard disk smaller than 500 Gbyte. 7. Calculate the total hard disk size of all computers. 8. Finds the brand name of the computer with the biggest hard disk. 9. Show the hard disk size of an “ASUS” computer. 10. Show the brand name and the hard disk size for computers with exact 4 letters brand name and hard disk size above 500 Gbyte.
17th Sep 2018, 10:37 AM
toomy11
toomy11 - avatar