Creating a Visual C# questionare type application #HELP

  • (2 Pages)
  • +
  • 1
  • 2

18 Replies - 805 Views - Last Post: 28 February 2012 - 08:47 AM Rate Topic: -----

Topic Sponsor:

#16 mrburnttoast  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 28-December 11

Re: Creating a Visual C# questionare type application #HELP

Posted 11 February 2012 - 09:59 PM

View PostAdamSpeight2008, on 11 February 2012 - 12:39 AM, said:

mrburnttoast


The 3 basic layers (in bold) are;-
Interface Layer
The Data Layer
The Object Encapsulation Layer
The Business Logic Layer
The UI Layer
I personally think in terms of 2 extra layers (in italics).

What can separated out into code libraries?
Interfaces typically separated out.

Write the core / kernel code for the problem in an GUI agnostic way. Eg it doesn't know about the UI, it just take input and produce output. Example: Conway's Game Of Life Challenge

Then write the UI, it could be a Console or a window.


While I agree with everything you say, I'm not sure it is what is needed for this situation. The original poster seems new to programming, for example, asking whether or not the program would need a database. I think that they might benefit more from learning the basic concepts like conditional logic, looping, arrays etc than from worrying about a data access layer and OOP concepts. After that, learn begin to learn the more advanced concepts. If it was me creating this program, I would dynamically generate the controls based on values in your database. That way no changes to questions and answers never need to be dealt with in the code but rather only in the database.
Was This Post Helpful? 0
  • +
  • -

#17 AdamSpeight2008  Icon User is offline

  • Coder-ian
  • member icon

Reputation: 1401
  • View blog
  • Posts: 7,358
  • Joined: 29-May 08

Re: Creating a Visual C# questionare type application #HELP

Posted 12 February 2012 - 12:08 AM

The Data Layer isn't just about Databases it's about Data, which includes database design. Mainly it's is about what your data is interacting with;- File? Database? Array?
Create
Reading
Updating
Deleting
+
Saving
Loading
Querying

The basic functionality of data interaction happen on this level.


Beginner to the programming language start with Console applications, as it focus you more towards learn the syntax and grammar of the language. In form based applications beginners spend more time on making it look visually rather than learning the language. Plus as I've said before they tend to think that they can only use controls, in there design. Eg Using a textbox as temporary variable.
Was This Post Helpful? 0
  • +
  • -

#18 gamergrl  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 01-February 12

Re: Creating a Visual C# questionare type application #HELP

Posted 28 February 2012 - 08:27 AM

Hello.. Sorry I have been a bit ill over the past few weeks. could you guys please tell me how I would go about using a database (access) for the questions and storing the awnsers and also how to get those questions to show up in visual studio (the program itself). thanks guys :)
Was This Post Helpful? 0
  • +
  • -

#19 modi123_1  Icon User is online

  • Suiter #2
  • member icon


Reputation: 3553
  • View blog
  • Posts: 14,985
  • Joined: 12-June 08

Re: Creating a Visual C# questionare type application #HELP

Posted 28 February 2012 - 08:47 AM

Well start with thinking how to group your data into a table.
Then read up on how to do some basic database/.NET interaction.
Profit!


OleDb Basics in VB.Net Rate Topic

A Really Simple Database Create a Database using Access & VB.net Express 2008
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2