Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Easy and short fix: help me fix my error Visual Basic question Write a statement using a compound assignment operator to cut the value of

Easy and short fix: help me fix my error
Visual Basic question
Write a statement using a compound assignment operator to cut the value of PAY in half.
My code submitted: meets 2 out of 3 tests
pay / = 2
Feedback below
image text in transcribed
image text in transcribed
O PREV NEXT Exercise 40962 WORK AREA RESULTS CODELAB ANALYSIS: LOGICAL ERROR(S) More Hints: Solutions with your approach don't usually use: / Problems Detected: The value of pay is incorrect. YOUR SUBMISSION Possible locations of errors or opportunties for inprovement have been marked. (Details). pay -2 TEST CASE TABLE Testing with these values... results in pay pay #1 X 3 #2 v/ 45 #3 v/ 100 45 200 Show More... SUBMISSION LIMITS NOTE: This section allows a maximum of 3 attempts per exercise. While you can keep submitting solutions past that limit, they will NOT be counted! By default, we display your latest submission, regardless of whether or not it has been counted. You have made 2 attempts with 1 attempt remaining. Submission Markup Key Submission markups are an attempt to draw your attention to those parts of your submission which might be in error or which could stand improvement. The operative word here is might. The markups are not guaranteed to be accurate and are only offered as a guide. You should keep your textbook and class notes handy Possible insertions are indicated with inverted red triangles Possible deletions are indicated by highlighting the background of the text with pink: like this. Text that might possibly need replacement with something else is indicated by highlighting the background of the text with gray: like this. Roll your mouse over the markers for toottips" with more information EXAMPL Instructions: Assign 8 to an already declared int variable numberOrPlanets. Submitted: int numberOfPlanets 9 Markup: int numberOfPlanets -9 Explanation: "int" is on a pink background, marked for deletion: there's no need to declare anything; "9" is on a gray background because it is marked for replacement. An insertion marker (red triangle) appears at the end because a semicolon is needed. Show Mone SUBMISSION LIMITS NOTE: This sectioe allou

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. What are the different types of networks?

Answered: 1 week ago