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 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.


  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.


Using an appropriate diagram:


Differentiate between Moore finite state machine and the mealy


finite state machine

Using an appropriate diagram:


2. Apply the traffic lightning system to describe the term finite state


machine

Using an appropriate diagram:


1. Apply the fetch, decode & execute machine cycle to explain


pipelining and parallelism in the context of computing

Pyramid Schemes

by CodeChum Admin

They said pyramids were created by aliens, so if you can make a pyramid you might be able to qualify as an alien.


Instructions:

  1. In the code editor, you are provided with a main() function that asks the user for an integer input n, and passes this value to the function call of the generatePattern() function.
  2. Your task is to implement this generatePattern() function which has the following description:
  3. Return type - void
  4. Function name - generatePattern
  5. Parameters - 1 integer n
  6. Description - this function prints a triangular pattern of letter T's based on the value of n. For more information, refer to the output in the test cases
  7. DO NOT EDIT ANYTHING IN THE MAIN

Input


1. Integer n

Output


Enter·n:·4
T
TT
TTT
TTTT




Comparing Characters

by CodeChum Admin

Most, if not all things have numeric values. That goes for characters too. In order to find out which character has a higher value, we have to compare them with each other and display the value of the higher character.


Instructions:

  1. In the code editor, you are provided with a main() function that asks the user for 2 characters, passes these characters to a function call of the getHigherValue() function, and then prints out the ASCII value of the higher character.
  2. Your task is to implement the getHigherValue function which has the following details:
  3. Return type - int
  4. Name - getHigherValue
  5. Parameters - 2 characters to be compared
  6. Description - the ASCII value of the higher character.
  7. Hint: Comparing characters in C++ is just like comparing integers.
  8. DO NOT EDIT ANYTHING IN THE MAIN

Input


1. First character

2. Second character

Output


Enter·first·character:·a
Enter·second·character:·h
Result·value·=·104
LATEST TUTORIALS
APPROVED BY CLIENTS