In: Computer Science
Please do in C#.Program 1: I’m buyin’ a Ferrari! If you’ve ever travelled to another country, you know that working with different currencies takes a while to get used to. As of the date of making this assignment, there are 9,240.00 Guinean Francs to $1 USD. For this program, design (pseudocode) and implement (source code) a program that prompts the user for the amount of U.S. currency they have, and converts it into Ginean Francs. Document your code and properly label the input prompts and the outputs as shown below.
using System; class MainClass { public static void Main (string[] args) { double rate = 9240.00; double usd, francs; Console.WriteLine ("Enter USD that you have: "); if (double.TryParse(Console.ReadLine(), out usd)) { francs = usd * rate; Console.WriteLine (usd + " USDs are equal to " + francs + " Francs."); } else { Console.WriteLine ("Invalid input."); } } }
************************************************** Thanks for your question. We try our best to help you with detailed answers, But in any case, if you need any modification or have a query/issue with respect to above answer, Please ask that in the comment section. We will surely try to address your query ASAP and resolve the issue.
Please consider providing a thumbs up to this question if it helps you. by Doing that, You will help other students, who are facing similar issue.