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

a) Write a C program that reads marks of 10 students in to a single subscripted array. b) Above marks should be between 0 to 20. Modify the above program to add marks to the array only if the input mark is between the given range. c) Display the values stored in the array


a runner runs 14 kılometers in 45 minutes and 30 sec-

onds. Write a program that displays the average speed in miles per hour. (Note that

 1 mile is 1.6 kilometers.)


C program to initialize the value as 5.800000

A company Digicom Parts manufactures 2 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 product have productID (a, i, e, o, u, ALE, O, 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 productIDs of the sales of the last N products, write an algorithm to help the manager find the productIDs of the desktop products.

Martin is a commander in the army. An undercover agent shares some secret information with him. The secret information: consists of a text and the name of a terrorist With the given information Martin needs to find the number of terrorists who are going to attack the army base. The agent gave Martin a hint that the number of terrorists is the number of times the terrorists name occurs in the text.





Write an algorithm to help Maan find the number of terrorists who are going to attack the army base.

3. Here We Go Again

by CodeChum Admin

This one’s probably one of the most popular recursion problems in programming. Your task is to create a recursive function that prints out the the first up to the nth number in the Fibonacci sequence by going through the numbers using recursion.


In case you forgot, here is the definition of a Fibonacci sequence:

  • fib(n) = 1 if n = 1 or n = 2
  • fib(n) = fib(n-1) + fib(n-2) when n > 2

Instructions:

  1. In the code editor, you are provided with an initial code with a main() that asks the user for an integer n, which represents the number of elements in the Fibonacci sequence to be printed out.
  2. In addition, you are also provided with an initial displayFibonacci() function which contains the code to supposedly display the first n elements in the Fibonacci sequence. However, it is not working as expected.
  3. Your task is to find where the error is and fix the displayFibonacci() function.

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 



Create a staff/worker information system using C Struct where you’ll be able to –


a ) Insert staff/worker details with id, name and monthlySalary


b ) Display staff/worker details (searched by id)


c ) Update monthlySalary of a staff/worker

write a program using pointer to strings that acceptd the name of an animal and a bird and returns the names in plural


Write an algorithm and implement a program in C to read the data from a

file (called “test.txt”), transform the data according to the discussion in

“Introductory”, and afterwards, save in another file (called “final.txt”).


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS