total = 0 for counter in range (0, 10): print("Please insert a number") number = int(input()) while number < 0 or number > 10: print("Try again") number = int(input()) total = total + number print(total)
for counter in range (1, 6): print(counter)
Pseudocode was used to design the program. State another technique that could be used to design the program.
Sam is creating a program to calculate and display the total cost of laying new flooring. Flooring is charged at £15 per square meter and skirting boards are charged at £60 per room.
The total cost is calculated by multiplying the total floor area by 15, then adding the number of rooms requiring skirting multiplied by 60.
Using the information above, design a user interface for the program.
2022 10 a)
Line 3 RECEIVE score FROM KEYBOARD
Line 4 IF score = 5 OR score = 10 OR score = 15 THEN
Line 5 IF NOT(score >= 3 AND score <= 12) THEN
Line 6 SEND "Success" TO DISPLAY
Line 7 END IF
Line 8 END IF
State the score that should be input in Line 3 to display ‘Success’.
The following are key shortcuts for using BalfSlideView and reveal.js.
|→, PAGE DOWN, SPACE||Next slide|
|←, PAGE UP||Previous slide|
|SHIFT + →||Last Slide|
|SHIFT + ←||First slide|
|W||Widget Board/White Screen|
|C||Toggle Notes Canvas|
|DEL||Clears Whiteboard/Notes Canvas|
|S||Show Presenter Mode|
|SHIFT + D||Toggle Dark Mode|
|H||Goes to the Home Slide|
|META + P||Show Print options window|
In order to use the 'Start Remote' feature, you'll need to download JB Slide Controls from the Apple App Store. Once you have this you'll be able to control the slides using the app from you Apple Watch.
BalfSlideView and jamiebalfour.scot are copyright © Jamie B Balfour 2017 - 2023, 2010 - 2023. Content is copyright © Jamie B Balfour