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 a program to make the ssds function

Write a program to make the SSDs function as a MM:SS real-time clock. Hint: You must not use a single delay routine for the one second delay because that will not allow for persistence of vision. The displays need to be constantly refreshed during ev..

  A program that takes into account a pre given array

Problem: A program that takes into account a pregiven array and prompts the user to enter a return per minute value.

  Using opengl to create a cube

Write a program in C/C++ using OpenGL to create (without using built in function) a cube by implementing translation algorithm by translating along 1. X-axis, 2.Y-axis and 3. X and Y plane

  The array is sorted except the first one

the array is sorted except the first one

  Declare a pointer to an array of 500 school

In a main() demonstration function, declare a pointer to an array of 500 School objects and include code to handle any memory allocation errors that occur. in a loop, declare 500 array objects at a time, continuing to rewrite the main() functions ..

  You have just upgraded your system

You have just upgraded your system to a "fast and wide" SCSI interface. This system has a floppy disk, a CD-ROM and five 8-gigabyte fixed disks. What is the device number of the host adapter? Why?

  Implement recursive algorithms using a stack

Show the difficulties of the added complexity and which of the two sorts is easier to implement nonrecursively? Why?

  Write a program in which the user is prompted

Write a program in which the user is prompted for the number of values that they will be entering. The user then enters that number of integers into an array

  Create huffman codes

Write a C++ program to create Huffman codes. Program input is a file called freq.txt (make up your own file for testing) that contains data on the characters in some cleartext file in the form of each character's non-zero frequency of occurrence i..

  Value referenced by the pointer.

Add 10 to the value referenced by pointer switch.Add 4 to the address stored in pointer switch.Subtract 5 from the value referenced by the pointer.

  Write in c++. read an inputfile.txt

write in C++.  read an inputFile.txt which contains integers that are virutal addresses, and I am suppossed to translate that into physical addresses using a page table and a transition lookaside buffer

  Write a recursive and iterative versions of binary search

in C++ write a recursive and iterative versions of binary search and compare their run times using the array a[i]=i, i=0,..., n-1

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