Answer:
This will work for most languages, but this is mainly for c#. Double check what language your using before putting in this answer.
Console.WriteLine("What grade are you in?");
int grade = Convert.ToInt32(Console.ReadLine());
if (grade == 9)
{
Console.WriteLine("Freshman");
}
if (grade == 10)
{
Console.WriteLine("Sophomore");
}
if (grade == 11)
{
Console.WriteLine("Junior");
}
if (grade == 12)
{
Console.WriteLine("Senior");
}
if (grade < 8)
{
Console.WriteLine("Not in High School");
}
Explanation:
The first line asks what grade are you in, then when the user types in the grade it saves it in a variable. We then use that variable for the conditionals. The conditional states, whatever grade level your in, it prints your high school year title. If anything is lower than 8, it will print not in high school.
Answer:
map or compass or follow a trail so you don't get lost
Explanation:
Answer:
Option C: {{4, 1, 7}, {-10, -11, -12}}
Explanation:
There is a logical error in the inner loop.
for (int j = 0; j < num.length; j++)
It shouldn't be "j < num.length" as the iteration of the inner loop will be based on the length of the row number of the two dimensional array. The inner loop is expected to traverse through the every column of the same row in the two dimensional array and sum up the number. To fix this error, we can change it to
for (int j = 0; j < r.length; j++)
<em>The answer is : It highlights the contrast between the Dursley's excitement for the dinner and Harry's loneliness.
</em>
<em>
</em>
<em>Harry is a lonely boy as he must remain outcast and invisible to Dursley's visitors. During this time, Dursleys are expecting some visitors which has relation to Vernon's job. Harry must stay in the bedroom so the visitors won't see him and won't ask some things about him. Since they are having a visitor, a dinner must be served to make the visit worthwhile which is what the Dursleys are looking forward to. </em>