Your program display should look something like this (although the values will differ for each student): My family name is: Student My student id is: 12345678 myId is: 36 nLet is: 7 Expression #1 --> 43 Expression # 2 --> 29 Expression # 3 --> 18.0 Expression # 4 --> 0 Expression # 5 --> 21 Expression #6 --> 0.03252 Your exact output does not have to look like the example display above. For example, the part, "Expression #N -- >" can be the actual expression or some other wording. Note that the first two lines are output statements to display the values you have assigned to the variable myld and numLet; the following lines are output from your program run. This should all be done in one run of a single program, not several runs. Here are some REQUIREMENTS: 1. Assign personal information (family name, student id) to String variables. 2. Hardcode values for myld and nLet. 3. Assign the arithmetic expression results to a variable. Use as few variables as possible. 4. Use a space around operators. 5. Perform the necessary data conversions to perform arithmetic operations. 6. As you can see in the sample run, the first thing your program needs to do is print out the values for your family (last) name and your student ID. 7. Ensure that your solution is well organized. Providing comments to organize your source code is recommended. 8. Format floating point numbers to 1 decimal place for expression 3 and to 5 decimal places for expression 6. 9. Title your program filename to read ArithYourLastName (e.g. for the example run provided the class name would be ArithStudent.java). .O. Only one run, please, which means you must produce all six answers in your program in a single source file. .1. Expressions #1, #2 #4 and # 5 should use ordinary int arithmetic, which means using the int variables without any special tools. However, expressions #3 and #6 are meant to display the double accuracy that the divisions will produce, You should take appropriate action to do that. 2. Use as few variables as possible. You can, for example, use one intResult variable for the four int expressions and a second doubleResult variable for the two double expressions. However, not to use six separate result variables.
Your program display should look something like this (although the values will differ for each student): My family name is: Student My student id is: 12345678 myId is: 36 nLet is: 7 Expression #1 --> 43 Expression # 2 --> 29 Expression # 3 --> 18.0 Expression # 4 --> 0 Expression # 5 --> 21 Expression #6 --> 0.03252 Your exact output does not have to look like the example display above. For example, the part, "Expression #N -- >" can be the actual expression or some other wording. Note that the first two lines are output statements to display the values you have assigned to the variable myld and numLet; the following lines are output from your program run. This should all be done in one run of a single program, not several runs. Here are some REQUIREMENTS: 1. Assign personal information (family name, student id) to String variables. 2. Hardcode values for myld and nLet. 3. Assign the arithmetic expression results to a variable. Use as few variables as possible. 4. Use a space around operators. 5. Perform the necessary data conversions to perform arithmetic operations. 6. As you can see in the sample run, the first thing your program needs to do is print out the values for your family (last) name and your student ID. 7. Ensure that your solution is well organized. Providing comments to organize your source code is recommended. 8. Format floating point numbers to 1 decimal place for expression 3 and to 5 decimal places for expression 6. 9. Title your program filename to read ArithYourLastName (e.g. for the example run provided the class name would be ArithStudent.java). .O. Only one run, please, which means you must produce all six answers in your program in a single source file. .1. Expressions #1, #2 #4 and # 5 should use ordinary int arithmetic, which means using the int variables without any special tools. However, expressions #3 and #6 are meant to display the double accuracy that the divisions will produce, You should take appropriate action to do that. 2. Use as few variables as possible. You can, for example, use one intResult variable for the four int expressions and a second doubleResult variable for the two double expressions. However, not to use six separate result variables.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
I need help with this Java Lab please help me
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education