Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

NEA CS Worksheet.docx

Beoordeling
-
Verkocht
-
Pagina's
19
Cijfer
A+
Geüpload op
03-12-2021
Geschreven in
2021/2022

NEA CS W. Questions and answers

Instelling
Vak

Voorbeeld van de inhoud

Centre Name: Centre Number:

The Winston Churchill School 64974


Date started Date completed
23/8/20 28/9/20




Analysis
Try and create 3 or more key success criteria for your program.

Success Criteria:

1. User-friendly (Clear instructions, functional time pauses)

2. Test the program consistently and look for errors then fix them errors

3. To evaluate the program include positives and negatives




Candidate Name:
Candidate Number:
Date:
Version 1 1 © OCR 2018

,Centre Name: Centre Number:



Design
 You may like to create a flow chart which will show broadly how your program will work. If so include your flow chart in this section.

 You must create pseudocode for a part of your program (minimum of 15 lines)

#Matthew Rohatynskyj
#NEA Project - Task 1 Music game
import random
import time
from colorama import Fore
x = 0

#AUTHENTICATION
username = input("What is your username?")
#Asking for an input of the password.
password = str(input("What is the password?"))

#If password is correct then allow user to continue.
if password == "abc123":
print("User Authenticated")

#If not then tell the user and stop the program
elif password != "abc123":
print("Password Denied")
exit()

#GAME
#Creating a score variable
Candidate Name:
Candidate Number:
Date:
Version 1 2 © OCR 2018

, Centre Name: Centre Number:


score=0

#Reading song names and artist from the file
read = open("songlist.txt", "r")
songs = read.readlines()
songlist = []

#Removing the 'new line' code
for i in range(len(songs)):
songlist.append(songs[i].strip('\n'))

while x == 0:
#Randomly choosing a song and artist from the list
choice = random.choice(songlist)
artist, song = choice.split('-')

#Splitting the song into the first letters of each word
songs = song.split()
letters = [word[0] for word in songs]

#Loop for guessing the answer in red using colorama package
for x in range(0,2):
print(artist, "".join(letters))
guess = str(input(Fore.RED + "Guess the song!"))
print('\033[37m')
if guess == song:
if x == 0:
score = score + 3
break

Candidate Name:
Candidate Number:
Date:
Version 1 3 © OCR 2018

Geschreven voor

Vak

Documentinformatie

Geüpload op
3 december 2021
Aantal pagina's
19
Geschreven in
2021/2022
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$9.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
FLYPASS

Maak kennis met de verkoper

Seller avatar
FLYPASS UNIVERSITY OF ASHFORD
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
5 jaar
Aantal volgers
1
Documenten
62
Laatst verkocht
-
STUDY DOCUMENTS STORE

STUDY DOCUMENTS STORE contains of a huge collection of all study documents for all courses. Notes, essays, summaries,Mark schemes, exam ellaborations etc. Don't struggle too much revising for exams or writing your assignments with limited study materials because now I GOT YOU!!. inbox me if there's a document you need and you can't find it among the uploaded documents ,I'll upload it for you immediately.. I WISH YOU ALL SUCCESS.

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen