Imagine that you are working in the production industry which produces leather shoe, for each pair of shoe your job is to label it using serial number given to you.
Assume that the serial number starts from 1 to 1000. But the serial number contains the repetition of the some number. Now your task is to identify the total number of repetition numbers in the serial list. Write a C program to provide the solution using array concept.
Test data:
The number of elements to be stored in the array is: 10
Enter the elements in tha array:
element 0: 1
element 1: 2
element 2: 3
element 3: 1
element 4: 4
element 5: 5
element 6: 6
element 7: 2
element 8: 5
element 9: 7
Expected output:
The count of repetition elements found in the array is: 3
An e commerce company is planning to give a special discount on all its products to its customers for Ch holiday
Write a c program that must perform the following functionality in the main function declare a 3×5 array of a whole number, separetely prompt the user to enter 5 whole numbers using for row one using a FOR loop, separetely prompt the user to enter 5 whole numbers using WHILE loop, Multiply the elements in row one in with the elements in row two and updated to row three of array using a DO WHILE loop then use a IF statement to determine if the product is an even or odd number and then print out the number followed by whether is even or odd
Write a C program that performs arithmetic’s operation with fractions using four different functions (for addition, subtraction, multiplication and division). Use two integer variables to represent the numerator and the denominator as arguments to the functions. The functions should perform the following:
Printing Rational numbers in the form "a/b" where "a" is the numerator and "b" is the denominator.
In your function to print the Rational number, when the denominator is equal to zero, it must show the error message "DIVIDE BY ZERO ERROR!!!" Otherwise, print the Rational number in the required format.
Contest Teamld: AME1481
oblem Statement
lex likes to play with numbers. She gave you an integer N
Your task is to find the number of positive integers less than or equ al to N that have an odd number of digits
For example 143 contains 3 digits it satisfies the condition, whereas 32 has 2 digits does satisfy the condition.
Input Format
The first line contains a single integer N.
1≤N≤100000
22
mat
write a code: titled by 5, 10, 20 angles
(RGB LED) whereby the colour changes based on the tilt angle at the intervals specified.
Write a code:
(LDR) is to be used to check if the load is positioned in the egg holder 6 and a visual indicator (LED) must specify the status.
A MPU6050 accelerometer is to be used to determine if the vehicle is level or titled by 5, 10, 20 and 30 degrees in X or Y direction.
Write a code for:
An audible warning is required when the angle exceeds 30 degrees.
by CodeChum Admin
We all know what man's best friend is. A dog! 🐶
Let's create one in our program using the pre-existing struct Dog provided.
Instructions:
Write a program that works with fractions. Your program should be able to add,
subtract, multiply, and divide two fractions. Write a separate function for addition,
subtraction, multiplication and division. Specifically, your program must request
two fractions from the user, getting the numerator and denominator separately for
each fraction, and the operation to perform (add, subtract, multiply, or divide).
Your program will then compute the resulting fraction, keeping the numerator and
denominator separate, and output the result.
Note:
Make the structure for fractions. Then declare variable of fractions and use
them for addition and multiplication etc....