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

  Find number values that are between given range

Suppose the values from aaa.txt have been loaded into array Bob: find out the number values in Bob that are between 0 and 4 (not inclusive).

  Pseudocode for linear search by using clrs3e style

Write pseudocode for linear search by using CLRS3e style used in, which scans through the sequence, looking for v.

  Timer interrupt to coordinate peripherals on microcontroller

The timer interrupts to coordinate peripherals on the microcontroller. Use code from prior labs to drive the peripherals and will make minor modifications to use the interrupts.

  Write program to accept long integer number

Write down the program which contains function calories() which is to accept long integer number total and address of integer variables pizza, chips apples and mustard.

  Design the software architecture of a web auctioning site

Design the software architecture of a Web auctioning site and design a database for storing information about users, items, auctions and bids.

  Write program to evaluate young worker-s earning

Write down a program to evaluate how much young worker will make before retiring at age 65. Request worker's name, age, and starting salary as input.

  Create the gui for object-s processing methods

Create pseudocode for each of the classes. Create the GUI which will make the objects and give access to each object's processing methods.

  Program read weight of package of breakfast cereal in ounces

Write a program which will read the weight of package of a breakfast cereal in ounces and output weight in metric tons as well as number of boxes

  Prepare cron file to performs level dump every day

Prepare a cron file which will regularly perform the following backups: performs level 5 dump every day which neither a level 0 nor level 2 dump is performed.

  Draw and implement class which contains instance data

Draw and Implement the class called "Box" which contains instance data (all doubles) that represents height, width, and depth of the box. Also include boolean variable called "full" as instance.

  Write assignment statement with one arithmetic operator

Write a simple assignment statement with one arithmetic operator in some language you know. For each component of the statement.

  Important factors in the design of your application

What do you think will be the most important factors in the design of your application and what are the most important principles that you want to include in the design of your application?

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