1. Create a new C# Console Application (.Net Framework)
2. Add a static class UserMessages.cs with the following Static Methods
string GetWelcomeMessage() - This method will return a simple greeting. Call this method from main and display the greeting.
string PromptProductBrand() - This method will return a prompt message. Call this method from main and display the message prompting the user to input a product brand. Store the user input in a variable
string PromptProductModel() - This method will return a prompt message. Call this method from main and display the message prompting the user to input a product model. Store the user input in a variable
string PromptProductPrice() - This method will return a prompt message. Call this method from main and display the message prompting the user to input a product price. Store the user input in a variable.
decimal ParseNumber(string input) - This method will take a string as a parameter and return a decimal parsed from the string. For now, you may assume that the user did in fact input a number. Use this method to convert the price to a decimal and return the value to main. Store the decimal in a variable.
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through PayPal, Buy me a Coffee
or Cryptocurrency.
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.