Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

mathtina

how to create GUI using microsoft visual for solar battery charger calculator?

  • one year ago
  • one year ago

  • This Question is Closed
  1. agdgdgdgwngo
    Best Response
    You've already chosen the best response.
    Medals 1

    So you want to emulate a solar powered/battery powered/chargeable calculator in one of the .NET languages? Good project! However, as simple as this project may sound, without properly planning the design, layout, etc, of the project beforehand it can get tough to get it working, understanding the different parts of the calculator such as what types of operations and functions it can support, and separate it from the graphical appearance of the calculator and the user interaction. Might start with constructing a \(\textbf{Model}\) of the calculator, working hard on the way the calculator itself actually works. For instance, you will implement the computational model of how the calculator actually carries out stuff like addition and multiplication, the way it internally handles numbers (should I use native types or bignums? How would decimals and fractions be handled? Should it be binary or decimal, etc), emulate hardware, RAM, ALU, CPU, and maybe even support some more advanced things like graphing or programming. To help you develop such a working model, you can perhaps make use of the testing features of visual studio and stuff. Now that you have a working model (functions correctly), you can begin working on a proper GUI, or \(\textbf{View}\) for the model. The calculator view will perhaps echo the user input and show the results of calculations. Since you already figured out and developed the calculator model, at this stage of developing your calculator project you will be focusing instead on how the calculator appears to the user. This is where the windows forms stuff comes in. In combination with the GUI, the project needs to have some sort of mechanism for working with the model or updating the view in case of user input, some sort of \(\textbf{Controller}\) to negotiate between the user's input and the calculator logic. Since you already designed both the calculator logic and functionality in your model as well as the GUI (view) of your calculator, now you can focus on the crucial interactivity expected from a calculator. By segregating the model, the view, and the controller in your calculator project, it becomes straightforward to develop your solar calculator. By changing the calculator Model, you can modify the functionality of the calculator with respect to the computations it carries out as well as the way it actually handles numbers internally. By changing the calculator View, you can change the way it shows out results to the user (those ugly LED displays with big buttons or something like the iPhone or default Windows calculator with better displays as well as the ability to hide or show the different functions such as statistics or programmer calculator functions). With a separate controller, you can easily modify how either the view or the model is updated according to whatever button is pressed or whatever number the user inputs.

    • one year ago
  2. agdgdgdgwngo
    Best Response
    You've already chosen the best response.
    Medals 1

    You may also read this for more info about the possible architecture for the GUI app: http://martinfowler.com/eaaDev/uiArchs.html

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.