Chapter 1 Lab
Algorithms, Errors, and Testing
Objectives
Be able to write an algorithm<...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 12.12.2020 17:00 krystalScott17
Chapter 1 Lab
Algorithms, Errors, and Testing
Objectives
Be able to write an algorithm
β’ Be able to compile a Java program
β’ Be able to execute a Java program using the Sun JDK or a Java IDE
β’ Be able to test a program
Be able to debug a program with syntax and logic errors
Introduction
+
Your teacher will introduce your computer lab and the eavironment you will be using
for programming in Java.
In chapter 1 of the textbook, we discuss writing your first program. The example
calculates the user's gross pay. It calculates the gross pay by multiplying the number of
hours worked by hourly pay rate. However, it is not always calculated this way. What
if you work 45 hours in a week? The hours that you worked over 40 hours are consid-
ered overtime. You will need to be paid time and a half for the overtime hours you
worked.
with
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word βforeshadowβ seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:40
Use a software program or a graphing utility with matrix capabilities to solve the system of linear equations using an inverse matrix. x1 + 2x2 β x3 + 3x4 β x5 = 6 x1 β 3x2 + x3 + 2x4 β x5 = β6 2x1 + x2 + x3 β 3x4 + x5 = 3 x1 β x2 + 2x3 + x4 β x5 = β3 2x1 + x2 β x3 + 2x4 + x5 = 5
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 13:50
Write a program that performs a simple n-body simulation, called "jumping leprechauns." this simulation involves n leprechauns, numberd 1 to n. it maintains a gold value g_i for each leprechaun i, which begins with each leprechaun starting out with a million dollars worth of gold, that is, g_i = 1000000 for each i = 1,. in addition, the simulation also maintains, for each leprachaun,i, a place on the horizon, which is represented as a double-precision floating point number, x_i. in each iteration of the simulation, the simulation processes the leprachauns in order. processing a leprachaun i during its iteration begins by computing a new place on the horizon for i, which is determined by the assignment:
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 19:30
Dtp allows you to manipulate text boxes in the following ways. more than 1 answer. a.move them b.rotate them c.resize them d.all of the above e.none of the above
Answers: 1
You know the right answer?
Questions
![question](/tpl/images/cats/biologiya.png)
Biology, 20.04.2020 23:27
![question](/tpl/images/cats/mat.png)
Mathematics, 20.04.2020 23:27
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 20.04.2020 23:28
![question](/tpl/images/cats/istoriya.png)
History, 20.04.2020 23:28
![question](/tpl/images/cats/istoriya.png)
History, 20.04.2020 23:28
![question](/tpl/images/cats/mat.png)
Mathematics, 20.04.2020 23:28
![question](/tpl/images/cats/mat.png)
Mathematics, 20.04.2020 23:28
![question](/tpl/images/cats/mat.png)
Mathematics, 20.04.2020 23:28
![question](/tpl/images/cats/mat.png)
Mathematics, 20.04.2020 23:28
![question](/tpl/images/cats/mkx.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 20.04.2020 23:28
![question](/tpl/images/cats/istoriya.png)
History, 20.04.2020 23:28
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 20.04.2020 23:28
![question](/tpl/images/cats/mat.png)