• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

Hsc Task 1 (1 Viewer)

Cujo10

Member
Joined
Dec 15, 2017
Messages
121
Gender
Male
HSC
2019
Uni Grad
2024
How would you start pseudocode for this calculator Capture.JPG, btw i chose RNG function for the extra option
 

titanium_man23

New Member
Joined
Jul 19, 2017
Messages
21
Gender
Male
HSC
2018
How does a normal calculator work?

You would begin the program with inputting the first number, (INPUT num1), then deciding if you have your pre-conditional loops and have inputting the second number inside them, to mimic a real life calculator, or inputting the second number.

To decide which function is used, i'd also control this with a string input (INPUT numfunction). To show the working out, IF numfunction == 'subtraction':

On a side note, i can almost guarantee that some syntax from Python 3 has made its way into this, but yeah.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top