programming With microsoft Visual Studio 2010? One of your smaller customers needs your help writing a program. Your customer has an e-commerce Web site but wants to avoid being sued for allowing children to make purchases without the authorization of their parents. Using the 6 steps of problem solving, create a program to verify the age of a customer wishing to make an online purchase. The customer will enter his or her year of birth, and your program will calculate whether the customer is more than 18-years old. The program will then display a message to the customer that his or her purchase request is accepted or denied.
Your solution must include the following 5 parts in addition to the coded solution:
A problem analysis chart with each of the following sections:
Processing required to obtain the results
A flowchart showing the program processing flow
A chart showing input, output, and processing
An algorithm in pseudo code describing the steps the program will perform
A description in 4â6 paragraphs of how each of the 6 problem-solving steps was addressed
What you read above is an idea of what I have to do? What is shown below is what I have so far? However, I am stuck with being able to code the rest of the program for it to calculate whether the person is 18 years of age or not. Right now it is in the Console Application with no errors. Can anyone assist me in writing the rest of the codes? Please?
Console.Out.WriteLine(“Please enter the year you were born”);
Int32 age = DateTime.Now.Year – Convert.ToInt32(Console.ReadLine());if(age>18)
Console.Out.WriteLine(“You are approved to make a purchase.”);else
Console.Out.WriteLine(“You are not approved to make a purchase.”);
Is the code above enough for this homework? I have already done all the charts and layout, just unsure if this is all that’s needed for the code.