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

Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong". It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct.




Now, will you take on this task?


input

1.First Character

2.Second Character

3.Third Character

4.Fourth Character


Create a program using a Java console application name it "Alphabetizer". The program should ask the user to enter is name and surname.

Create a method called emptySpace () this remove space between the name and the surname (Use a regular expression "replaceAll"). The emptySpace() method also Count the number of characters within the newly created string (nameSurname) and return the total number of Characters .

The total number of characters (Name and Surname) should be the size of your arrayAlphabetizer (type integer). Populate your arrayAlphabetizer with a series of random numbers between 10 and 50.

Display all arrayAlphabetizer elements and they are corresponding indexes before executing the sort() method and after executing the sort(). Allow the user to enter a value from the arrayAlphabetizer element to search for.

Loop through the array until you find the value and replace that value with the character @.

 Print out arrayAlphabetizer with the replaced element..


A processor accesses main memory with an average access time of T2. A smaller cache memory is interposed between the processor and main memory. The cache has a significantly

faster access time of T1<T2. The cache holds, at any time, copies of some main memory words

and is designed so that the words more likely to be accessed in the near future are in the cache. Assume that the probability that the next word accessed by the processor is in the cache is H, known as the hit ratio.

a. For any single memory access, what is the theoretical speedup of accessing the word in the cache rather than in main memory?

b. Let T be the average access time. Express T as a function of T1 , T2, and H. What is the

overall speedup as a function of H?


Create a program that will perform the default constructor.


 Find the Optimal Binary Search Tree for 10, 20, 30, 40 and their frequency is given by the first four unique digits of your registration number in sequence (Example: if Reg. No. = 11912348 then frequency =1923).(Neatly show all the steps and also write the algorithm)(Analyze the running time of the given problem). 


Find a longest common subsequence between following strings:

String1= {1, 2, 3, 4, 5, 6, 7, 8}

String2=<Your Registration Number>

(Neatly show all the steps and also write the algorithm)(Analyze the running time of the given problem). 


Following is the details of items in the store:

Items ={a, b, c ,d, e}

Weight ={4, 3, 2, 5, 6 }

Price =<last five digits of your Registration No and add 5, 7, 3, 2, 4 to the respective digit> (Example: suppose your registration number is 11912356 then price will be like 1+5, 2+7, 3+3, 5+2, 6+4 )

Size of the bag =13

Select the items from the store such that you earn the maximum profit. (Use 0/1 Knapsack technique to solve it).(Neatly show all the steps and also write the algorithm)(Apply the bottom-up approach to find the optimal solution)(Analyze the running time of the given problem) 


  1. Input three integers.
  2. Print the integers in ascending order.


"IF ELSE - ELSE IF STATEMENT"


Input

A line containing three integers is separated by a space.

6 1 3

Output

A line containing three integers is separated by a space.

1 3 6

Write a computeSphere() function that returns the volume and surface area. Implement a

main function which reads the radius, calls the above function and prints the result.


Create at least (2) programming applications/projects that are great to use with pointers.

Explain each line of code how the pointer passes arguments or modifies the function in another.


LATEST TUTORIALS
APPROVED BY CLIENTS