Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a test driver for the ShapeCone Class. Make sure that the program will ask first for the height and radius of the Cone. The output of your program should look like this:





Radius: 2.4




Height: 3.5




Color: bue




Base Area: 18.09557




Volume: 21.1115

a java program that will compute the surface area and volume of a cube using class

There are two types of fishes in a pond, A and B.there are N fishes of type A numbered from 1 to N and M.the following two methods are adopted by the fishes of type A to satisfy their hunger.

1)E1:Fish of typeA(n1) eats the fish of type B(n2).

2)E2:Fish of type A(n1) eats the fish of type A(n2) if size(n1)>size(n2).

In the above mentioned context,E1and E2 denote the respective methods and n1 and n2 are the fishes belonging to these types and Size(X) denotes the total number of fish within X.

Example:if size(L)=3 and size(K)=2 and L eats K then the resulting size(L) will be5.

It is feeding time now and the fishes are hungry.theyeat as per the given method and satiate their hunger.your task is to find and return an array defining whether which type A fishes do All type B fishes fall under.

Note: the size of all fishes initially is the same i.e,1.

Ex1:

i/p1:2

i/p2:3

i/p3:4

i/p4:{{1,1,1},{1,1,2},{1,2,3},{2,1,2}}

o/p:{1,1,1}

ex2:

i/p1:1

i/p2:1

i/p3:1

i/p4:{{1,1,1}}

o/p:{1}


Assume that a grocery shop is introducing shopping through mobile. The shop keeper will gets the list of items from the customer through whatsApp. After receiving the list he will prepare the bill for the customer based on the availability of the items. That is, the shopkeeper will check whether the item is available or not by checking the stock in the shop, if the item is available he will add that item to the bill otherwise he will add that item to another list called not-available list. Finally the shopkeeper will send the bill and the not available list to the customer for confirmation. Write a python code to simulate mobile shopping for a grocery shop to generate bill and not available list. Hint : Create the stock list that contains item, unit price and available quantity.

Write a basic procedure to list countries in Asia.


Create a database with the names of the countries (please refer to this link: https://www.newworldencyclopedia.org/entry/List_of_countries_by_continent ) and tables such as Country Name and Continent.


Create a stored procedure that will displayed only the countries in Asia.


Provide me the sql file or screenshot per commands and show the BEFORE and AFTER of the data.



The Electoral Commission wants a computer program that can determine the eligibility of voters. The eligibility criteria are based on the age and the nationality of the voter. The commission wants to know whether an applicant is too young to vote, a foreigner and so cannot vote or eligible to vote. Write an algorithm and draw a corresponding flowchart to meet the commission's expectation.

Write a Program to create a Class Employee It contains two attributes -> Name, Salary Create 5 objects and initialize any random values for Name and Salary to it. Store all these objects in an Array and print the names of the employees sorted in Descending Order using Comparators (Use Salary to sort the elements)


Case 2: JOB APPLICATION

DBD Sports has decided to allow applicants to apply for jobs online. Using the following business rules, create an ERD:

1. When a person applies for a job, the following information is required:

a. Full Name b. Address c. Phone

d. Email

2. An open position is assigned to a job category.

3. A person may apply for more than 1 job, but can apply for each job only once.

4. Each job applicant is assigned to an HR representative who processes the application and helps the applicant with any

questions.

5. Once an HR representative has been assigned to a job applicant, the same HR representative will be assigned to the

job applicant each time he/she applies for a job.

6. Job applications older than 1 year will be deleted.

7. Applications for an open job will be accepted until the position is filled.


(FOR C #) A class called Company is to be defined as illustrated in the class diagram. It contains two data members: name (of type string) and salary (of type int); and three member functions: getName(), getSalary (), and getEmployee().

Three instances of Company called s1, s2, and s3 shall then be constructed with their respective data members, as shown in the instance diagrams.

Company

-name:string=”Cube”

-salary:int=470000000


+Company()

+Company(n:string)

+Company(n:string, s:int)

+getName():string

+getSalary():int

+getEmployee():int

S3 - Contractor

-name:string=”Jake”

-salary:int=1800

 

+ getName()

+ getSalary ()

+ getEmployee()


Objects

S1 - Employee

-name:string=”Mark”

-salary:int=1900


+ getName()

+ getSalary ()

+ getEmployee()


S2 - Manager

-name:string=”Kai”

-salary:int=1700


+ getName()

+ getSalary ()

+ getEmployee()




 


Write a program with structure Inventory(name, colour, size, cost). Then create 3 objects and write code to print information about Inventory with the highest cost. (FOR C #)


LATEST TUTORIALS
APPROVED BY CLIENTS