(Complete) ITWSPEC4 - Machine Problem 01

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

MOBILE APPLICATIONS DEVELOPMENT 2

MACHINE PROBLEM

1
(Swift Control Structures)

Name of Student Name of Professor

Data Performed Date Submitted


I. PROGRAM

1. Write a program code that will compute the factorial of a given number using for-in, while, and
repeat-while statements. The accepted value should be UInt32 only.

2. Create a program that will convert each number from a given integer to its equivalent word
value. The accepted value should be UInt16 only.

3. Create a program that will determine the position of a given point on an xyz coordinate system
given the following point position:
a. Origin
b. on xy – plane
c. on xz – plane

d. on yz – plane
e. in a given box

II. ASSESSMENT

Department Information Technology


Subject Code ITWSPEC4
Description Mobile Applications Development 2
Term/Academic Year

Note: The following rubrics/metrics will be used to grade students’ output in the Machine
Problem 1.

Program (50 pts) (Excellent) (Good) (Fair) (Poor)


Program execution Program executes Program executes Program executes Program does not
(20pts) correctly with no with less than 3 with more than 3 execute (10 – 11)
syntax or runtime errors (15 – 17 ) errors (12 – 14)
errors (18 – 20)
Correct output Program displays Output has minor Output has Output is incorrect
(20pts) correct output errors (15 – 17) multiple errors (10 - 11)
with no errors (18 (12 – 14 )
– 20)
Design of output Program displays Program displays Program does not Output is poorly
(10pts) more than minimally display the designed (5)
expected (10) expected output (8 required output
– 9) (6-7)
Design of logic Program is Program has Program has Program is
(20pts) logically well slight logic errors significant logic incorrect (10 - 11)
designed (18 – that do no errors (12 – 14 )
20) significantly
affect the results
(15 – 17)
Standards Program is Few inappropriate Several Program is poorly
(20pts) stylistically well design choices inappropriate written (10 - 11)
designed (18 – (i.e. poor variable design choices
20) names, improper (i.e. poor variable
indentation) (15 – names, improper
17) indentation) (12 –
14 )
Delivery The program was The program was The code was The code was
(10pts) delivered on time. delivered within a within 2 weeks of more than 2 weeks
(10) week of the due the due date. (6 – overdue (5)
date. (8 – 9) 7)

Topic Introduction to Swift


Machine Problem No. 01
Machine Problem Swift Control Structure
CLO

V. REFERENCES

http://www.developer.apple.com

You might also like