Write a program that prompts for and reads an amount


1. Write a program that prompts for and reads an amount (integer) for Canadian dollars and convert the amount to Euros. The exchange rate is 1

Dollar = 0.7337 Euros. Round your currency amount in two decimals.

Then outputs a list of Euros from the corresponding 1 dollar to the number you input. Sample output:

Enter amount for Canadian dollars: 4

Amount for Canadian dollars   Amount for Euros
1                                         0.73
2                                         1.47
3                                         2.20
4                                         2.93

 

2. I U. for loop to write a C++ program to compute the folio.ng sum and print the result.

6+9+12+15+18+21+...+99

3. What output would be produced by the following lines? Write your answer here:

Ad' 4rwr 0))>.3> <0,)>- > >

C< >

#include using std:: cout; using std::end1;00ithet04

int main() Pi.;

int i = 1;

while ( 1 <= 4)

for (int cout << 8; << k 3) k k =1; 

k < Cjacf « i 4-= NN << i++; <1 > cout << endl; < 2 4 }

return 0; < 7

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a program that prompts for and reads an amount
Reference No:- TGS0654130

Now Priced at $40 (50% Discount)

Recommended (98%)

Rated (4.3/5)