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

  Using a software program to create story books

submit a unit plan spanning Two to Four weeks. See this example of a unit plan, (or search the web for a unit plan example that best suits matches your needs). Technology should be integrated for assessment, instruction, and student engagement..

  Write parameterized function to play the game

Your program cannot use file level variables or constants; your program cannot use global variables or constants. The functions that you write exchange data by means of return statements and value parameters and reference parameters

  Write down the conditions which are not satisfied in program

Sequential program consists of the following five statements, S1 through S5. Considering each statement as separate process. Specify which of the three conditions is not satisfied.

  Program to input the assignment number

The program must prompt teacher to input the assignment number. Score for student for that assignment will be displayed.

  Explain the project manuals for python and java

Overview: Understand TCP socket programing by developing a (multi-threaded) Web server. You may use Python, Java, or C++ as the programing language. The project manuals for Python and Java are attached to this document, which have provided partial..

  Write a windows application in visual basic

The calculator allows a user to eater numeric values via the 0.9 keysibuttoas. Arithmetic functions such as. add. subtract. multiply.

  Construct a diagram using rationaleto map the arguments

Construct a diagram using Rationaleto map the arguments about a moral claim that you have identified in the article/case study

  Program to write variable declarations and function calls

Write a program whose main function is merely a collection of variable declarations and function calls. This program reads a text and outputs the letters, together with their counts.

  Pseudo code for recursive function to print prime numbers

Write in pseudo code the recursive function which receive 2 integers (a and b) and returns sum of all common prime dividers (1 is not prime).

  Program to calculate amount person would earn over a period

Write a program that calculates the amount a person would earn over a period of time if his or her salary is one penny the first day.

  Implement two different versions of file copy utility

You will implement two different versions of file copy utility, one by using read()/write() operations and one by using mmap(). You are only prmitted to use following system calls:

  Write techniques to ensure the site content is optimized

All Web pages is as small as possible without affecting the look and feel of the final product. What are some techniques to ensure the site content is optimized?

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