Create a simple currency converter that converts the user’s input from US Dollars (USD) to British Pound (GDP) DELIVERABLES Required elements of application A message to prompt user input A fixed variable that stores the most recent exchange rate of the British Pound (£) User input (variable) should be used to calculate the exchange rate and display it back to the user. For the above Assignment, the below Visual basic programming code is not running what could be the problem Public Class Form1     Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load         Main()     End Sub     Public Shared Sub Main()     End Sub     Module CurrencyConverter     End Module     Public Module CurrencyConverter         Sub Main()             'Here it can be define as we Prompt user for input             Console.WriteLine("Enter the amount in US Dollars (USD): ")             Dim usds As Double = Convert.ToDouble(Console.ReadLine())             'Here it can be define as we Exchange rate of British Pound (£)             Dim exchangeRates As Double = 0.73             'Here it can be define as we Convert USD to GBP

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.3: Interactive While Loops
Problem 9E: (Misc. application) a. The data in the following chart was collected on a recent automobile trip:...
icon
Related questions
icon
Concept explainers
Question

Create a simple currency converter that converts the user’s input from US Dollars (USD) to British
Pound (GDP)
DELIVERABLES
Required elements of application
A message to prompt user input
A fixed variable that stores the most recent exchange rate of the British Pound (£)
User input (variable) should be used to calculate the exchange rate and display it back to the user.

For the above Assignment, the below Visual basic programming code is not running what could be the problem

Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Main()
    End Sub
    Public Shared Sub Main()

    End Sub

    Module CurrencyConverter

    End Module
    Public Module CurrencyConverter
        Sub Main()
            'Here it can be define as we Prompt user for input
            Console.WriteLine("Enter the amount in US Dollars (USD): ")
            Dim usds As Double = Convert.ToDouble(Console.ReadLine())
            'Here it can be define as we Exchange rate of British Pound (£)
            Dim exchangeRates As Double = 0.73
            'Here it can be define as we Convert USD to GBP
            Dim gbps As Double = usds * exchangeRates
            'Here it can be define as we Display the converted amount to the user
            Console.WriteLine("Converted amount in British Pound (GBP): " & gbps.ToString("0.00"))
            'Here it can be define as we Wait for user input before closing the console window
            Console.WriteLine("Press any key to exit...")
            Console.ReadKey()
        End Sub
    End Module
End Class

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning