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 a C program that bitwise displays the single-precision-floating-point value 3.14 to the screen.
Your first Continuous assessment of CSE101 has already been evaluated. As a curious student,
you want to find the number of students who have marks more than your marks. You should store marks of all the students in an array and write code to find the count as stated above. Further, you should extend the code so that you should be able to store the similar count for every student
) Write a function that counts the number of bounces a ball makes before it stops and rests on the
ground. Assume that with each bounce, it reaches up to 0.9 of its previous bounce. The ball is
considered at rest when it is at height less than 0.4 cm. Let the user input the initial height from the
In this laboratory work, you should research and find a solution (proved by C code) for each task below:
a)How many bits a byte equals to?b)How many bytes a basic data type (char, int, float, and double) occupies in memory?c)How many bits an integer variable occupies in memory?d)What is the minimum and maximum value a character variable can store?e)What is the minimum and maximum value a short-integer variable can store?f)What is the minimum and maximum value an integer variable can store?g)What range of values can be stored in a single-precision floating-point variable?h)Write a C program that bitwise displays the character value ‘A’ to the screen.i)Write a C program that bitwise displays theshort-integer value 167 to the screen.j)Write a C program that bitwise displays thesingle-precision-floating-point value 3.14to the screen
) Differentiate extern and register storage classes (at least on two parameters) taking suitable
example.
) Write function definition (recursive as well as non-recursive) to generate the following series up to
n numbers. The first two numbers are known.
1 2 6 16 44 120….
write function definition(recursive as well as non-recursive)to generate the following series upto n numbers.the first two numbers are known.
1 2 6 16 44 120.....
C PROGRAMMING

CREATE A PYRAMID:

EXAMPLE:

INPUT THE NUMBER OF ROWS: 3

*
***
*****
The National Earthquake Information Center has the following criteria to determine the earthquake’s damage. Here are the given richter scale criteria and their corresponding characterization. The richter scale serves as the input data and the characterization as output information. Use the ladderized if / else if / else conditional statement.
Richter Numbers (n) Characterization
n<5.0 Little or no damage
5.0>=n<5.5 Some damage
5.5>=n<6.5 Serious damage
6.5>=n<7.5 Disaster
higher Catastrophe
Write the steps of executing the statement: x = a++ + (b += x + y);

#include <stdio.h>

int main(void)
{
int a = 7, b = -9;
float x = 8.391, y = -32.0921;

x = a++ + (b += x + y);
x++;

printf("a = %d\n", a);
printf("b = %d\n", b);
printf("x = %f\n", x);
printf("y = %f\n", y);


return 0;
}
LATEST TUTORIALS
APPROVED BY CLIENTS