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

write methods to make a bloom filter and and and look up elements in the bloom filter


following equation 3x4 + 4x3 + x2 + 7x + 9, substitute the user provided value of x and generate the result.


Make a loop that will accept random decimal/float numbers. When the user inputs 0, the loop will terminate and then output the sum of all negative numbers inputted in 3 decimal places.


1.     (a) What will be the output for the following program C code?

 

#include<stdio.h>

int main()

{

                   int a=12, b=4, c;

                   ++a;

                   b++;

                   c=a++ - b;

                   printf(“ %d %d %d\n ”, a, b, c);

                   return 0;


Write a simple C program that accepts user input for the following:






Total number of test items, and percentage of correct answers. For every correct answer a






student gets five (5) points and loses two (2) points for every wrong answer.

Write a C program that accepts an input in integer representing the total number of days




and outputs the equivalent values in years, months and days.

Write a simple Menu-driven program that allows users to select from 1 to 4 to solve the area of



the following geometric shapes (Square, circle, rectangle and triangle). If the users enter numbers



not listed in the menu and “Invalid Input” will be displayed on the screen.



Search the formulas in finding the area of the different geometric shapes.

 (b) What will be the output for the following program C code?

                        #include<stdio.h>

                        int main()

                       {

                              int x=15, b;

                              float c;

                                  b=x/2;

                                  c=x/4;

                                  x=x%2;

                              printf(“ %d %d %f ”, x, b, c);

                                 return 0;

                       }                  


write a program to compute the value of u for different values of x at distinct instances of time and plots the series of graphs on u vs plot.

Create a small Arduino project in tinkerCAD.


The project must make use of at least the following:


● Any 1 of the following analog sensors: TMP36, Flex sensor, Photoresistor, or Force Sensor.


AND


● Any 2 of the following Digital input devices: Pushbutton, Slide switch, or DIP switch.


AND


● Any 1 of the following Digital output devices: LED, or Piezo Buzzer.


AND


● Any 1 of the following PWM output devices: DC Motor, Hobby gearmotor, RGB LED.


AND


● A 16x2 LCD display




In you program you must make use of the following:


● analogRead(), digitalRead(),analogWrite(), digitalWrite()


● if statements and if else statements, (i.e. testing the value of a sensor)


● at least 1 while loop


● at least 1 for loop


● an array


● variables


● The LCD display


● arithmetic ( + , - , * , / , % ) and compound operators (+=,-=,*=,/=,%=)


● Comparison and Logical operators


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS