© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
R. VystavělC# Programming for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-7147-6_10

10. Economic Calculations

Radek Vystavěl1  
(1)
Ondřejov, Czech Republic
 

In this chapter, you will learn how to count money. It’s pretty simple, but you need to use some common sense.

Currency Conversion

Performing simple economic calculations usually means doing currency conversions , which you will try in this section.

Task

After accepting an amount in euros and the euro exchange rate, you will convert the amount to dollars (see Figure 10-1).
../images/458464_2_En_10_Chapter/458464_2_En_10_Fig1_HTML.jpg
Figure 10-1

Converting to dollars ...

Get C# Programming for Absolute Beginners: Learn to Think Like a Programmer and Start Writing Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.