Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming
This answer was rated:

Hello I need some help. the following is what I have. It keeps

going me a error. Can...
Hello I need some help. the following is what I have. It keeps going me a error. Can you help me. It has to be turn in tonight at 1:00 am the latest.
There is an error at terminate program calling method.




This program creates the basic user interface code for that can be re-used in the following week’s iLab assignments. The assignment will help you get started using the programming environment and some practice with coding. You will also be able to re-use much, if not all, of the code in later assignments.

In order to reuse the code in the following weeks, you will include different parts of the program in the following three separate files within Visual Studio:
1. Program.cs will hold the Main method, which is the starting point for the program execution.
2. ApplicationUtilities.cs will hold the re-usable methods that provide the user information about the application.
3. InputUtilities.cs will hold the re-usable methods that will collect the user information.
Using the methods defined in these classes you will construct a program that prompts the user for the following:
1. Your name, which will be a string data type
2. Your age, which will be an integer data type
3. The gas mileage for your car, which will be a double data type

//Program Header
//Program Name: Basic User Interface
//Programmer: Albert Daniel
//CIS2247, Week 1 Lab
//Program Description: The following program takes what the user inputs.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class Lab1
{


static void Main(string[] args)
{

//Declaring variables
string input;
string name;
int age;
double galMileage;


DisplayApplicationInformation();

ApplicationUtilities.DisplayDiverDisplayDiver("Start Program");

DisplayDiver("Get Name");
name = GetInput("Your Name");
Console.WriteLine("Your name is " + name);

ApplicationUtilities.DisplayDiver("Get Age");
input = InputUtilities.GetInput("Your Age");
age = Convert.ToInt32(input);
Console.WriteLine("Your Age is " + age);

ApplicationUtilities.DisplayDiver("Get Mileage");
input = InputUtilities.GetInput("Gas Mileage");
galMileage = Convert.ToDouble(input);
Console.Writeline("Your car's mileage is " + galMileage);

//Call method to terminate program
TerminateApplication();





//The following displays the application information
public static void DisplayApplicationInformation()
{
Console.WriteLine("Welcome the Basic User Interface Program");
Console.WriteLine("CIS247, Week 1 Lab");
Console.WriteLine("Name: YOUR NAME");
Console.writeLine("This program accepts user input as a string, then makes the appropriate data conversion");
}

public static void DisplayDiver(string outputTitle)
{
Console.WriteLine("****************" + OutputTitle + "****************");
}

public static string GetInput(string inputType)
{
string strInput;
Console.WriteLine("Enter the " + inputType);
strInput = Console.ReadLine();
return strInput;
}

public static void TerminateApplication()
{
Console.WriteLine("Thank you for using the Basic User Interface program");
Console.WriteLine();
Console.WriteLine("Press any key to continue");
system.exit;
}
}
Show More
Show Less
Ask Your Own Programming Question
Answered in 1 minute by:
7/15/2013
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 9,151
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
Verified
Hello Welcome. Thank you for your question, I’m ATLProg and I’ll try to help you.
Ask Your Own Programming Question
Customer reply replied 4 years ago

Yes, I will rate you.

Please upload exact question text on wikisend.com

Do you have any word/pdf related to this question. If yes
Can you please go to www.wikisend.com and upload your file ? Once you do that you will get a page that has the "File ID" and "Download Link". Copy the "Download Link" or "File ID" and please paste it in your reply here
Ask Your Own Programming Question
Customer reply replied 4 years ago


I don't have any other question do you still want me to go to that site


 

Customer reply replied 4 years ago


i dont see anything different.

i am still on it
Ask Your Own Programming Question
Please download solution from

http://wikisend.com/download/789760/CIS247_Week1.zip

I hope i was able to assist you. If you are happy with my service please rate my service . If your are not 100% satisfied, please reply to me so that i can help you better. Please start your question with "For ATLProg only" to request me again


Please remember to
Steps to run the project
1. Right click on the .zip file and Unzip/Extract To the solution file. A zip file can be unzipped using Winzip or 7Zip. (7Zip can be downloaded for free from http://www.7-zip.org/)
2. Look for .sln file in the unzipped folder
3. Double click on .sln file to open the solution in Visual Studio.
4. Hit F5 to run the program.
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 9,151
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
Verified
ATLPROG and 87 other Programming Specialists are ready to help you
Ask your own question now
Ask ATLPROG Your Own Question
ATLPROG
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 9,151
9,151 Satisfied Customers
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

ATLPROG is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

9,151 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,109 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

789 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I have a homework assignment that is similar to one already
i have a homework assignment that is similar to one already posted but the assignment needs to have a gui and be in visual studio 2012 … read more
George Sibiya
George Sibiya
PhD
194 satisfied customers
I'm stuck on coding a calcButton in VB. Visual Studio
I'd like to have someone walk me through coding this button, I've got the rest of the form coded but I'm stumped on this one. … read more
George Sibiya
George Sibiya
PhD
194 satisfied customers
Just have a question with list box, visual studio 2015, I
I just confused with list box ,the question is select a workshop from one list box and a location from another list box … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I dont know how to write a program that reads in integers
I dont know how to write a program that reads in integers and counts the number of those integers that are less than the average in C++ … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
Working in Visual Studio 2017 - can't find definitive
Working in Visual Studio 2017 - can't find definitive instructions on how to print the form on my screen. The common instruction is to use PrintForm but I don't have that I have PrintDocument. Tried l… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
On Microsoft VIsual Studio C++ need it in a C++ code that
On Microsoft VIsual Studio C++need it in a C++ code that works also use the way that starts with hello world please make sure code worksNotice in the updated UML diagram that the Employee class is des… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
On microsoft visual studio C++ The only change to the
On microsoft visual studio C++ The only change to the Employee class is that there is a new attribute: +benefit : Benefit Notice that there is a "+" for this attribute, meaning that it is public. Make… read more
George Sibiya
George Sibiya
PhD
194 satisfied customers
I have my Visual Studio Program done, but I need to get it
I have my Visual Studio Program done, but I need to get it all under the same path location. All of the files in My Project need to be added to the original folder. So once that is done if you could s… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
OKRP55211 POSTANSWER I am using Visual Studio 2015 C++ on
OKRP55211 POSTANSWER Hi I am using Visual Studio 2015 C++ on Windows 10. I have a problem with missing symbols when I migrate a GITHUB multi-project solution into a single project. I built the origina… read more
Steve
Steve
Consultant
Bachelor
69 satisfied customers
I am having trouble getting the visual Studio,visual basic
I am having trouble getting the visual Studio,visual basic forms program that uses a local Access database to distribute to stand alone desktop computers with Windows operating system to run correctly… read more
George Sibiya
George Sibiya
PhD
194 satisfied customers
Just having trouble with an assignment, Visual Studio 15,
this is part of the question: For this coding exercise, write the Visual Basic code for a pretest loop that uses an Integer variable named intEven to display the even integers from 2 through 20 in the lblEven control. … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
OKPR114211 Does visual studio c++ has its own GUI (graphic
OKPR114211 Does visual studio c++ has its own GUI (graphic user interface) creator? or i have to use a different program?… read more
Steve
Steve
Consultant
Bachelor
69 satisfied customers
Windows 10 with Visual Studio 10. I have a project that
Windows 10 with Visual Studio 10. I have a project that compiles and builds on another machine. When I move the project to the Windows 10 machine, I get a message the "The project type is not supporte… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I have a question related to C# I am using visual studio
Actual i am looking for solution to a programming question, which is available in c++ but not in c# … read more
Satchi
Satchi
Bachelor\u0027s Degree
2,102 satisfied customers
You will need to create a console-based application whose
You will need to create a console-based application whose Main() method accepts ten integer values from the user and stores them in an array. Next, create a method that determines and displays the sma… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I need help, microsoft visual studio 2012, i have a problem
i need help JA: What programs and versions are you using? Customer: microsoft visual studio 2012 JA: What is your ideal outcome? How can we solve this for you? Customer: i have a problem and you solve… read more
ATLPROG
ATLPROG
Computer Software Engineer
9,151 satisfied customers
Assignment3_1.java - Write a console (all I/O via System.in
Assignment3_1.java - Write a console (all I/O via System.in and System.out) program that reads in two integer numbers and identifies if their sum is at least 3 times greater than their product. Print … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I have a SSIS 2014 Package created in Visual Studio 2013. I
I have a SSIS 2014 Package created in Visual Studio 2013. I have successfully performed a simple Data Flow from one table to another. I am now wondering how to apply additional logic: 1. Check for Exi… read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,109 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x