Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

There are two pics because I had to take it with my phone, but its one problem.

ID: 3748423 • Letter: T

Question

There are two pics because I had to take it with my phone, but its one problem. all choices are invalid or valid based on the statement.

Canvas Given the following statements, identify each as valid or invalid. Each statement should be taken independently from any other statement. int color 2, straw 1, red 3, lime, yellow; double black - 2.5, crayon 1.3, purple 3.0, green, blue, white; Statement Valid / Invalid white color 2.5/purple Select ] green color/purple + red; Select] I Select ] lime -color /red crayon; blue color + straw/ crayon 0.3; I Select ] [Select | green (color + straw )/( crayon +0.3); Select ] ime red / color + red % color; I Select ] blue red / black + red % color; I Select ] yellow red/ color + black/color; [Select ] purple straw /red color; l Select) yellow color straw + black - crayon purple; I Select ] yellow - color (straw + black) - crayon purple; [ Select ] lime - color straw + (black- crayon) purple

Explanation / Answer

1) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

2) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

3) Invalid (Reason - LHS is int type and RHS on evaluation will be of type double)

4) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

5) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

6) Valid (Reason - LHS is int type and RHS on evaluation will also be of int type) [int/int = int]

7) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

8) Invalid (Reason - LHS is int type and RHS on evaluation will be of type double)

9) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

10) Invalid (Reason - LHS is int type and RHS on evaluation will be of type double) [double/int = double]

Pic 2 Solutions:-

1) Invalid (Reason - LHS is int type and RHS on evaluation will be of type double)

2) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

3) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

4) Valid (Reason - LHS is int type and RHS on evaluation will also be of type int) [int/int = int]

5) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

6) Invalid (Reason - LHS is double type and RHS on evaluation will be of type int)

7) Valid (Reason - LHS is double type and RHS on evaluation will also be of type double)

8) Invalid (Reason - Syntax is invalid:- crayon purple, operator is missing)

9) Invalid (Reason - Syntax is invalid:- crayon purple, operator is missing)

10) Invalid (Reason - Syntax is invalid:- color straw, operator is missing)

Please let me know in case of any clarifications required. Thanks!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote