Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Lab 2

1. Change the following segment of code to use a switch statement:


if (A = = 4)
{
statement1;
}
else if (A == 6)
{
statement 2;
}
else if (A == 8)
{
statement 3;
}
else
{
statement 4 ;
}

2. Is the following relation in frst normal form (1NF)? If not, change the
table to make it pass 1NF criteria.
A B C D
1 70 65 14
2 25, 32, 71 24 12, 18
3 32 6, 11 1

You might also like