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

The Thermometer section will run a loop. For each iteration, the raw temperature value is obtained and converted to Celsius and Fahrenheit values. The Celsius value is displayed on the LCD screen for two seconds. During these two seconds S2 is checked twice (i.e. once per second); if S2 is pressed the loop will terminate. Similarly, the Fahrenheit value is displayed on the LCD screen for two seconds. During these two seconds S2 is also checked twice (i.e. once per second); if S2 is pressed, the loop will terminate.


using Arduino board

Primary Objectives:

• When the racer is outside the covered section:

The two headlights and the rear light must turn ON and OFF alternatively (when headlights are ON, the rear light must be OFF and vice versa) for 1 second in each state.


• When the racer is inside the covered section:

The two headlights must turn ON and OFF alternatively for 0.5 seconds in each state. The rear light must stay ON for the whole duration.


Secondary Objectives:

• When the racer is outside the covered section:

The audible warning must turn ON and OFF with the rear Light.

• When the racer is inside the covered section:

The audible warning must stay ON


 Given a number n = abc and with the hash function f(n) = (a*30+ b*31+c*32) mod 9. Then generate the hash table by following linear and quadratic probing resolution separately for the following data set: 476,192,215,729,318,620,586,828,434.

A sorting technique was applied to the following data set 44, 11, 66,33,55,99 After two passes the rearrangement of the data set is as follows 11, 33, 66, 44, 55, 99. Identify the sorting method used and find the arrangement of the data set after the arrangement of the data set after the third pass.

time calculator write a program that asks the user to enter a number of seconds in c language



Journey to Another Dimension

by CodeChum Admin

Somehow, in some way, you find yourself in a dimension within a dimension. Traverse the dimension and look for the exit!

Instructions:


Instructions

  1. Go through the 2D array and search for the array index containing the int value named “exit”.
  2. Print the indices with one space in between the column and row index.

Input

A single int input

1

Output

2 int outputs separated by a space

0·0




---------------to fill up code--------------------


#include<stdio.h>


int main() {

    int exit;

    scanf("%d", &exit);

    

    int col_row[5][5] = {{1,2,3,4,5},{6,7,8,9,10},

                        {11,12,13,14,15},{16,17,18,19,20},{21,22,23,24,25}};

    

    

}


Burning Bridges

by CodeChum Admin

After getting out of the strange dimension, you feel like you have to cover up your path and close the exit so that nothing strange can follow you back.


Instructions

  1. Change the value of of the element located in the array index indicated by the int variables “exitCol” and “exitRow” to ‘0’.
  2. Print out the 2D array with each element per row separated by a space and each column separated by a line.


Input

Two ints separated by a space

0·0

Output

5x5 array with each sub array in a new line and each element separated by a space

0·1·1·1·1
1·1·1·1·1
1·1·1·1·1
1·1·1·1·1
1·1·1·1·1


-----------fill up the code---------------

#include<stdio.h>


int main() {

    int exitRow,exitCol;

    scanf("%d %d", &exitRow,&exitCol);

    int row_col[5][5] = {{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1}};

    


    return 0;

}


“If the height of a tree is reduced and balanced, then the searching time also get reduced.” (True/ False) Justify.

we need c coding with this answer..



Write a program that reads the numbers and sorts them by using the Counting


Sort algorithm and finally search a number from that array using Linear


Search Algorithm.


8


Input: 3 6 5 4 7 8 9


Search Item: 7


Output: Sorted Array: 3 4 5 6 7 8 9


Search item 7 is found.

Find latitude and longitude of 20 countries with a population greater than or equal to the population limit given below. Use the country details from this dataset.

Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.

  • Assume radius of earth: 6371 km
  • Round length of each line and final result to 2 decimal points
  • If co-ordinates are missing for any country use 0.000 N 0.000 E

Population limit: 300

Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS