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

if the percentage of men is 54 from the population and total literacy is 80% from the population.Take note that the total literate men are 30 percent of the total population.


Reading 10 integers between 0-100 and counts how many of the are larger than 50 and displaying the result

Create a simple C program and use a comment to identify the five basic structures of the c programming language.

Create a C program to find the total number of illiterate men and women from the population of the town.if the percentage of men is 54 from the population, and total literacy is 80% from the population.Take note that the total literate men are 30% of the population

Write a C Program which converts Binary Number to Decimal and vice-versa. Your program must contain two functions. You have to ask the choice for the user if he/she enter 1 you have to work with BinToDec function if the choice is 2 you have to work with DecToBin function. Both functions take the number in int main part and you have to print the answer in int main part.




Given an input string “Ayodhya”, your C program should count the number of vowels and consonants

and print the frequency of occurrence of each vowel and consonant. Delete the vowels in the same

input string and display the updated string.



1

(a)Read a matrix of order M X N

(b)Display the matrix of order M X N.

(c)Write a function check Palindrome which takes as a parameter an integer and returns true if its palindrome and false if not.

(d)Use the above function to replace all palindrome numbers in the given

matrix by 1

’(e) Display the resultant in matrix form.




The government’s quest to fight COVID-19 has led to the establishment of a PPE production factory in the Greater Accra region. The factory is classified as a high-risk working environment and the workers are paid an hourly rate of GHs 30 for regular hours per week and any extra hours are paid one and one-half times that. A total of 40 hours should be the normal hours and a maximum of 20 overtime hours for a week. From the worker’s gross pay, 6% is withheld for social security. 7% is withheld for tax and 3% is held for union dues. If the worker has dependents, the government pay 5.5% of the weekly wage per dependent up to 3 dependents into an insurance account. Write a program that will:

a)     Request for the number of hours worked in a week, and the number of dependents.                                                                                              

3. Float Count-off


Counting off a list of float numbers is hard when you speak it, but not when you code it! Don't believe me? Then let's try coding just that!


Instructions:

  1. An array containing 30 predefined float values are already provided for you in the code editor. Print each of the element out in separate lines, starting from the last array element down to the first.
  2. Each outputted value must also only show up to two decimal places.

Output

Multiple lines containing a float number.

2.41
143.00
3.14
3.12
0.00
-321.12
-414.12
12312.10
4.10
2.42
.
.
.

Counting Num


by CodeChum Admin



To give you more of a challenge with a number's digits, let's try counting how many of a certain digit is present on a given number.





Let's start coding!





Instructions:



Input two integer values. The first one shall accept any integer from 0-9 and the other one shall take a non-zero positive integer.


Using a while loop, count how many of the first integer (0-9) is present in the digits of the second inputted integer and print the result (see sample input and output for example).


Tip #1: You have to use your knowledge from the previous problems in looping through the digits of a number: % 10 to get the rightmost digit, while / 10 to remove the rightmost digit. Make sure to solve the previous problems first.


Input



A line containing two integers separated by a space.



2·124218


Output



A line containing an integer.



2

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS