Create an interface that acts as a simple two number

Assignment Help Computer Engineering
Reference no: EM132178386

ONLY VISUAL STUDIO C# CONSOLE APPLICATION

(NO JAVA CODING)

In this part of the assignment, you are required to create a C# Console Application project. The project name should be A3<FirstName><LastName>P2. For example a student with first name John and Last name Smith would name the project A3JohnSmithP2.

Write a C# (console) program to create an interface that acts as a simple two number calculator. Your program should continue doing calculations until it is closed or exited.

Instead of a GUI keypad, this calculator will use console input to accept the two numbers to be used in the calculation. This calculator needs to prompt the user for ONE selection of any of these simple math operators: plus, minus, multiply, or divide. Three (3) inputs will need to be prompted: one for the selected mathematical operation, one for the first input, and one for the second input.

The output will be displayed when the mathematical operation is known and the two inputs (numbers) are entered. The output will not be editable by the user. After the calculation is executed, the application will display error messages (or other status message), and can be as you deem appropriate.

This calculator will handle all errors using try/catch statements. The error message output should display at least 3 different types of error (or status) messages, depending on what the user has done incorrectly. Your program should be able to catch all possible errors the user may do, it should not crash.

Reference no: EM132178386

Questions Cloud

What are three possible graphs that can be used : R provides a number of graphical tools to visually analyze and represent data. What are three possible graphs that can be used to represent your data?
Display each square on a separate line in the the control : Unzip and open the Odd Squares Solution\Odd Squares Solution.sln file. Code the Display button's Click event procedure so that it displays the squares.
Important aspect of both system security : Keeping the critical patches current is an important aspect of both system security and system administration
Build a login screen which will be passed : Build a login screen which will be passed an id and password. If the user fails to login in three tries, have them authentic based on their personal information
Create an interface that acts as a simple two number : Create an interface that acts as a simple two number calculator. Your program should continue doing calculations until it is closed or exited.
Predicts the value of a target feature : What method of machine Learning can "predicts the value of a target feature for each observation, based on the values of other features"
It security and policies : Assume that you are working in a company and your company's assets have been attacked by hybrid malware. What is hybrid malware?
Distribute a document electronically : Which of the following is an option to distribute a document electronically?
Statements about blockchain cryptography : Find all correct statements about blockchain Cryptography

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd