A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Programming contest #1 - Arrays

2.8k views · started by Elliot · · page 1 of 2
#1
Programming contest #1 - Arrays
Welcome to the first programming contest of 2013! This first contest will be simple. As these contests progress the difficulty will increase.

Read me for contest info!

When you are finished with your solution send it to me via private message. Your submission must include your source with a short description describing your approach.

Prizes

The prize will be a $10 gift card from one of the following places. Or $10 cast sent via Paypal. If you would like to request a gift card send me a private message and I'll look into it.


  • Amazon
  • Google Play

#2
Hey, I think it should be "The prize will be a $10 gift card from one of the following places" otherwise it sounds like they're getting both gift cards haha.

Anyway, working on my solution as we speak, and I'll be PMing it to you as soon as possible!
#3
Hey, I think it should be "The prize will be a $10 gift card from one of the following places" otherwise it sounds like they're getting both gift cards haha.

Anyway, working on my solution as we speak, and I'll be PMing it to you as soon as possible!


That's a good point! Thanks for letting me know, that could have been a mess.
#4
This sort of lacks detail. What do you mean by accept hourly temperatures? Do you want us to input actual temperatures on an hour-to-hour basis or what?

But basically you're wanting an algorithm that collects input, throw it in an array, average it out, create output from that. Seems simple enough, but more specifics would be nice.
#5
This sort of lacks detail. What do you mean by accept hourly temperatures? Do you want us to input actual temperatures on an hour-to-hour basis or what?

But basically you're wanting an algorithm that collects input, throw it in an array, average it out, create output from that. Seems simple enough, but more specifics would be nice.


The hourly temperatures are from user input. It says that in the Google doc. And yea, basically.

Also, mapping out your algorithm is a bonus.
#6
What in God's name is meant by feedback?
#7
Artificial wrote:
What in God's name is meant by feedback?


Edit: You're supposed to implement some way for the user to rank how comfortable a temperature is.

Enter Temp for hour 1: 3
How comfortable is this temprature? (1-10): 3


Or something along those lines.
#8
Thomas wrote:
Enter Temp for hour 1: 3
How comfortable is this temprature? (1-10): 3


Wait, what? What does how comfortable it is have to do with the average of the temperatures? Lol
#9
Thomas wrote:
Edit: You're supposed to implement some way for the user to rank how comfortable a temperature is.



Or something along those lines.


I don't understand. The challenge guidelines were too nondescript.
#10
I don't understand. The challenge guidelines were too nondescript.


It's supposed to be vague. As long as your have the few requirements that are bullet pointed you have a valid entry. This contest is to test your ability as a programmer. Although, this first one is really simple.

@flair you factor in the rating the user imputed for each hourly temperature. This can be done a number of ways.

Take highest rated temperature (easy way, but still works).
Average the top x rated temperatures
#11
In the sample output temperature is spelled wrong.
#12
Isonyx wrote:
In the sample output temperature is spelled wrong.


This whole challenge sux.
#13
Isonyx wrote:
In the sample output temperature is spelled wrong.


It's spelled correctly everywhere else, I think.

This whole challenge sux.


Just curious, who else doesn't like this challenge? Might have to change something.
#14
When you say notation do you mean descriptive comments or an identifier naming convention?
#15
Isonyx wrote:
When you say notation do you mean descriptive comments or an identifier naming convention?


I mean descriptive comments.
#16
Thomas wrote:
I mean descriptive comments.

Submitted.
#17
Also, quick amendment. No Brainfuck submissions will be accepted.

So far the only submission is Isonyx in C++.
#18
i bet Isonyx's code looks like doo doo.
#19
i bet Isonyx's code looks like doo doo.


Submit an entry and I'll let you know.
#20
Thomas wrote:
Submit an entry and I'll let you know.


Too lazy and unmotivated. This particular challenge didn't pique my interest.

Perhaps I'll do the next challenge you post if you decide to post one. Keep in mind that my solutions must be in AutoIt *cringe* so they'll look like crap regardless.

BASIC-like syntax, oh god.
#21
When does the contest end?
#22
ya bish wrote:
When does the contest end?


The read me he linked to includes the time frame.
#23
ya bish wrote:
When does the contest end?


February 6th.
#24
I just read Isonyx's code and I must say, it sux eggs.
#25
BASIC programmers don't die, they just GOSUB and don't RETURN.
#26
Isonyx wrote:
lol why even.


He mad
#27
I just learned Arrays in Compsci class xD
I'll give this a try, maybe.
#28
I sent my entry, I think.
I checked my "sent PMS", and it was empty...
#29
Spammathon wrote:
I sent my entry, I think.
I checked my "sent PMS", and it was empty...


I received your submission.

So far that's two entries.
#30
What are the judging metrics to determine a winner?
#31
I'll write something up for you thomas sometime tomorrow.
#32
Artificial wrote:
I'll write something up for you thomas sometime tomorrow.


Thanks!

Riddle wrote:
What are the judging metrics to determine a winner?


It's best submission. My focus is on efficiency. Redundancy will be the number one thing to get you a low score. Well, outside of having code that won't compile.
#33
I think what he was more getting at was are you going to be judging? Because I could write something more efficient than the next person, but that doesn't necessarily mean you'll be able to recognise that :p
#34
Artificial wrote:
I think what he was more getting at was are you going to be judging? Because I could write something more efficient than the next person, but that doesn't necessarily mean you'll be able to recognise that :p


Yes, I'll be judging.
#35
Aw darn. It's on efficiency? XD
Mine is probably the most inefficient it can get >_<
#36
I can send you what mine was going to be before the whole "ratings" thing if you want... I thought it was pretty good, tbh, but then the ratings thing screwed it up and now I have no idea how to solve it, so I gave up.
#37
So.... ummm..


Who had the most efficient code? :3
#38
Me of course
#39
What does your code look like? :3
#40
Spammathon wrote:
What does your code look like? :3


Like an angel