Question
Write a program to convert currencies between British currency of pounds and pence, in which 1 pound contains 100 pence, and U.S. currency in dollars
Write a program to convert currencies between British currency of pounds and pence, in which 1 pound contains 100 pence, and U.S. currency in dollars and cents. Assume an exchange rate of 1.45 U.S. dollars per British pound. Display a menu like the following:
Convert from British currency to U.S. currency
Convert from U.S. currency to British currency
Exit
When the user chooses 1, prompt the user to enter two numbers representing British pounds and pence, converts to an equivalent number of U.S. dollars and cents, and output the result.
When the user chooses 2, prompt the use to enter two numbers representing U.S. dollars and cents, converts to an equivalent number of British pounds and pence, and output the result.
When the user chooses 3, terminate the program. Program should continue until the user picks 3.
Console.WriteLine (output); 42 public static void EnglishToMetric) { Console.WriteLine("Converting from yds,ft,in to meters"; 45 46 47 /Gives the user three choices public static void Main() f 50 51 52 choice 10 . Get Int(" Choose : " + 1. Convert from meters to yds,ft,in '" + "2. Convert from yds,ft,in to meters " ui 54 switch (choice)f case 1: 56 57 MetricToEnglish); break; case 2: EnglishToMetric) break; 60 61 62 63 64 65 case 3: Console.WriteLine("Bye, Have a nice day" break; } while (choice != 3); 67Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started