UrbanPro
true

Take BCA Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

For All The New Developers

R
Rajat Taheem
23/12/2017 0 0

Language to use: Any language that you are learning.

Interface: Web or Desktop

Function: Simple calculator (9 digits + symbol) with 1 Memory storage with possible function of + - * / 

Error Handling requirement: All invalid entries & calculations to be gracefully handled

Client: The client is an experienced computer user. We therefore assume that users will have basic knowledge of using the mouse and keyboard

Data Input: We assume that data input will occur only via the keyboard and the mouse.

Output: All output will appear in a text display area similar to a calculator’s LCD screen. 

Output Event: Clicking a button representing an operation causes the display area to be updated. Results will be presented to at most 7 decimal places accuracy.

Operation: The application will present a visual keypad where one digit at a time can be added to the display by using the mouse to select one of the digit buttons. An optional negative sign can be entered before any digits have been entered; thereafter, the negative button will be ignored. As long as an operation has not been requested, digits will be added to the righthand side of the current number. This number will be displayed in the display area as it is composed. Number entry restarts after any arithmetic operation, result display, value storage, or clear operation is requested.

Operations are represented by buttons on the calculator which specify the arithmetic operation to perform or the storage of a value for future recall. In general, the entry of a number is terminated by clicking on one of the operation buttons.

Display: The display result operation is requested by clicking on the “=” key. If a value has been “remembered” by requesting one of the arithmetic operations, then the remembered value is combined according to the requested operation with the value currently in the display. The display is updated with the new value, and the calculator is made ready for the entry of the next number.

Clear: Clicking on the “Clear” button erases any value that appears in the display area and resets number entry. Clear does not affect the “remembered” value or the operation that has been requested.

Appereance: The interface of the calculator should be as close to the appearance and operation of a physical calculator as possible. The appearance of the application on the two platforms should be a close to identical as possible.

Testing: Include all the possible test cases along with the documentation (steps & results) as a part of output.

In short, it should be fool-proof, should not crash in any way possible, should provide all valid error messages, and result as per the rounded figures possible for a 9 digit calculator.

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Python - Solving Ordinary Differential Equations - Predator Prey Model aka Lotka Volterra Equations
This is an assignment in Python, I contributed to a numerical Python MOOC from George Washington University. The link to this assignment on github is here. The Lotka–Volterra equations, also...
S

Sri Vallabha Deevi

0 0
1

Wires and Cables
Wires and cables are used to carry an electrical current. Most wire is protected by an insulating covering of plastic or rubber. A wire can be either solid or stranded. Cables have one or more conductors...

Bonus Issue
Bonus means Issue of Shares by a Company without any consideration. Bonus Issue: It is an additional dividend given to the shareholders that can be in cash or in the form of stock. When companies have...
F

The Basic about modeling anything into CAD
The most basic problem that a beginner designer faces is - " From where to start" Have you ever wondered while starting to design an object to where should I start from or How am I suppose to know...

What is flat slab concept?
Flat slab is a reinforced concrete slab supported directly by concrete columns without the use of beams. Flat slab is defined as one sided or two-sided support system with sheer load of the slab being...
X

Looking for BCA Tuition Classes?

The best tutors for BCA Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BCA Tuition with the Best Tutors

The best Tutors for BCA Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more