How do I create a simple program that will pull information from a database, insert it into a few formulas, and spit out the answers?

1 Answer

Answer :

answer:Welcome to Fluther. I have only the vaguest notion of the survey that you’re trying to accomplish, but I do understand data. What will serve you very well for this is a Microsoft Access (or equivalent, or better) database. The first thing that you’ll want is a table for Species. Let’s call it tbl_Species. The table should consist of the following minimum fields: Species_ID – Autonumber – Primary Key Species – Text – Indexed, Unique (no duplicates) ConsVal – Integer (apparently) – “Conservation Value” Save the table design, and start to enter your species (in any order) and associated conservation values. Now you have a table of unique species, identified by also unique “Species_ID” numbers (meaningless to you, but important to the database) and associated Conservation Values that can be used in later computation. Make another table of Quadrats, called tbl_Quad, consisting of: Quad_ID – Autonumber Quadrat – Text (Can be a name or number) [You may eventually want to add another table to the database for “Survey” to identify each new survey that you want to record, and that would enable you to add another field for “Survey” to the Quadrat table in order to help make each Quadrat unique. By that I mean you may do a survey for Boston – and even “surveys for Boston” may not be unique; you may want to do one in the spring, one in the fall, and additional ones in succeeding years, and you’ll obviously want to differentiate each from the other – and you do not want to have to set up separate tables or databases for each survey. But that’s getting into more complexity than I’m going to deal with in a single response here.] With those tables built, you are now ready to create the final (minimum) table required, which we can call tbl_Survey. The first field will be another Autonumber / Primary Key field which we’ll call “Obs_ID” (for Observation ID). Next you’ll create a field called “Quadrat”, which will be a “Lookup” value into tbl_Quads so that data entries in tbl_Survey will be restricted to Quadrats which have already been included in the proper Quadrat table. Following that field you’ll have a “Species” table which pulls only species you have already entered into tbl_Species. Save the table and enter some “observations” such as the ones you have listed above. Now you can build a Query of the database. The Query will link tbl_Survey with tbl_Species on the Species_ID field (common to both tables) and pull the related “Conservation Value” field from tbl_Species. See how that works? Since you have a unique ID in tbl_Species every value of “Species” in tbl_Survey corresponds to one and only one Species_ID in tbl_Species, and can bring over whatever data is related to that Species_ID. It never gets lost, misplaced, mistyped, forgotten, etc. Your query can also store the math equation you want to store (any number of them, in fact). Different queries can perform in different ways. What you want, apparently, is a type of “Summary” query which will perform the averages you want to record, quadrat by quadrat. That just gets you started. So far, this seems to be a simple enough exercise, which will only get more complex as your understanding improves and your needs increase.

Related questions

Description : Excel spreadsheet help (formulas)

Last Answer : Which version of excel are you using? In 2010 it has a square root function which is =sqrt(CellNameHere). Also as far as the second problem with the multiplication table can you not just use the cell name for example =$B$1*A2 and then drag it down?

Description : How do I do a MySQL Insert statement into 2 different tables?

Last Answer : sounds to me like two separate insert statements... or maybe i don't understand the question...

Description : What are the steps to create a program ?

Last Answer : How many steps need to be taken to solve any problem with the help of computer. These steps are called program making steps.

Description : What is the program to create multimedia software ?

Last Answer : Program Director for creating multimedia software.

Description : Empty entries in a mysql/php5 site database,... why?

Last Answer : How are you migrating the database? What are you using to export and import?

Description : Is there an advantage to putting the database on a separate database server?

Last Answer : answer:It depends on how much traffic you have and how data-intensive it is. Also, read-only requests are a lot lighter on resources than read-write. At the extremes, say you are running eBay ... a second server. If you make the web application modular, changing the data source later is pretty easy.

Description : What are the most important components of a database ?

Last Answer : There are 3 most important components of a database. Namely - data , fields , and records.

Description : Where do I find good information on how to program 3D videogames?

Last Answer : answer:You have two clear options: OpenGL and DirectX (Direct3D). OpenGL is a cross-platform library designed just for graphics while DirectX is specific to Windows but offers built-in libraries for sound ... books about this topic on Amazon or your local book store that would prove to be useful.

Description : What's bugging my simple JavaScript toggle script?

Last Answer : answer:The toggle_visibility function specifies (eng, met), not (var1, var2), so it seems not to matter what order of parameters you send it, it's going to read (eng, met) always. function toggle_visibility(eng, ... = block'; } else { e1.style.display = block'; e2.style.display = none'; }

Description : Looking for a simple way to generate some permutation-like numbers!

Last Answer : answer:If you can take the time to learn it, Pure Data might be just what you are looking for. It is pretty good at managing number sequences and creating output, which appears to be what you are looking for… Good luck! :)

Description : Write a program to create a vector with five elements as (5, 15, 25, 35, 45). Insert new element at 2nd position. Remove 1st and 4th element from vector.

Last Answer : import java.util.*; class VectorDemo { public static void main(String[] args) { Vector v = new Vector(); v.addElement(new Integer(5)); v.addElement(new Integer(15)); v.addElement(new ... .addElement(new Integer(45)); System.out.println("Original array elements are "); for(int i=0;i

Description : Anyone know how to re-insert the pull chain back into a window shade?

Last Answer : You will have to turn the blind by hand as you insert the bead chain.

Description : Simple question on rearranging formulas?

Last Answer : Yes. If you divide both sides by z, then you get r/z = xy since z/z = 1. Similarly, r/x = yz.

Description : Is there a drag and drop software to create apps for cell phones and computers?

Last Answer : No there is not but for android the tools are free and there is a good development environment. You can get it from google code. It's java based which is nice since you don't have to mess with pointers and ... of hacks. I'm a below average hack so be prepared to pay someone well to do it for you.

Description : If I were to create a minimalistic version of Dwarf Fortress on my calculator, what features would I include?

Last Answer : answer:moving water, digging, resource management, and resources to gather, skills to improve and possibly an enemy force or a reason to even gather or dig ive never played the game but ive watched countless videos about it.

Description : Roughly how much do programmers change to create Apps for iPhone/iPad? Does the client get the coding?

Last Answer : My son has developed apps directly for Apple; not through a company. If his experience might be relevant to you @Dog, PM me and I will talk to him.

Description : What languages do I need to know to create an online 2D shooting game?

Last Answer : Actionscript.

Description : How does one use his mind to create a plan ?

Last Answer : By deconstructing a problem into smaller pieces. I think people intuitively write business rules in their head for all problems. They may not account for all the options, and they may only see the ... but in reality, problem solving comes in the form of deconstructing a problem into Yes/No format.

Description : What programming knowledge do I need to create web2.0 apps?

Last Answer : You don’t need Java necessarily which would be very advanced. HTML and CSS aren’t programming languages. To call something an application you need some kind of business logic. Javascript is an easy way to get started. You could also try PHP or Perl.

Description : Who did create "hello world" for the beginners of programs?

Last Answer : answer: the tradition of using the phrase Hello world! as a test message was influenced by an example program in the book The C Programming Language. The example program from that book ... memorandum by Brian Kernighan, Programming in C: A Tutorial http://en.wikipedia.org/wiki/Hello_world_program

Description : Has anyone used Apple's SDK to create applications for iPhone?

Last Answer : answer:I have written a few apps. They were very basic and I would never release them to the public. I'm not that confident. If you have experience with Xcode and Objective C you should go for ... learning curve. And everyone starts somewhere. Give it a whirl. The only thing you lose is some time.

Description : How do I create a website ? What do I need to know to create a website ?

Last Answer : See, creating a site is not an easy task. To create a site you need to know a lot of things like: HTML work , CSS , PHP , CEO JavaScript , Creative Knowledge and web development, etc. So you can ... you do not have to create a site to manage the site, you need to have some knowledge of the above.

Description : How do I create a site like this ?

Last Answer : Create from WordPress or do a Google search.

Description : Is it possible to create a Q&A website with Android mobile ?

Last Answer : Yes, it can be both. Not at first. Because it is almost impossible or difficult to do file editing , code editing , server configuration etc. by phone. It is also difficult to download and modify ... answered. And if you get ready software , ready theme etc., then you will get a beautiful site.

Description : How to create a site like Abde17.Wapkiz.com ?

Last Answer : You can build such a site through skilled programming.

Description : Can I create a website by learning HTML ?

Last Answer : Website can be created by learning HTML but web site cannot be designed. For this you have to learn web design side by side with HTML.

Description : Which one is used to create the ad ?

Last Answer : Animation is used to create ads.

Description : Is there a program where you can identify music in a specific website?

Last Answer : Need Answer

Description : What should I study in order to write/program a career search software?

Last Answer : More programming. And logic. You need to understand how to develop a search for terms, and then also determine where to search, and then how to optimize search results in a relational database.

Description : How much work does it take to change on a program, from "Monday to Sunday" to whichever 7 days in a row?

Last Answer : It would depend on the individual program.

Description : What would be the .exe file for a Visual Basic program?

Last Answer : The exe in the bin folder within the (startup) project.

Description : Can anyone tell me what kind of program is used by the Polyglot Project?

Last Answer : I don’t get your question. Are you asking what programming language is being used?

Description : What kind of script/program/CMS/etc. is needed to make a site like care.com, airbnb.com, schoolofeverything.com, fiverr.com?

Last Answer : All the sites you posted are so different I don’t think you can use a CMS without being heavily modified. I would charge about 20K to even touch it if I was doing it from scratch.

Description : Help with a basic Java program?

Last Answer : answer:just a guide, don’t know java correct the syntax and stuff and this should be your loop. INPUT=B for(A=1; A=0; a=a-1){ print/echo/say ”*”; } print linebreak// } for(A=B; A=>0; A=A-1){ for(a=A; a=>0; a=a-1){ print/echo/say ”*”; } print linebreak// }

Description : Webapp/ Program idea?

Last Answer : If you have a solid idea, and are ready and willing to pay, you can put the project on Elance. http://www.elance.com/

Description : Where online can I find a free American Sign Language translation program?

Last Answer : The only ASL programs I'm aware of are Word-to-Sign, not sentence to sentance. The syntax and grammar, including word/sign order & facial grammar, are different and too complex. The best way ... learn American Sign Language, is in person, with a native Deaf signer highly preferable as the teacher.

Description : Which Windows program to use to introduce 6 year old to programming? Best program to teach LOGO or BASIC with graphics?

Last Answer : Get an old machine and load DOS 6.1 on it.

Description : How can I write a C++ program that outputs different colored characters?

Last Answer : Usually you use ANSI codes for colors. This will assume that the console is an ANSI terminal or ANSI terminal emulator. ANSI codes usually look like escape sequences. e.g. [32m (set to green). If you ... 's getting away from your question. I may be wrong, but I believe the cmd window supports ANSI.

Description : Is there a program I can get for Firefox to highlight multiple items on a web page, and have them saty highlighted as I browse?

Last Answer : I have most of the add-ons and I haven’t seen it.

Description : Is it hard to learn how to program an iPhone app SDK?

Last Answer : It’s not difficult, but there’s a lot to learn. If you have no programming experience at all, it will probably take you two to three years of working on it to become reasonably competent.

Description : How can I learn to program for cocoa?

Last Answer : You need a lot of sparetime and enthusiasm. Have fun!

Description : What is a program error ?

Last Answer : Program bugs are called bugs .

Description : Interpreter is part of which program ?

Last Answer : Interpreter is part of the Player program.

Description : What does it mean to find and fix program errors ?

Last Answer : Debugging is the process of finding and eliminating errors in a program .

Description : What kind of program is the compiler ?

Last Answer : Compiler Translator Program.

Description : What is the next step in program algorithm ?

Last Answer : Answer : The next step in the program algorithm is drawing the flowchart.

Description : What are the benefits of using user defined functions in the program ?

Last Answer : Answer : In C-Program, the functions that the program describes according to its own needs in the Main () function are called user defined functions or user defined functions. The main advantage of the defined ... you can edit and insert some new data. As a result, the user benefits from the work.

Description : What are the qualities of an ideal program ?

Last Answer : Ideal program refers to a program in which all the features or qualities of a computer program are present. Programs are usually designed to solve problems. An ideal program plays an important ... less possibility of error in the composition. Moreover, a standard program usually has 5 episodes.

Description : What are the benefits of using variables in a program ?

Last Answer : Answer : You can work with different types of data in a program without using variables. However, in that case, the facility of automatic data setting , reuse, etc. is not available. For example , ... saves data in the named location of the variables in memory , making it easier to find them later.

Description : What is input / output control program ?

Last Answer : The input / output control program accepts the input device for faster data processing and keeps these devices in line with the CPU to speed up the output to the output device and sends a message to the user in case of difficulty.