Entries by admin

Write a Java program to imitate a file system of an operating system. Design a class called BasicFile with options to carry out the following operations: Select and open an input file using a file dialog box. Make a copy of the file, whether it is a text

Write a Java program to imitate a file system of an operating system. Design a class called BasicFile with options to carry out the following operations: Select and open an input file using a file dialog box. Make a copy of the file, whether it is a text file or an image file. Write to […]

Write a Java program to simulate a pick 3, 4 or 5 lottery drawing

Before attempting this project, be sure you have completed all of the reading assignments, hands-on labs, discussions, and assignments to date. Write a Java program to simulate a pick 3, 4 or 5 lottery drawing. A lottery game of this type will draw values between 0 and 9. You should use the Math.Random() or the […]

Write a manager/worker program to determine the prime numbers from 1 to 1,000,000

Ubuntu 15.10 – Operating System: (using C /C++) Write a manager/worker program to determine the prime numbers from 1 to 1,000,000. The manager program should calculate the prime numbers from 1 to 1000 and then spawn 10 child processes each of which will determine the prime numbers in a range of multiples of 100,000. Thus […]

Write a method named partition that accepts a List of CalendarDates

A. Write a method named partition that accepts a List of Calendar Dates and a Calendar Date value E as its two parameters, and rearranges (partitions) the list so that all its elements less than E occur before all elements greater than E. The exact order of the elements is unimportant so long as all […]