Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education