Question: Guys I really need help with this, I tried it so many times but whenever I test my code. I come across an error :(

CSI 2300 Lab Rules All code written in lab should be completed by yourself, without assistance from other students or copying from the Internet. You may use your notes, book and the Internet to look up information. Students may occasionally be interviewed to demonstrate their knowledge of the code they have written. Create your project using the name lastname_lab#, with proper substitutions. Objectives use Strings literals define and use primitive data declare and use of variables and constants create a and use a String variable in output define and use expressions and operator precedence use data conversions with casting accept input from the user using keyboard, and output to the monitor Use an if else block statement Instructions See second page for example output. Don't just output the number, precede it with a message saying what it is. (Focus initially on getting the correct value output, then add the messages if you have time.) Write a program that does the following using the variable names and types as specified below: 1) Declare the following vanables a) three variables of type int b) a String constant and assign it your first name only, i.e. "Jane 2) Output some words followed by the value of the String constant. 3) Prompt the user to input two positive int values and assign them to your first 2 int variables. 4) Use an if structure to print out the larger of the 2 int variables 5) Divide the first integer by the second integer and output the value 6) Divide the first integer by the second integer and output the value, but use casting to output a double 7) Divide the second integer by the first integer and output the value 8) Divide the second integer by the first integer and output the value and use casting to output a double 9) Assign to the third int variable the result of this formula a) sum the first two integers and then multiply the sum by 120 b) output the third int value Example output. User response is bolded My name is Laura enter a positive integer: 56 enter a second positive integer: 13 Largest is 56 first int divided by second int is 4 After casting result is 4.3076923076923075 second int divided by first int is 0 After casting result is 0.23214285714285715 Result of formula is 8280
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
