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

Sum Cubes

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:

  1. Input three integers and compute the cubes of each of them.
  2. Check if the sum of the cubes are positive. If it is, print out "Positive", and if not, print out "Negative".

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.



5. Input Combination

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:

  1. Input two characters in one line, separated by a space.
  2. Make the characters be printed out like it’s concatenated by printing it without spaces in between using placeholders. Refer to the sample output for your reference.
  3. In your scanf, don't forget to add a space in between the two placeholders for the characters because if you don't, the character that will be scanned for the second variable would actually be the space in between the two characters (because a space is also a character).

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


Decimal x Decimal

by CodeChum Admin

Now that we're done with integers, we're moving on to decimals!


Instructions:

  1. Input three decimal numbers in one line separated by spaces, and make sure to store them in different variables.
  2. Multiply the 1st and 2nd decimal numbers, and store the product into a variable.
  3. Then, divide the product of the 1st and 2nd decimal numbers with the 3rd decimal number, then print out its quotient.

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.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS