0% found this document useful (0 votes)
182 views

ITC2

The document describes a technical summative assessment for a programming course. Students are asked to create a "PrintSequence" controller class with three methods - MarioFlagPole, BoxedFrame, and HoneyComb. Each method accepts arguments and outputs a different sequence or pattern. MarioFlagPole outputs a flag pole, BoxedFrame outputs a box frame, and HoneyComb outputs a honeycomb pattern. The document also provides examples of inputs and outputs for each method and the rubric used to grade the assessment.

Uploaded by

Ducog Jhory A
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
182 views

ITC2

The document describes a technical summative assessment for a programming course. Students are asked to create a "PrintSequence" controller class with three methods - MarioFlagPole, BoxedFrame, and HoneyComb. Each method accepts arguments and outputs a different sequence or pattern. MarioFlagPole outputs a flag pole, BoxedFrame outputs a box frame, and HoneyComb outputs a honeycomb pattern. The document also provides examples of inputs and outputs for each method and the rubric used to grade the assessment.

Uploaded by

Ducog Jhory A
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Arellano University – Andres Bonifacio Campus

School of Information Technology Education

IT218
(ELECTIVE 3)

TECHNICAL SUMMATIVE ASSESSMENT

1
NAME:Ducog,Jhory A DATE: 11/13/22
COURSE: BSIT-2
SECTION:2
Create a controller class, "PrintSequence" that will generate a view according to the descriptions
provided in each methods. Then, in your newly created controller create 3 different methods,
namely :

1.) MarioFlagPole
- Accepts 1 argument, which is the Flag Pole Size.
- The segment that handles your argument should only accept numbers.

Example:

Argument : 5
Output :

2.) BoxedFrame
- Accepts 2 arguments
- The segments that refers to your arguments should only accept numbers.

Arguments:
1 - Row Size
2 - Column Size

Examples:

Arguments:
1=8
2=5
Arguments:
1=8
2=6

Arguments:
1=8
2=7
Arguments:
1=5
2=8

3.) HoneyComb
- Accepts 2 arguments
- The segments that refers to your arguments should only accept numbers.

Args:
1 - Row Size
2 - Column Size

Example :
Arguments :
1=1
2=1
Arguments :
1=1
2=2

Arguments :
1=2
2=2
Note: The following rubrics/metrics will be used to grade students’ output in the Technical
Summative Assessment 1.

Program (100 pts.) (Excellent) (Good) (Fair) (Poor)


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

1. MarioFlagPole

<?php
for($i=1; $i<=5; $i++)
{
for($j=5; $j>=1; $j--)
{
if($j > $i)
echo "&nbsp;&nbsp;";
else
echo $j;
}
echo "<br>";
}
?>

2. BoxedFrame

<?php

$size = 8;
for($i = 0; $i < $size; $i++) {
for($j = 0; $j < $size; $j++) {
if($i === 0 || $i === $size - 1) {
echo "*";
}
else {
if($j === 3 || $j === $size - 1) {
echo "*";
}
else {
// print star only in first and last position row
if($j === 0 || $j === $size - 1) {
echo "*";
}

else {
// use &nbsp; for space
echo "&nbsp;&nbsp;";
}
}
}
}
echo "<br>";
}
?>
3. HoneyComb

<?php
// First Part
for($i=2; $i<=5; $i++)
{
for($j=5; $j>=1; $j--)
{
if($i == $j)
echo $j;
else
echo "&nbsp;&nbsp;";
}
for($k=2; $k<=5; $k++)
{
if($i == $k)
echo $k;
else
echo "&nbsp;&nbsp;";
}
echo "<br>";
}
// Second Part
for($i=4; $i>=2; $i--)
{
for($j=5; $j>=1; $j--)
{
if($i == $j)
echo $j;
else
echo "&nbsp;&nbsp;";
}
for($k=2; $k<=5; $k++)
{
if($i == $k)
echo $k;
else
echo "&nbsp;&nbsp;";
}
echo "<br>";
}
?>

You might also like