You are provided with a simple Java project. Using the Shape class as a guide, create an abstract class 3DShape for 3D shapes. Create Cube and Cylinder 3D shapes by extending the 3DShape class you’ve just created. Create an interface to calculate volume and implement necessary code to calculate correct value of volume of all types of your 3D shapes. As a bonus, implement a design where 2DShape supertype is the parent of the 3DShape supertype, and respective methods for area and volume calculation are inherited from the relevant supertype for the concrete 3D objects.
Write a program that checks how many possible outcomes there can be from numbers 0 to 31 & gives all the possible outcomes
Write a program that checks the top 3 most likely outcome of numbers from 0 to 31
Hello Sir!
Attaching a link in which code is already written you just need to add the Main method so I can run the program. Thanks
https://drive.google.com/file/d/12ywHMF2l0bnQihN_SSFRXFMy1PLc3GwN/view?usp=sharing
Using an imperative Definition, specify the abstract datatype for a software stack
write a multi-threaded Java program that
(i) Has a single Producer class object which is a thread and a single Consumer class which is also a thread.
(ii) Create a class Packet. This class should contain a simple string.
(iii) Create a class Buffer that internally uses some data structure to hold the incoming packet objects – it should have methods insertPkt and remove Pkt and should have methods to tell the user how many packets are in the Buffer at any time e.g. size.
(iv) Make the Producer object at random time intervals create Packet objects and place them in the Buffer object.
(v) OBJECTIVE: Use a mechanism from the books Concurrency chapter to synchronize the producer thread pushing packets into the Buffer and the consumer thread removing them such that the Buffer size always remains between 50-70 packets.
(vi) Show through any means how your objective is met by running the Producer and Consumer object.
In this task, you are required to develop the styling of your website and incorporate responsive design. These are the required features: Improve upon the previous task, based on feedback from your lecturer. Your website must be developed using HTML5 and styled using CSS3. Your website must be styled consistently using a suitable combination of inline, internal and external style sheets. Your styling must make your website responsive (i.e. automatically adjust to different screen and device sizes). You may also add in these optional features: Embedding of social media feeds and YouTube videos, as necessary.
Write a Java GUI application that will keep track of a company’s products. The application must contain the product id, product name and the product price. Q.3.1 On the form, create three text fields to capture the product details and a non‐ editable text area to display the product details. Create a submit button that when clicked will save the product details to a Products.txt file. Also include a search button that will allow a user to search for a product based on the product id. Q.3.2 Create a sequential file (products.txt) that contains data for the following fields: The product id The product name The product price Q.3.3 Load the product details from the Products.txt file. Populate the text area on form load and whenever a new product is saved