Question: OOP test X (14) WhatsApp X S OOP fall 2020-2021 X AASTMT Student Portal X Object-Oriented Programming X Tinal OOP Fal 2020 (1) X .

OOP test X (14) WhatsApp X S OOP fall 2020-2021 X AASTMT Student Portal X Object-Oriented Programming X Tinal OOP Fal 2020 (1) X . X A File C:/Users/pc/Downloads/Final%2000P%20Fall%20%202020%20(1)%20(1).pdf Apps History Deers & Software OCAR by cymy LEf Facebook Webmail Free. Che MO Youtube Maps CS243 Object Oriented Programming Page 2 MPC 1.1 Question Three (10 Points) Write a java program that satisfies the following a) Reading a series of positive integers from the keyboard and store it in Arraylist. The entry stops when 0 or a negative integer is entered. If the user enters something other than a number, the program should print the appropriate message and continue receiving data. b) Output the entered numbers in an ascending order (sorted) as well as discarding any repeated numbers (if the user enters the same number more than once, it must be printed only once) c) Write a simple method that receives a collection of entered numbers and returns the smallest prime number from that collection. If there is no prime number among the numbers, it is necessary to throw an unverified exception NoPrimeNumberException (suppose it is already detined) Question Four (10 Points) a) Write a Java program that will count the number of characters, words, and lines in a file. Words are separated by whitespace characters. The program output should be as follows: 16 Points) Filename Test Ixt Number of characters: 150 Number of words 40 Number of lines: 5 b) Write a JavaFX program that generate the GUI shown in the following Figure. When the user click the "Refresh" button, four cards from a deck of 52 cards must be displayed randomly, see the Figure (4 points) ) N.B. The cards images are stored on the hard disk as I png........52.png (in the current folder) An Arraylist can be in your solution Exercise 15201 NXX Refresh - Best Wishes - Activate Windows Go to Settings to activate Window Type here to search Ei D 40 ENG 12:05 PM 1/23/2001
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
