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

Build a class PetShop with the following data members  Name: String  Address: String  Inventory: ArrayList 1. Provide constructor and do appropriate initialization 2. Provide a method addPet(Pet p) that adds the pet object p to the inventory 3. Provide a method Pet getPetByID(String id) that searches in the inventory for the given pet and returns its instance 4. Provide a method boolean isThePetDead(String id) that searches for the pet with given id in the inventory and returns a true if the pet is dead or false othewise. 5. Provide the toString method that gives all details about the shop and the inventory.


1)     All the banks operating in India are controlled by RBI. RBI has set a well defined guideline (e.g. minimum interest rate, minimum balance allowed, maximum withdrawal limit etc) which all banks must follow. For example, suppose RBI has set minimum interest rate applicable to a saving bank account to be 4% annually; however, banks are free to use 4% interest rate or to set any rates above it.

Write a program to implement bank functionality in the above scenario. Note: Create few classes namely Customer, Account, RBI (Base Class) and few derived classes (SBI, ICICI, PNB etc). Assume and implement required member variables and functions in each class.


Program breadth-first search, depth-first search, iterative deepening and A* Search in the Java Programming


language. Your program should be interactive. Allow the users to input the number of elements in the search space and the number of edges in the graph, then you create a graph for that. Let the user then input the search goal and the algorithm to use for the searching. Use the goal and traverse to give the user the desired output.


Compute the running time for each algorithm after the search is complete.


Write the correct title code that will do the following.





1) Ask the user to put the name of the nurtle screen.





2) Ask the user to input the background color of the turtle screen.





3) Ask the user to input a number that will instruct the turtle to move in accordance with number entered.





4) Ask the user to mput a number that will instruct the tunle to turn in accordance with the number





1. Write a C program that finds the smallest among the five integers inputted by the user. 

2. The following program determines the proper fare of a passenger with the following data: 

a.) Senior citizens and PWD enjoys 25% 

b.) Students enjoys 15% 

c.) Regular passengers have to pay the regular fare 



Please write in C++ a solution to the following problem. Having a list of words (which are sequences of small letters), one word per one line, sort them according to the following order: word_1 is smaller that word_2 if word_1 contains more letters ‘a’, and in the case of the equal number of ‘a’ letters in both words, consider the number of letter ‘b’, and as a smaller word take word with bigger number of letter ‘b’, and so on. In the case of two words have the same number of equivalent letters, take into account lexicographic order between them. For example: baabca is bigger that ccaaaa (3 x ‘a’ vs 4 x ‘a’), and xababx is smaller than abacd (2 x ‘a’ in both words, but 2 x ‘b’ in the first one vs 1 x ‘b’ in the second one word). Word bbaaxx is smaller than xxaabb. An example input and output. Input: ale james john ela alexander kamil Output: alexander james ale ela kamil john


write a program to print the given input word three times in a single line separated by spaces


Many companies use telephone numbers like 555-GET-FOOD so the number is easier

for their customers to remember. On a standard telephone, the alphabetic

letters are mapped to numbers in the following fashion:


A, B, C: 2

D, E, F: 3

G, H, I: 4

J, K, L: 5

M, N, O: 6

P, Q, R, S: 7

T, U, V: 8

W, X, Y, Z: 9


Write a program that asks the user to enter a 10-character telephone number in

the format XXX-XXX-XXXX. The application should display the telephone

number with any alphabetic characters that appeared in the original translated

to their numeric equivalent.


Create the class Employee that has the following member data: employee id, employee name, gender, date of birth, address, contact number, date hired, employee type, position, and salary rate. Define all the accessors and mutators needed for the member data of this class. Test the class by creating an object in the main function and try changing or displaying the values of its member data through its accessors and mutators.


Improve the Product.cpp in Figure 7.7 such that the main program will create an array of 10 product objects. Ask for the all values of the member data of each of the product object. After all the data entry of the 10 products, the program will display the product details in a table form.

Write a program that reads a group of numbers from the user and places them in an array of type int. Once the numbers are stored in the array, the program should average them and print the result.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS