Questions: 1 978

Answers by our Experts: 1 850

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

Suppose you are given a sequence of numbers as follows I, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144. .Now. you want to find the n number of the sequence i.e.. if you input n-7, program will give you output 13, for n=10, output=55. You MUST use dynamic programming technique to solve this problem and implement your solution in C language. What is the running time of your algorithm (write it in your text file).

Suppose you are given 1000 unordered integer numbers ranging from 10-100. Now you have to sort these numbers decreasing order. Implement a suitable sorting algorithm which would take lesser time in C language. Your program would take these 1000 numbers from the user and gives output of these 1000 numbers but in sorted order. Write a short note on why you have chosen your algorithm to solve this problem.

Preserving the Gene Pool

by CodeChum Admin

In order to make sure that the future generations will grow into great beings, we must make sure that the gene pool consists of the best genes. In order to do that, we must compare genes from each other and find out which one is the best!


Instructions:

  1. In the code editor, you are provided with a main() function that asks the user for 4 integer inputs and passes these to the getBest() function call.
  2. Your task is to declare and define this getBest() function which has the following details:
  3. Return type - int
  4. Name - getBest
  5. Parameters - 4 integers
  6. Description - returns the highest integer passed
  7. DO NOT EDIT ANYTHING IN THE MAIN

Input


1. First integer

2. Second integer

3. Third integer

4. Fourth integer


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





  1. During Holi, Amzon offers a sale on few mobiles. If you have a HDFC credit card then you can avail 10% off (max 1250, purchase value should be more than 10000), if you have a SBI credit card, you can avail 15% off (max 1250, purchase value should be more than 15000) and if you have a Axis bank credit card then you can avail 5% off (max 2000, no purchase constraint). If you are a prime member then you can avail additional 5% off (unlimited). Someone might not have any of the above mentioned card or may have more than one above mentioned card. Take following input from user – cost of mobile, regarding cards a person have and prime membership. Compute what would be final price of the chosen mobile and what card (if any of the above card is used, otherwise you may print using some ordinary card) is used for purchase. 

A data compression software utilizes various steps to compress a string of data. One of the steps involves finding the count of characters that are not repeated on the string





how to calculate total income a an employee


A company Digicomparts manufactures 52 types of unique products for laptop and desktop computers. It manufactures 10 types of laptop products and 42 types of desktop products.



Each product manufactured by the company has a unique productID from a-z and A-Z. The laptop products have productiDs (a, i, e. o, u, AI, E, D, U) while the rest of the productIDs are assigned to the desktop products. The company manager wishes to find the sales data for the desktop products



Given a list of producties of the sales of the last N products, write an algorithm to help the manager find the productIDs of the desktop products.



Input



The first line of the input consists of an integer nurOfProducts representing the number of products to be considered in the sales data



The second line consists of N space-separated characters productio, producti product representing the product is of



the sales of the last to products.

Write and explain a program using pointer to strings that accepts the name of an animal and a bird and returns the names in plural

3. A linked list is a sequence of data structures, which are connected via links. Write a complete C program to perform the following on a Circular Doubly Linked List (CDLL).











a. Get a number n (1-9) from user and create CDLL with n nodes, which contains the numbers (1, 2, .. n) as the data in the nodes.













b. Display the elements of CDLL.













c. Insert another node (data = 0) as the head of CDLL. Display the elements of CDLL.













d. Convert the CDLL into a DLL.













e. Remove the second node (head->next) from the DLL.













f. Display the elements of DLL in reverse order.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS