Question

In: Computer Science

Please do in C#.Program 1: I’m buyin’ a Ferrari! If you’ve ever travelled to another country,...

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.

Solutions

Expert Solution

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.


Related Solutions

IN C++ LANGUAGE PLEASE::: I’m buyin’ a Ferrari!  If you’ve ever travelled to another country, you know...
IN C++ LANGUAGE PLEASE::: 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) aprogram that prompts the user for the amount of U.S. currency they have, and converts it into Ginean Francs.
C++ tree program (please do NOT use struct Node, use classes) Program 1 Implement a Binary...
C++ tree program (please do NOT use struct Node, use classes) Program 1 Implement a Binary tree using an array Program 2 Implement a tree using linked list - pointer Binary Tree Program 3 - Convert program 1 to a template (include screenshots please of output)
C++ tree program (please do NOT use struct Node, use classes) Program 1 Implement a Binary...
C++ tree program (please do NOT use struct Node, use classes) Program 1 Implement a Binary tree using an array Program 2 Implement a tree using linked list - pointer Binary Tree Program 3 - Convert program 1 to a template
C++ Program: Write another program (in C++) that will allocate a local static array of integers...
C++ Program: Write another program (in C++) that will allocate a local static array of integers and then a dynamic array of integers. Are they stored next to each other? You can examine this by examining the memory addresses where they are located. As described in class, on some systems the size of a dynamic array is actually stored in the bytes previous to a dynamically allocated array. Through some experiments on your own, try to see if this is...
1. Can you understand the emotions of another person? Do you ever find your emotions challenging...
1. Can you understand the emotions of another person? Do you ever find your emotions challenging to understand? Give example. 2. Research suggests that happiness has many good consequences, but other research describrs the benefits of defensive pessimism. Do these lines of research contradict each other, or could they both be right? Explain your answer.
Please use C language and use link list to do this program. This program should ask...
Please use C language and use link list to do this program. This program should ask user to enter two fraction polynomials. Then user chocie if he want add it or multiple it. I need you please to test it to see if it work with these two fraction polynomials 1-  Left Poly Pointer: 1/1x2 + 3/4x + 5/12 2-Right Poly Pointer: 1/1x4 – 3/7x2 + 4/9x + 2/11 AND AFTER ADDING 3- Resulting Poly Pointer: 1/1x4 + 4/7x2 + 43/36x...
Write a program in c++ to do the following : (1) Declare an array a of...
Write a program in c++ to do the following : (1) Declare an array a of size 10 and three pointer variables p, q, and v. (2) Write a loop to fill array a with values 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 (3) write following statement: p= &a[2]; q = &a[5]; i = *q - *p; cout<<“The value of i is”<< i; i = *p - *q; cout<<“The value of i is %d”<< i; 4) assign...
C++ Vectors. Create a program do the following in the program: 1. declare an vector without...
C++ Vectors. Create a program do the following in the program: 1. declare an vector without specifying the size 2. use push_back to add random integers between 100 and 999 to the vector 3. write a function that returns the smallest, largest, and average of the numbers in the vector display the smallest, largest, and average of the numbers in the vector
Please C++ create a program that will do one of two functions using a menu, like...
Please C++ create a program that will do one of two functions using a menu, like so: 1. Do Catalan numbers 2. Do Fibonacci numbers (recursive) 0. Quit Enter selection: 1 Enter Catalan number to calculate: 3 Catalan number at 3 is 5 1. Do Catalan numbers 2. Do Fibonacci numbers (recursive) 0. Quit Enter selection: 2 Enter Fibonacci number to calculate: 6 Fibonacci number 6 is 8 Create a function of catalan that will take a parameter and return...
1. In what ways do financial standards differ from one country to another? 2. What has...
1. In what ways do financial standards differ from one country to another? 2. What has been the impact of the key provisions in the Sarbanes-Oxley Act on the way in which financial reports are currently done?  
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT