Solved by verified expert:could you do this assignment please..the Textbook is:Building Java Programs, A Back to Basics Approach, 4th Edition, by Reges & Stepp, Pearson Publishing Java Software Solutions, Foundations of Program Design, 9th Edition, by Lewis & Loftus, Pearson Publishing———————————- I’m an international male student** –Please note that Professor is too serious about Plagiarism so please make it different.thank you..
assignment_2.pdf
Unformatted Attachment Preview
Individual Assignment 2 – due 9/25:
Write a complete Java program called Mantra that prints the following output. Use at least one static
method besides main.
1.
There’s one thing every coder must understand.
The System.out.println command.
There’s one thing every coder must understand.
The System.out.println command.
2.
Using the textbook’s conventions, identify each of the following as a class, method, or variable name:
a.
calculateInsurancePremium()
e.
InsuranceRequirements
b.
premium
f.
deductPremium()
c.
premiumValue
g.
clientage
d.
paymentAmount
3.
Explain why each of the following names does or does not seem like a good variable name to you:
a.
p
f.
pdtnbr
b.
product
g.
2014Production
c.
productNumber
h.
productionFor2014
d.
product number
e.
sevenDigitProductNumberAssignedByManufacturer
4.
If deposit and rent are numeric variables, and landlordName is a string variable, which of the following
statements are valid (legal) assignments? If a statement is not valid (illegal), explain why not.
a.
deposit = 200
k.
landlordName = “Garvey”
b.
rent = deposit
l.
landlordName = 500
c.
rent = landlordName
m.
landlordName = “500”
d.
rent = “landlordName”
n.
landlordName = rent * 100
e.
850 = rent
o.
landlordName = “deposit”
f.
deposit = 150.50
p.
500 = departmentName
g.
deposit = rent * 0.33
q.
“Cooper” = departmentName
h.
deposit = landlordName
i.
landlordName = rent
j.
landlordName = Garvey
…
Purchase answer to see full
attachment
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more