Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. What would be the value of bonus after the following statements are executed? int bonus, sales = 85000 char dept = 3 if (sales

image text in transcribed
4. What would be the value of bonus after the following statements are executed? int bonus, sales = 85000 char dept = 3 if (sales > 100000) if (dept "R") bonus - 2000; else bonus = 1500; else if (sales > 75000) if (dopt "R") bonus 1250; else bonus = 1000; else bonus = 0; 5. What does the following code display? double x = 12.3798146; System.out.printf("%.2f ", x); 6. What will be the value of x after the following code is executed? int x, y = 4, Z = 6; x = (y++) * (++z)

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_2

Step: 3

blur-text-image_3

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

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions