by CodeChum Admin
The square of an integer refers to the result of multiplying the integer with itself once. While the cube of an integer refers to the result of multiplying the integer with itself twice. As long as you know that, you could easily solve this!
Instructions:
Input
1. First integer
2. Second integer
3. Third integer
Output
The first three lines will contain message prompts to input the three integers.
The last line contains "Positive" or "Negative"
Enter the first integer: 1
Enter the second integer: 2
Enter the third integer: 3
Positive
Enter the first integer: 1
Enter the second integer: -5
Enter the third integer: 4
Negative
Create a C program to find the total number of of illiterate men and women from the population in the town.If the percentage of men is 54 from the population, and total literacy is 80% from the population.Then the total population is input to the keyboard.
Write a C program to count the number of non-zero elements and sum of upper triangular
in a two-dimensional matrix using function. [Hint function should accept 2D array as
argument.]
write a c program to define a structure called a car. the member elements of the car structure are model(like bmw, ford...etc), production year (1999,2020,...), and lastly price. create an array of 10 cars. get input for all 10 cars from the user. then the program display complete information (model, year, price) of those cars only which are above 250000 in price or production date bigger than 2000.
by CodeChum Admin
We’ve tried adding together integers, so how about adding characters as well? Well, we can’t do that with the knowledge we have now, so let’s use placeholders to do the trick!
Instructions:
Input
1. First character
2. Second character
Output
The first two lines will contain message prompts to input the two characters.
The last line contains the two characters together.
Enter·the·first·character:·A
Enter·the·second·character:·B
AB
by CodeChum Admin
Now that we're done with integers, we're moving on to decimals!
Instructions:
Input
1. First decimal number
2. Second decimal number
3. Third decimal number
Output
The first three lines will contain message prompts to input the three decimal numbers.
The last line contains the result in two decimal places.
Enter·the·first·number:·1.53
Enter·the·second·number:·2.25
Enter·the·third·number:·1.23
Result·=·2.80
write a program to define a structure called a car. the member elements of the car structure are model(like bmw, ford...etc), production year (1999,2020,...), and lastly price. create an array of 10 cars. get input for all 10 cars from the user. then the program display complete information (model, year, price) of those cars only which are above 250000 in price or production date bigger than 2000.
very urgent pls help me....
How to retrieve even lines(questions) and odd lines(answers(true/false)) from text file into 2D string array in C
Write a simple application to conduct a computer based quiz. The quiz consists of questions with answers true or false only. Suppose the questions are present in a text file Questions.txt, in the following format:
First line of the file consists of the number of questions present in the file and the rest of the file consists of the question followed by answer in separate lines. Your program should display questions one by one, and prompt the user to enter his answer, at the end display the score of the user. And also display the questions the user has wrongly answered along with the correct answer. (You can assume that each question is of length at most 80 characters). Use command line arguments to provide the text file to the program.
A sample Questions.txt file:
3
There are one thousand years in a CENTURY.
False
DOZEN is equivalent to 20.
False
The past tense of FIND is FOUND.
True
Create pseudocode and flowchart to find the total number of illiterate men and women from the population of 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 percent of the population,then the total population is input through the keyboard.