Questions: 11 448

Answers by our Experts: 10 707

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

  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, with 2 decimal places.


Input

A line containing three decimal numbers with two decimal places separated by a space.

1.53·2.25·1.23

Output

A line containing the result with two decimal places.

2.80
  1. Input two integers (one per line) and make sure to store them in variables.
  2. Add the two integers and print out their sum!




  • A) Create a function called To_Celsius that takes in a temperature in Fahrenheit temperature and returns the equivalent in Celsius.
  • B) Create another function called To_Fahrenheit that takes in a temperature in Celsius and returns the equivalent in Fahrenheit.
  • C) Use these functions to write a function called Print_EQ_Temps that prints out the Fahrenheit equivalents of all Celsius temperatures from 0°-100°, and the Celsius equivalents of all Fahrenheit temperatures from 32°-212°. Then, call this function in your program.


Hint: Use for loops to input into your functions.


How to can write a C++ program that will print the following shapes.


A.


*


***


*****


*******


*********


B.


*


***


*****


***


*

Given an equation x1 + x2 + · · · + xn = k, where k is a

constant, and x1, x2, . . . ,xn are nonnegative integers (which are considered

as variables in the equation), list all the solutions. Write a C

or C++ program to solve this problem. The input is a pair of integers

(n, k) with k 


Define and initialize five arrays of integer types each having 6 elements and an array of pointers p of size 5. Store the starting address of each array to an array of pointers p. Design and call the function and initialize the values of these five arrays randomly using for loop and p inside this function. we can consider p as a 2D matrix. However, in that case, our number of rows (Which were 5 as there were 5 arrays stored in p) and the number of columns (which were 6 as each array had 6 elements) were fixed. In this question, your goal is to sort all data in the 2d array.


Write a program to demonstrate the use of pointer to pointer. Make a list of characters (a word) by char *word, another list of words (a sentence) using char **sentence. Print the sentence using a double pointer.


Make a C++ program using do while loops that will print this output:


*

**

***

****

*****


Make a c++ program using nested loop that will display this output:


11 12 13 14 15

11 12 13 14

11 12 13

11 12

11


Make a c++ program that will print the given output using do while loop.




Output:



5



6



7



8



9

LATEST TUTORIALS
APPROVED BY CLIENTS