A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 5 years ago
Is there a mathematical way to do what this C program does
anonymous
 5 years ago
Is there a mathematical way to do what this C program does

This Question is Closed

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0#define close_enough 0.01 main() { char facts[] = {"fat (grams)", "calcium (%)", "carbs (grams)", "vitamin D (%)", "cholesterol (%)" }; double ingred[3][5] = { { 0, 1, 2, 4, 3 }, { 3, 4, 5, 0, 3 }, { 0, 6, 0, 7, 8 } }; int numbers_should_equal_this[] = { 15, 43, 4, 7 ,3}; int looper[3]; for (looper[0] = 0 ; looper[0] < 100 ; looper[0]++) for (looper[1] = 0; looper[1] < 100  looper[0]; looper[1]++) for (looper[2] = 0; looper[2] < 100  (looper[0] + looper[1]) ; looper[2]++) if (ingred[0][0] * (looper[0] / 100.0) < close_enough) if (inged[1][0] * (looper[1] / 100.0) < close_enough) if (sugar[2][0] * (looper[1] / 100.0) < close_enough)

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0:) it is not complete, but you get the idea

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0What is it meant to do?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0You do have a mathematical way to do this  it's your algorithm.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0this is not complete but complicated

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I'm closing my eyes. I had a test yesterday in Object Oriented Programming ._.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0it will figure out what ratios of ingredients are needed for a given food. For example I have a cheesecake snack which contains only cream cheese, sour cream, sugar and eggs. I know from the box the nutritional facts of the box, and I know the nutritional facts about each ingredient. Now with this information I should be able to figure out the ratios with a program that just tries every possibility and checks to see if the numbers work.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0OOP is cool but this is not OPP

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0is this linear programming?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0you guys should see my 24000 lines C++ code LOL

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0programming scares me

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I guess it is procedural programming, not linear, IMHO

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0programming is easier than most ppl think

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0lol angoo, I do practice programming, but I don't go deep into it.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0my programs never work properly and i have no patience and just get angry

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0what language do you use loki

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0LOL , let me guess, error error unable to complie LOL

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0which language do you use? Java, C++? C? C# etc etc

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0i used C program with bloodshed dev c++

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0you can learn enough of programming to make a simple text based role playing game in about a month

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I don't know. I was forced to do some as part of my degree. C or something.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I use Java , since it's the only language available to practice here in campus

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0YEY!!! I also used to use Bloodshed

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Yeah, you're all nerds...

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I ain't a nerd, you should see me in real life LOL, you would be surprised

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I know you are kidding, so am I

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0there's a difference between a nerd and a geek, geek = computer more person, nerd = study more person lol

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0to make a mathematical program from complicated case, u have to learn linear programming, i think.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0so you're saying if i saw you, i *would* think you were a nerd?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I was so proud of the program I wrote lol, finding the factorial of a number >_<

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0no, you would not, not a chance, everyone is surprised when I tell them I am into computers and geek stuff

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0they think I am a bodybuilder or something

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0kidding, no, in real life you it is quite easy to see I am into TECH

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0in the end noone can solve ur algorithm lol

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0lol, in other words , a geek with a pretty smile =D I guess?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I am just trying to confuse you all

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0then angoo striked one person, he's what do you call that thing, um, socializing thingy?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0so guys, anyone wants C++ lessons? *eating a bannana*

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0BMF u made a HERO confused, well done

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0he has done it before lol

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0bananas get you excited LOL

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I never want to see C++ or any C again

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I have never even seen C++ or C

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0i want to see A always

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0If I can't do it with pen and paper or on excel, i get someone to write up a program

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0C++ is very simmilar to java

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0try try try again and again

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0that's what I've heard andy

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0but they say C++ is alot more easier than Java

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0my problem is that it's so finicky. so much room for error. one mistake and you can spend hours looking for it.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0and, no, bananas do NOT get me excited, they are just fruit

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0lol, they get you excited :)

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0nah, java and C++ are exactly of same difficulty

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0they have a very longnamed chemical that I don't remember that gives you energy ^_^ same thing with chocolate and barely. I forgot the name hmm wait

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0just that, java is used for one thing, and C++ in other situations

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Oh yeah, Tryptophan! :) that's what it's called

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Tryptophan puts you to sleep!

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0banana , choco, and barely = goog for heart = because they contain serotonin.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0lol, it's in bananas, chocolate and barely lol

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I have attended an Organic Chemistry course for fun ^_^

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Java: Finances Web Simple boring games C++ Operating Systems Almost all comercial software Bank server software Airplane software 3D games (like for PS3, PC...)

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0but they're using java now

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0folks, all of u get a job, someone asking about max domain

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I'm not sure of the maximal domain >_<

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0nope, not everyone, java is great for smal programs, C++ is good for complex comercial ones, the multimilion ones

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0They've stopped teaching C++ though

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0do you know why? because with java it is easyer to make simple programs and dysplay simple graphics, which is good for learning, but C++ can take very long time to learn, just to draw a cube on the screen is hard

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0They say that in computer engineering, C++ will be taught and Java will be ignored.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0anyways, languages are languages, all function the same in the end.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0all have one place to go, all have same use.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0stupid computer with some human intelligence

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0obedient to the rules.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0check this, it has a simple C++ program with two 3D objects spinning aroun, AND a cpp file with the SOURCE CODe

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0so finaly you can see how C++ looks and how much code you need to do that simple stuff

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I'll check it later , thanks

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0oh, and check this, it is more fun# =D

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0make sure to examine the code =D LOL

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0not in my current mood lol, but I will later.

nowhereman
 5 years ago
Best ResponseYou've already chosen the best response.0If you want a mathematical way, you should consider functional programming. e.g. Haskell

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0lol, finally someone has answered the question that was displayed

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0ok, I will check out haskell, shouldn't be hard after learning C++

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0if you're good at the previous ones, then the new ones will be easily absorbed by you ^_^

nowhereman
 5 years ago
Best ResponseYou've already chosen the best response.0Well, it is, after all, a different programming paradigm. You not only have to learn new names and a little syntax, but you also have to think differently about your algorithms — in a more mathematical way.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0yeah, algorithms algorithms

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I'm off to go soon, later :)
Ask your own question
Sign UpFind more explanations on OpenStudy
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
 Engagement 19 Mad Hatter
 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.