0% found this document useful (0 votes)
4 views1 page

Programming Retrieval Task

The document outlines a programming retrieval task that includes questions on programming theory, such as the definition of variables, the difference between selection and iteration, and data types. It also provides a programming task where a VB.Net program must be created to perform basic arithmetic operations on two user-input numbers. The program should display the results clearly for the user.

Uploaded by

rafsefen23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Programming Retrieval Task

The document outlines a programming retrieval task that includes questions on programming theory, such as the definition of variables, the difference between selection and iteration, and data types. It also provides a programming task where a VB.Net program must be created to perform basic arithmetic operations on two user-input numbers. The program should display the results clearly for the user.

Uploaded by

rafsefen23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Starter -> ‘Do now’ ‘Programming’ retrieval task

Task 1 – Programming Theory


Answer the following questions:
 What is a variable and why do we use them in programs? A value which stores data.
 What is the difference between selection and iteration? Selection is where commands are executed if a
condition is met, but an iteration is where commands are executed for a specific amount of lopps
 Write down an example of an IF statement in pseudocode.
If age < 18 then
[Link](“You are an adult!”)
End If
 What is the difference between integer and string data types? Integer stores whole numbers and strings can
store numbers,characters and symbols
 What does it mean when we say a program should have validation?
It should validate all responses giving the correct response without any errors.

Part 2 – Programming Task (New project: Maths Task)

Write a [Link] program that:

 Asks the user to enter two numbers.


 Calculates and outputs the sum, difference, product, and quotient of the numbers.
 Displays the results clearly, e.g.:
o Enter first number: 8
o Enter second number: 4
o The sum is: 12
o The difference is: 4
o The product is: 32
o The quotient is: 2

You might also like