Higher Computing Coursework Task Help
Discussion for all types of Scottish exams, help on Scottish Results Day and advice on Clearing.
-
Re: Higher Computing Coursework Task HelpIs there any extent of detail one should go to? For example, if a step required some specific processing of a string in the language I'm using, but in many languages it's considered simply one thing, should I go to painstaking detail describing each line of code or can I cut corners a little?
Out of interest, what percentage of the final grade is decided by part 1 or part 2? Could I, in theory, make a pig's ear of part 2 but still get an A due to my work in part 1? How about vice versa? I don't plan to need such brinkmanship, but it'd help me sleep to know whether or not it's possible.Last edited by Lenina; 29-02-2012 at 21:05. -
Re: Higher Computing Coursework Task HelpCan you be more specific? I'm inclined to say 'cut corners' - pseudocode should be fairly generic (although, in practice, tends to be at least imperative) and shy away from language foibles. Here's an example that might be how I'd do one element of it, for example:(Original post by Lenina)
For example, if a step required some specific processing of a string in the language I'm using, but in many languages it's considered simply one thing, should I go to painstaking detail describing each line of code or can I cut corners a little?
Code:is_valid(input : IN String) : OUT Boolean input := LOWERCASE(input) FOR EACH character IN input IF character =/= 'a' AND character =/= 'b' AND ... AND character =/= 'f' RETURN FALSE END IF END FOR RETURN TRUE -
Re: Higher Computing Coursework Task HelpThat's close to the style and detail level of my initial attempts, but the examples on the HW Scholar website, which my teacher asked me to use for examples, are much, much more corner-cutting and based almost entirely in natural language, so I didn't know which way to go. I think I'll use my original intuition. Thanks!(Original post by TheUnbeliever)
Can you be more specific? I'm inclined to say 'cut corners' - pseudocode should be fairly generic (although, in practice, tends to be at least imperative) and shy away from language foibles. Here's an example that might be how I'd do one element of it, for example:
Code:is_valid(input : IN String) : OUT Boolean input := LOWERCASE(input) FOR EACH character IN input IF character =/= 'a' AND character =/= 'b' AND ... AND character =/= 'f' RETURN FALSE END IF END FOR RETURN TRUE -
Re: Higher Computing Coursework Task HelpI don't see why using global variables would prevent you from finding the maximum value, so long as you are not accidently ammending or updating the variables. To find the most crashes, you would simply use the find maximum algorithm, and then another If statement, stating that whenever the current position in the level counter matches the value for max crashes, the current position in the array should be taken into a selection statement where the number for the level will be mathced with it's name, e.g. if the current position was 1, the level would be "A". After the case statement you would simply print the level. All of this should be placed in a fixed loop (looping through each level), apart from the find maximum algorithm.(Original post by damianz)
Hey,
Can anyone help me with finding maximum value in Visual Basic ? I have done mostly of the program but I am using global variables at the moment instead of subroutines. Is it possible to find max with global varibles ?
Thanks
Hope that helps. -
Re: Higher Computing Coursework Task HelpAny chance you could give me a little help? You seem to know what you are doing so I'd really appreciate it!(Original post by TheUnbeliever)
Can you be more specific? I'm inclined to say 'cut corners' - pseudocode should be fairly generic (although, in practice, tends to be at least imperative) and shy away from language foibles. Here's an example that might be how I'd do one element of it, for example:
Code:is_valid(input : IN String) : OUT Boolean input := LOWERCASE(input) FOR EACH character IN input IF character =/= 'a' AND character =/= 'b' AND ... AND character =/= 'f' RETURN FALSE END IF END FOR RETURN TRUE
I do not know how I will go about counting the amount of times each level crashes? I understand that I have to use arrays, but how exactly do I distinguish an "a" from a "b" etc.
Please helpLast edited by Its Me :D; 10-03-2012 at 02:56. -
Re: Higher Computing Coursework Task HelpOne fairly straightforward way is to have a second array which just has the counts for each character (so e.g. the first element is the number of occurrences of 'a'). Does that help?(Original post by Its Me :D)
I do not know how I will go about counting the amount of times each level crashes? I understand that I have to use arrays, but how exactly do I distinguish an "a" from a "b" etc.
-
Re: Higher Computing Coursework Task HelpYeah that helped thanks!(Original post by TheUnbeliever)
One fairly straightforward way is to have a second array which just has the counts for each character (so e.g. the first element is the number of occurrences of 'a'). Does that help?
-
Re: Higher Computing Coursework Task HelpWhat're you finding a problem?(Original post by bah21)
I get what to do, but its just i can't code it..
-
Re: Higher Computing Coursework Task Help
Regarding Part 2, I have one Desktop computer, but I can't find another which meets the specifications. For anyone that's willing to help:
Minimum Six Core Processor
Minimum 6Gb RAM
Minimum 1 Terabyte of backing storage
Sound Card with Surround Sound capability
Help? -
Re: Higher Computing Coursework Task Help
Hi guys,
I managed to get the getinputs, validation and also the counting occurences sorted, and also its displaying right.
although i don't know how to enter in 3 inputs and store them in 1 array. can someone help me?
i try to do it in a different sub procedure, but it just overlaps the result. -
Re: Higher Computing Coursework Task HelpYou'd need to explain what you've got so far in more detail. For example, what does this one array contain?(Original post by bah21)
although i don't know how to enter in 3 inputs and store them in 1 array. can someone help me?
Overlaps?i try to do it in a different sub procedure, but it just overlaps the result. -
Re: Higher Computing Coursework Task Help
hi, so i've pretty much finished all the coursework however im stuck at the algorithm and stepwise refinements. i got some help from one the computing teachers at my school and suggested that my first step is "set up arrays" but how would i refine that (im crashing this at higher, with no teacher by the way). thanks
