Write a program that will convert us dollar amounts

Assignment Help C/C++ Programming
Reference no: EM13185949

1. Write a C++ program to display the following sum

4 +8+12+16+20+24 +...+404

2. Write a program that will convert US dollar amounts to Canadian dollar (1 CND = 0.92 USD). Format your currency amounts in two decimal places and trailing zeros. Sample output:

Enter the amount of US: 5.6
$5.60 US is equal to $6.09 Canadian

3 A country club, which currently charges $240 per year for membership, has announced it will decrease its membership fee by 4% each year for the next six years. Write a program that uses a loop to display the projected rates for the next six years.

Sample output:

Membership for year 1: $aaaa.an

Membership for year 6: $ffff.ff

Reference no: EM13185949

Questions Cloud

Explain what is the perecent of nacl by mass in the sample : A smple of mixture of NaCl, Caco3 and SiO2 weighed 7.30 grams. During the water wash the sample lost 2.21 grams. After treatment with HCL, the sample weighed 2.05 grams. a. What is the perecent of NaCL by mass in the sample
Will the firm earn positive economic profits : For a particular good that is monopolized, the monopolist faces the following demand and cost conditions: P= 12 - 2 qd MR= 12-4qd MC= 2 q a) What price will the firm charge its customers b) Will the firm earn positive economic profits
Explain a method of preparing a very pure alkane is to react : A method of preparing a very pure alkane is to react the corresponding alkyl magnesium halid (grignard reagent) with water and collect the alkane product.
Estimate the maximum error in the calculated surface area : The circumference of a sphere was measured to be 86000 cm with a possible error of 050000 cm. Use linear approximation to estimate the maximum error in the calculated surface area.
Write a program that will convert us dollar amounts : Write a program that will convert US dollar amounts to Canadian dollar (1 CND = 0.92 USD). Format your currency amounts in two decimal places and trailing zeros.
Sate a smple of mixture of nacl : A smple of mixture of NaCl, Caco3 and SiO2 weighed 7.30 grams. During the water wash the sample lost 2.21 grams. After treatment with HCL, the sample weighed 2.05 grams.
Explain aufbau filling principles : Based on Aufbau filling principles, chromium would be expected to have the following configuration [Ar]4s^23d^4. but the configuration is actually [Ar] 4s^13d^5. Wrtie a brief statement explaining why this alternate configuration is the known con..
What is the present discounted value of this payment : Jethro has been promised a payment of $1000, which is to be paid exactly 8 years from now. He is completely certain that the payment will in fact be made. Jethro believes that the appropriate discount rate is 5% per year, and that this will contin..
What is the maximum number of trees : If each ton of rock costs $70, each plant is $20, and each tree is $74, what is the maximum number of trees you can buy with a budget of $2,500? Write an inequality that illustrates the problem and solve.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write program to input series of hourly temperatures

Create and write a c++ program which inputs series of 24 hourly temperatures from file, and outputs bar chart (using stars) of temperatures for the day.

  Write a program that reads numbers

Write a C++ program that reads N positive numbers from the keyboard, calculates and shows the smallest number of all numbers

  Opportunity to work with both c style strings

The focus of this lab is on using strings. You will have an opportunity to work with both C style strings and the string data type. This lab also gives you an opportunity to use what you have learned previously

  Difference between a constant pointer

Explain the difference between a constant pointer to non-constant data and a non-constant pointer to constant data. Show the syntax to declare them.

  Include the iostream, fstream, string, and cctype libraries

1. Include the iostream, fstream, string, and cctype libraries in your program.

  The second argument to the function is the string

The function fnUserBinaryInputX has 2 input arguments, each is a string. The first string is the "prompt" string displayed to the user when asked to enter a string. The second argument to the function is the string to compare the user entered stri..

  What constructors do and when they are executed

Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constru..

  Define two derived classes of the abstract class

Define two derived classes of the abstract class ShapeBase below. Your two classes will be called RightArrow and LeftArrow. These classes will draw arrows that point right and left,

  Guessing game

In C++ develop a "guessing game" where the computer and the user alternatively guess the value of a randomly selected secret number between 1 and 99 (or any other maximum value). Initially, the computer selects the random number, and the user make..

  Illustrate example from ansi c programming language

Illustrate example from ANSI C programming language, without using nested procedures, to show the fact that "assignment-by-sharing in conjunction with quasi-dynamic object binding

  An expression whose value depends upon the evaluation

Give an example in C++ of an expression whose value depends upon the evaluation order. Show the orders that produce different values and the values they produce. Explain what side effect is the expression contains.

  Write program using c language to find page fault

Write program using c language to find page fault for individual processes, group of processes and system as whole using following system call int sys_pgfltstats(pid_t pid,int flag,pf_info_struct *info).

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