ICT 1511
Assignment 4
2020
Semester 2
, QUESTION ONE
VARIABLLE NAME DOES IT COMPLY? CORRECT VARIABLE NAME
1. 4sweetsprice no sweetsPrice
2.Test&mark no testMark
3.thenumberofitemsbought yes
4.6547874 no The variable named should
start with an uppercase letter
underscore or dollar sign
5.Price per item no pricePerItem
6.empName yes
7.$carprice yes
QUESTION TWO
Planning
Description Type Variable Name
Input
Gets the input from String nameInput
Keyboard Input the keyboard which
gets stored in
nameInput
Gets the input from Integer ageInput
Keyboard Input the keyboard for age
which gets stored in
ageInput
Gets the input from String genderInput
Keyboard Input the keyboard for
gender which gets
stored in genderInput
Output
Display Text Displays the name String nameInput
Display Text Displays the age Convert to String ageInput
Display Text Displays the gender String genderInput
Assignment 4
2020
Semester 2
, QUESTION ONE
VARIABLLE NAME DOES IT COMPLY? CORRECT VARIABLE NAME
1. 4sweetsprice no sweetsPrice
2.Test&mark no testMark
3.thenumberofitemsbought yes
4.6547874 no The variable named should
start with an uppercase letter
underscore or dollar sign
5.Price per item no pricePerItem
6.empName yes
7.$carprice yes
QUESTION TWO
Planning
Description Type Variable Name
Input
Gets the input from String nameInput
Keyboard Input the keyboard which
gets stored in
nameInput
Gets the input from Integer ageInput
Keyboard Input the keyboard for age
which gets stored in
ageInput
Gets the input from String genderInput
Keyboard Input the keyboard for
gender which gets
stored in genderInput
Output
Display Text Displays the name String nameInput
Display Text Displays the age Convert to String ageInput
Display Text Displays the gender String genderInput