Last Minute Offer: FREE Complete Course Notes for all subjects you enrol in for TuteSmart 2019. Book free info appointment here.

Welcome, Guest. Please login or register.

January 24, 2019, 10:02:55 pm

Author Topic: HSC Software Design and Development Question Thread  (Read 1681 times)  Share 

0 Members and 1 Guest are viewing this topic.

DrDusk

  • Trailblazer
  • *
  • Posts: 29
  • Respect: +6
Re: HSC Software Design and Development Question Thread
« Reply #15 on: October 31, 2018, 06:51:20 pm »
+1
Hey!
In Pseudocode is it okay to have mutliple end statements?
My gut says no and i should just stop being lazy and implement some sort of validation but thought i'd check instead :)

IE If i was trying to check if all numbers in an array(lets call it array1 for the lols) were even and I wanted to be lazy:

BEGIN lazyeven
    let L be length of array1
    FOR i = 1 TO L STEP 1
         IF array(l) modulo 2 is not 0 THEN
               Display "Every item in the array is not even!!"
               END lazyeven
         END IF
    NEXT i
    Display "every item in the array is even!!"
END lazyeven

In that case it would be much better to use a Pretest loop instead of a counting loop. Something like WHILE even = true.
UNSW:
B.Advance Science(Physics)/Computer Science
HSC 2018:
Atar Aim: 95+ (Achieved)

DrDusk

  • Trailblazer
  • *
  • Posts: 29
  • Respect: +6
Re: HSC Software Design and Development Question Thread
« Reply #16 on: October 31, 2018, 06:55:48 pm »
0
Hey to all that are doing programming paradigms, there is a dotpoint in the syllabus:
 - Simplifying the development and testing of some larger software products

The textbook did not really cover this and am wondering what how programming paradigms can do this. I know that OOP can due to the development of self-contained modules of code that can be independently tested but what about logic or imperative paradigm.

Thanks!

For logic paradigm it takes away the need to specify every single process(Heuristics) as opposed to imperative, cutting down on development time.
UNSW:
B.Advance Science(Physics)/Computer Science
HSC 2018:
Atar Aim: 95+ (Achieved)

SpanishPear

  • Forum Regular
  • **
  • Posts: 64
  • Respect: +1
Re: HSC Software Design and Development Question Thread
« Reply #17 on: November 02, 2018, 08:38:48 am »
0
You can use BREAK or RETURN to exit early.

are BREAK and RETURN allowed in pseudocode though? Like I know you can do it in programming, but I've been told that there are only a set amount of things you can do in pseudocode, i havent seen BREAK or RETURN in any sample NESA answers either hence i was hoping someone would have an answer rip

JTrudeau

  • MOTM: APR 18
  • Trendsetter
  • **
  • Posts: 109
  • Master of the Meeses
  • Respect: +86
Re: HSC Software Design and Development Question Thread
« Reply #18 on: November 02, 2018, 09:42:05 am »
+1
are BREAK and RETURN allowed in pseudocode though? Like I know you can do it in programming, but I've been told that there are only a set amount of things you can do in pseudocode, i havent seen BREAK or RETURN in any sample NESA answers either hence i was hoping someone would have an answer rip

Usually you don’t use BREAK or RETURN.
For the example pseudo code you gave before, I would replace the first END statement with “i = L + 1”
That way when they go to increment i, it already falls outside the loop’s bounds and so they automatically break :)

Good luck today!!
Data Science, Finance || University of Sydney
== First in State for Software Design and Development 2017 ==
Advanced English | Maths Extension 1 | Maths Extension 2 | Economics | Software Design & Development | Chemistry

SpanishPear

  • Forum Regular
  • **
  • Posts: 64
  • Respect: +1
Re: HSC Software Design and Development Question Thread
« Reply #19 on: November 02, 2018, 09:56:41 am »
0
Oh!
I hadnt even thought of doing that!
I completely forgot you could alter the counter value!!

DrDusk

  • Trailblazer
  • *
  • Posts: 29
  • Respect: +6
Re: HSC Software Design and Development Question Thread
« Reply #20 on: January 09, 2019, 05:35:47 am »
+3
Hi Opengangs and JTrudeau,

I just want to say thank you for helping me through my HSC for Software Design and Development!

Really it helped me a lot and allowed me to achieve a mark of 95 which I didn't think I would ever get, especially since up to the day before the HSC I was so utterly confused about the option topic haha

So a big THANK YOU from my part! :)
« Last Edit: January 09, 2019, 05:39:45 am by DrDusk »
UNSW:
B.Advance Science(Physics)/Computer Science
HSC 2018:
Atar Aim: 95+ (Achieved)