Computers and Technology

The program in this starter code does NOT work as intended. Your job is to find out why and fix the issue. The program asks the user for two positive integers and will determine if both numbers are odd, if both numbers are even, or if one number is odd and the other number is even. Test and run the program to see how it behaves BEFORE diving into resolving the issue.

Take notes as you work. You’ll need to answer the following questions in the free response that follows.
1. What was wrong with the program?
2. What expression was the programmer trying to use that gave the error?
3. How did you resolve the error?

HINT: The error can be resolved in the OddEven class


The program in this starter code does NOT work as intended. Your job is to find out why and fix the
The program in this starter code does NOT work as intended. Your job is to find out why and fix the

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:10, kellysimkin6196
Read the code below. what will the computer print if the input for year_variable is 1700? if year_variable == 1776: print("your answer is correct. the declaration of independence was signed in “year_variable”.") elif year_variable < 1776: compute_variable = 1776 - year_variable. print("add “compute_variable“ years to your answer for the correct answer.") elif year_variable > 1776: compute_variable = year_variable - 1776 print("subtract “compute_variable” years from your answer for the correct answer.")
Answers: 1
image
Computers and Technology, 22.06.2019 14:30, chaparro0512
Create a pseudocode design to prompt a student for their student id and the titles of the three classes they want to add. the solution should display the student’s id and a total bill. • bill a student using the following rules: o students can only add up to 3 classes at a time.
Answers: 3
image
Computers and Technology, 22.06.2019 23:30, jhonpiper
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
image
Computers and Technology, 23.06.2019 00:30, lm18618
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
Do you know the correct answer?
The program in this starter code does NOT work as intended. Your job is to find out why and fix the...

Questions in other subjects:

Konu
Mathematics, 29.10.2020 18:30
Konu
Arts, 29.10.2020 18:30