Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Answer question iii please ans File Edit View Navigate Source Refactor Run Debug Profle Team Tools Window Help Lab1 Part1-NetBeans IDE 8.2 cdefault conf... Search

Answer question iii please image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
ans File Edit View Navigate Source Refactor Run Debug Profle Team Tools Window Help Lab1 Part1-NetBeans IDE 8.2 cdefault conf... Search (X+ ojects Start Page Lab1Partl jva O JavaApplication1 Source Packages E javaapplicaton1 Libraries 17 public static void main(String[I args) First program to try out Netbeans Systes.out.print In(Testing arathmetic and output) Systes.out.print In15 System.out.print In42) System.out.print In42+157 Systes. out.printIn (42-15 Systes.out.printinCesting ore rithnetic nd output Systen.out.printin15H42RD Systen.out print In(15 421 Systen.out printC15.842H Systen. out.print lni 1s.e + 42.0); System. out-print52 System out.print (15S 42) Systen. out.println(1s.e * 42.); 19 20 21 Lab1Part Source Packages E lablparti Lab 1Part!Java 23 neatile Libraries 25 26 27 28 29 Lab2Part i.pptx 31 32 Members Systes. out . println("15.42;! .. (35 -42)as.e - 42.0)) [15 42) -or -*(15.0 42.0)); + * + x Lab1Parti 34 35 36 37 38 39 36.6 LabtintoSpr13Part (Compat billity Mode 0- 1 AaBbCcDc 1.de x, x. A. e.- to see if the first error message goes away or changes When your program runs: Then NetBeans will open an output window (usually at the bottom of the screen) labeled "Output- Lab1Parti (run)". In this window, the output should look like the following: run: Testing arithmetic and output 15 42 42-15 27 After the last line of the output, you should see: BUILD SUCCESSFUL (total time: 0 seconds) Congratulations! You wrote a successful program! Questions to answer for Part 1 6 LabtintroSprt9Partt (Compatibility Mode Home Questions to answer for Part 1 1.a) In the code you just compiled and ran, i) what output was given for: (3 pts) System.out.println(C"42-15"); 42-15 ii) and what output was given for System.out.println(42-15) (3 pts) 27 0 CSE 1310 -Spring 2019 Introduction to Programming ii) What do you see that is different about the two lines of code that might have caused the difference in the two outputs? (5 pts) ??77? 1841 Words English (US) 8 4 5 2 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions