Write a program that prompts for and reads an amount

Assignment Help Programming Languages
Reference no: EM13315450

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 <iostream> using std:: cout; using std::end1;00ithet04

int main() Pi<K=5N-04 k>.;

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

<tt- to >

Reference no: EM13315450

Questions Cloud

What is the net power radiated from the ball : A granite ball of radius 2.00m and emissivity of 0.450 is heated to 135 C whereas the ambient temperature is 25 C. What is the net power radiated from the ball
What rc-time-constant should the circuit have : An RC Flasher circuit uses a neon lamp that becomes highly conducting when the voltage applied to it reaches Vc = 90.0 V. What "RC-time-constant" should the circuit have?
Find the magnitude and depth of the point of application : Find the magnitude and depth of the point of application of the force on the circular gate shown (circular gate at an angle of 60 deg.) if h(distance from top of gate to top of water)=5ft. and D(length of the gate)=4 ft.
Find the minimum weight need to keep the gate closed : plane gate of uniform thickness holds back a depth of water. Find the minimum weight need to keep the gate closed. theta=30degrees L = 3m w = 2m
Write a program that prompts for and reads an amount : 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.
What is the decibel level of the street : On a workday the average decibel level of a busy street is 78 dB, with 100 cars passing a given point every minute. what is the decibel level of the street
Calculate the deflection and the manometer liquid is mercury : A hemispherical bowl of radius r connected to a U-tube of constant radius r. Initially the the bowl is empty and the air/manometer liquid interface in both legs is at the level of the bottom of the bowl.
What is its coefficient of performance : A refrigerator does 18 kj of work while moving 115 kg of thermal energy from inside the refrigerator. What is its coefficient of performance
Determine what power must be supplied by the pump : The length of the pipeline in the building is 60 m, the water temperature is 20.C, and the water pressure on the top floor must be at least 150 kPa. Will a booster pump be required for the building If so, what power must be supplied by the pump

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd