Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I am trying to write a program that will determine what breed of dog is right for a person or family. I am programming on a Mac, and I want my program to include a way for people to check boxes of which statements are true about their lifestyles, and then a way to search a data table I've made and tally up the amount of categories the person has in common with each breed of dog, and then display the result. I've spent a lot of time googling things and trying things but nothing seems to work for me. Help?
Posted 25-Mar-12 13:48pm
Comments
Nelek at 25-Mar-12 19:04pm
   
Ok, you are trying... what have you tried? where are you getting problems? what have you googled? What do you want to achieve? Your description is very vague.
Member 8759392 at 25-Mar-12 19:29pm
   
I tried using c++ in codeblocks. If I can do this, I would just like to know what kinds of code to use. Thanks.
enhzflep at 25-Mar-12 20:34pm
   
Well, as a couple of starters, I'd consider looking into WxWidgets for the UI and SQLite as a means of storing the data tables.
 
Code::Blocks has integrated tools for designing WXWidgets forms, while SQLite is a connectionless database - don't need a database engine installed. CPPSqlite may make it more suitable for your needs.
Albert Holguin at 25-Mar-12 21:22pm
   
Find a user interface framework that is supported by your Mac OS. You should be able to google for plenty of answers.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Quote:
I am trying to write a program that will determine what breed of dog is right for a person or family.

Now I have some great experience on this field. I recently tried to purchase a puppy and the pet show owner tried to help me to get the right kind of the puppy form me. What he was doing was something like this:
import java.util.Random;
 
public class FindYourDogType {
    private static String[] dogTypes =
    {
        "Affenpinscher",
        "Afghan Hound",
        "Aidi",
        //list goes on like this. List found at: 
        //    http://en.wikipedia.org/wiki/List_of_dog_breeds
        "Yorkshire Terrier"
    };
 
    private static Random random = new Random();
 
    public static void main(String[] args) {
        System.out.println("Your dog type is: " + getDogType());
    }
 
    private static String getDogType() {
        return dogTypes[(random.nextInt() % dogTypes.length)];
    }
}
  Permalink  
Comments
Albert Holguin at 26-Mar-12 1:22am
   
This is too funny! :D
pwasser at 26-Mar-12 2:35am
   
It needed this. Of course you left out the choice "goldfish" but I have not downvoted for this omission.
krumia at 26-Mar-12 2:46am
   
:D :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 480
1 Maciej Los 290
2 Richard MacCutchan 225
3 BillWoodruff 185
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,764
1 Sergey Alexandrovich Kryukov 7,437
2 DamithSL 5,639
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411028.1 | Last Updated 26 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100