Visual Logic Console for all inputs and outputs.
Use Visual Logic Console for all inputs and outputs. If you are not familiar with Visual Logic, a flow chart can be used instead of a program to answer the questions that require Visual Logic.
Choose any 4 out of 5 Questions.
1. Write a Visual Logic program that calculates the following.
a) The user enters an amount
b) The program calculates the interest at 5%. Write a procedure to calculate the interest earned and the total amount which includes the interest.
c) Write the output using format currency to display the interest earned and the total amount calculated in b).
Copy and paste the program and the output for credit and upload the program file.
2. Write a Visual Logic program where the user rolls two dice and the program displays the sum of them. Each dice contains numbers from 1-6.
a) Use random for the first dice. Display the first dice.
b) Use random for the second dice. Display the second dice.
c) Add them together as the sum.
Copy and paste the program and the output for credit and upload the program file.
If the highest subscript in an array is nine and the subscripts start at zero, what is the size of the array?
Think about arrays that they use in everyday life situations. What are the advantages of using these types of arrays? Are there any disadvantages?
5. a) Write a Visual Logic program to declare and populate an array to hold five student test scores.
b) Write a Visual Logic program to calculate the student’s average for the test scores. Output the average test score.
Sample Solution
Stage 4 lessons within the relatively new curriculum of Computer Science, and how literacy and numeracy can support learning in order to provide a fully inclusive learning environment.
The delivery school in Sherborne where I am employed is rated ‘Good’ by OFSTED (2017). It converted to an Academy in 2012 and holds approximately 1580 students aged 11-18. It has a relatively low number of students who have English as an additional language and the free school meal/pupil premium percentage is approximately 13% lower than national average (Gov.UK). For this assignment, I will use my Year 10 Computer Science class. This is a predominately male class with one female student. Their target grades range from grade 3 – 8, with the majority of students at the upper end of this range. The data for this class can be seen in Appendix A.
The subject content for this assignment is Python Programming, looking at how the incorporation of numeracy and literacy supports learning in this topic. All subjects to some degree use literacy and numeracy. Particularly having awareness of this in Computer Science is very important. Computer Science especially ‘has deep links with mathematics’ (DfE, 2013). Students are required as part of the OCR (Oxford and Cambridge) GCSE Computer Science Specification to complete a programming task which involves planning, reviewing and evaluating their programs. Lacking the basic literacy and numeracy skills would hinder students’ ability to complete this task.
The OCR syllabus states students must be able to apply Computer Science related mathematics confidently (OCR, 2018, p.8) and have the understanding of key mathematical elements laid out in Appendix B. In the aims of the National Curriculum for Computing it says that students must be able to ‘understand and apply the fundamental principles and concepts of computer science, including abstraction, logic, algorithms and data representation’ (DfE, 2013). This not only relates to the programming activities, but the syllabus clearly lays out that it includes both practical and theoretical contexts, and the use of computing-related mathematics within those contexts (OCR, 2018, p.31).
A detailed break-down of each lesson for this assignment can be seen in appendix. All the activities support literacy and numeracy (Appendix xx) . These lessons were conducted o