493 Answered Questions for the topic Java

Java

11/21/20

Java application

write a Java application, using OOP concepts, for a Hospital with the following requirements:• The Hospital has several employees and each one of them has an ID (int), name (string), address... more

write java program

Instructions: 1. Assume suitable data /information if required. Develop the Java program for the continuous evaluation (CE) mark-sheet portal as mentioned below: Bifurcation of CE component: ... more
Java

11/20/20

java program to

(a) Implement three classes: Storage, Counter and Printer. The Storage class should store an integer. The Counter class should create a thread and starts counting from 0 (0, 1, 2, 3…) and stores... more

java program to

a) An interface Polygon containing the members as given below: float area, float perimeter void calcArea( ); abstract method to calculate area of a particular polygon given its dimensions void... more

java program to

(a) Create an abstract class Instrument which is having the abstract function play. Create three more sub classes from Instrument which is Piano, Flute and Guitar. Override the play method inside... more

java program to

 Accept a paragraph of text consisting of sentences that are terminated by either ‘.’ (full stop), ‘!’ (exclamation mark) or a ‘?’ (question mark). Assume that there can be maximum 10 sentences in... more
Java

11/19/20

Write code using following class diagram. Is it possible to extract polymorphic behavior from the given class design?

Animal+age: Int+gender: String+isMammal()+talk()Zoo+name: String+Address: String+animals: Animals[]+listAllAnimals() Duck+beakColor: String = “yellow”+swim()+quack()+talk()Fish+sizeInFeet: Int... more
Java

11/17/20

sing OOP concepts, for a Hospital with the following requirements:

As a programmer, you have been asked to write a Java application, using OOP concepts, for a Hospital with the following requirements:• The Hospital has several employees and each one of them has an... more

“Hospital Information System” application

As a programmer, you have been asked to write a Java application, using OOP concepts, for a Hospital with the following requirements:• The Hospital has several employees and each one of them has an... more

Compiling and Executing a Java Program

Modify the program so it displays "I'm learning how to program in Java.". Modify the Programming class so it prints two lines of output. Change the class name to Awesome. Add a second output... more
Java

11/15/20

java programming

Instructions: 1. Assume suitable data /information if required. Develop the Java program for the continuous evaluation (CE) mark-sheet portal as mentioned below:  Bifurcation of CE component:... more

Can someone make a program like this I need it as a basis and I want to properly learn PLease Help Me Out

Create a program that simulates the Transfer funds function of an Automated Teller Machine. All the data transactions and/or processes should reflect in the database. The user must not be able to... more

Can someone please help I have been struggling figuring the SLQ query on this figure can someone also explain how this works please I Dont want to fail

Please provide how you completed the table I want to learn badlyWrite the correct output for each SQL query. Put your answers in a .txt file (separate the columns properly with the use of the TAB... more

How to make these? (OOP Java)

Program will print a selection screen where the user can choose the operation he/she wants to perform. The selection screen will be repeated after each selection until the staff type the number 4... more

Can someone do me this project? (Java)

The project description:As a programmer, you have been asked to write a Java application, using OOP concepts, for a Hospitalwith the following requirements:The Hosptal has several employees and... more
Java

10/24/20

I need help debugging this code, I have tried multiple times and still am having trouble please help.

My assignment is to debug this code, however I am not sure about what I am doing wrong.import java.util.*;public class DebugFive4{ public static void main (String args[]) { Scanner input... more
Java

10/23/20

I need to Modify the objectstudent JAVA program to add a private variable zipcode, you must also add setters and getter method

class Student{ private int id; private String name; public Student() { id = 8; name = "John"; } public int getid() { return id; } public String getname() { return name; ... more

I can't find the link for the files sir Patrick B.

I'm really sorry to bother you more but There is no link for the files HENRY!!!I have uploaded the source code for you. It is simply way to large to put here...It is called Java Logon and posted as... more

Help me complete the code please. PLEASE

import java.io.*;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.FileWriter;import java.io.InputStreamReader;import java.io.PrintWriter;import... more

How to do this? (Java)

CompositionThere are two ways to reuse existing classes, namely, composition and inheritance.With composition (aka aggregation), you define a new class, which is composed of existingclasses. With... more
Java

10/18/20

I am having serious trouble with this code I have tried multiple times and failed, please help.

The assignment is to write an application for the Shady Rest Hotel; the program determines the price of a room. Ask the user to choose 1 for a queen bed, 2 for a king, or 3 for a king and a pullout... more
Java

10/18/20

I am having serious trouble with this code I have tried multiple times and failed, please help.

The assignment is to write an application that asks a user to enter three integers. Display them in ascending and descending order.import java.util.Scanner;public class AscendingAndDescending {... more

How to make these 3 classes? (Java)

Class1 Shape-color:StringMethods:+getArea() : double+toString(): String ---> Superclass defines the expected behaviors(public intertace) of all subclasses.Program at the public interface.Class2... more
Java

10/13/20

My assignment is to debug this code, I have submitted code multiple times and cannot get it right. Can you please explain to me what exactly is wrong with this code and how I can fix it?

import java.util.*;public class DebugTwo4{ public static void main(String[] args) { Scanner input = new Scanner(System.in); string costString; double cost; final TAX = 0.06;... more

Create a program similar to this while the output stays the same.

Using a text editor, create a file that contains a list of at least 10 six-digit account numbers. Read in each account number and display whether it is valid. An account number is valid only if the... more

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.