C++ Answers

Questions answered by Experts: 9 913

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

  1. Input five integers in one line, with each integer separated by a space.
  2. Add the 1st and 2nd integers together and store the sum inside a variable.
  3. Add the 3rd and 4th integers together and store the sum inside a variable.
  4. Multiply the two sums and raise the product result to the power of the 5th integer.
  5. Print out the result.

Input three decimal numbers in one line separated by spaces, and make sure to store them in different variables.



Multiply the 1st and 2nd decimal numbers, and store the product into a variable.



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.


Your task is to write array implementation of a list with the following functions


Insert


Delete


Search


Sort


Note:No global declarations

Create a class called STRING, the class has two private member str and size of String and int type respectively. Provide a copy constructor for the class that initialize objects with other object. Write member function for the class that show the string and size for each object. 



The following are the assumed existing equivalent currency rates corresponding to the US dollar ($1.00); Australia (Aus $), 1.09; Hong Kong (HK $), 7.81; Indonesia (Rupiah), 990.41; Japan (Yen), 234.93; Malaysia (Ringgit), 2.34; Philippines (Peso), 13.80. Prepare a program that will accept US dollar and currency to be converted as inputs, then compute the equivalent in the chosen foreign currency. Print the results.

 

(Use switch statement.) 


write program link list insert midle and delete ?

Make following patterns using loops. Do not hard code anything.

i)


|......|....................|

|......|.......***....*.....|

|......|......**....*.*.*...|

|......|.....**.....*...*...|

|......|......**............|

|......|........***.........|

|......|....................|


ii)

1

232

34543

4567654

567898765

4567654

34543

232

1


2 1234567654321

12345654321

123454321

1234321

12321

121

1


iii)

1 *

**

****

***********

*** ***

** **

* *


2

-.*

-.*-.*

-.*-.*-.*

-.*-.*-.*-.*

-.*-.*-.*-.*-.*


What will the value of the answer variable be after the code segment below has been run.

int answer; 

int number3 = 32, number7 = 66; 

 

answer = number3 / number7;


What will the value of the result  variable be after the code segment below has been run.

int result; 

int number1 = 9, number8 = 11; 

 

result = number1 * number8;


What will the value of the result variable be after the code segment below has been run. 

  

  

 bool result ; 

 int number3 = 18, number7 = 22, number11 = 41; 

  

 result = number3 < number7 || number3 == number11 ; 




LATEST TUTORIALS
APPROVED BY CLIENTS