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

Using an appropriate diagram:


4. Discuss Gates & Flip Flops in Microprocessors

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

A file contains a list of telephone number in following form.(10 Marks) 

    Aman     9915336423 

    Raj       9915336429 

    …..     ………. 

   Assume 10 such entries. ( Each students entry should be different) 


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

Odd-Even-inator

by CodeChum Admin

My friends are geeking out with this new device I invented. It checks if a number is even or odd! 🤯


Do you want to try it out?


Instructions:

  1. In the code editor, you are provided with a function that checks whether a number is even or odd.
  2. Your task is to ask the user for the number of integer, n, they want to input and then the actual n number values. For each of the number, check whether it is even or odd using the function provided for you.
  3. Make sure to print the correct, required message.

Input


1. Integer n

2. N integer values

Output


Enter·n:·5
Enter·value·#1:·3
3·is·odd
Enter·value·#2:·6
6·is·even
Enter·value·#3:·4
4·is·even
Enter·value·#4:·1
1·is·odd
Enter·value·#5:·3
3·is·odd

 Before and After

by CodeChum Admin

The only constant thing in the world is change. That’s why we need to call the toupper() function to change what we already have into a better version.


Instructions:

  1. Your task is to ask the user for a character input.
  2. Then, include the cctype built-in library and call the toupper() function. In case you do not know what this function is, this function has the following definition:
  3. Return type - int
  4. Name - toupper
  5. Parameter - one integer which represents the ASCII of a character
  6. Description - returns the ASCII of the uppercase equivalent of the character passed
  7. Extra note - even though it's function definition in the C++ Programming Language Documentation is int toupper(int ch), you can just pass a normal char variable instead and this will just be automatically typecasted/converted to its integer equivalent.
  8. Once you get the uppercase equivalent, print this out.

Input


1. Letter to be updated

Output


Enter·a·small·letter:·a
Uppercase·=·A




 Leap Year Detector

by CodeChum Admin

Let’s try to find out whether a year has 365 or 366 days. To do this, we need to create a leap year detector!


Conditions for a leap year:

1.) year must be divisible by 4 and not divisible by 100

2.) If year is divisible by 100, it must be divisible by 400 for it to be a leap year.


Instructions:

  1. You are provided with the isLeapYear() function which is already declared and defined for you.
  2. Your task is to ask the user for a year and then call the isLeapYear function to check whether the year is a leap year or not.

Input


1. Year to be checked

Output

If a certain year is a leap year, print "<INSERT_YEAR_HERE> is a leap year"

Otherwise, print "<INSERT_YEAR_HERE> is not a leap year"

Enter·year:·2020
2020·is·a·leap·year




LATEST TUTORIALS
APPROVED BY CLIENTS