Topics . Using methods from the String class Section 2.5 . Using conditional (if
ID: 3739882 • Letter: T
Question
Topics . Using methods from the String class Section 2.5 . Using conditional (if, if-else) statements- Chapter 3 Coding Guidelines . Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc). . Keep identifiers to a reasonably short length. . Use upper case for constants. Use title case (first letter is upper case) for classes. Use lower case with uppercase word separators for all other identifiers (variables, methods, objects). . Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes methods, and code associated with ifs, switches and loops. Be consistent with the number of spaceso tabs that you use to indent. .Use white space to make your program more readable. . Use comments after the ending brace of classes, methods, and blocks to identify to which block it belongs. Assignment/Lab Documentation At the beginning of each programming assignment you must have a comment block with the following informationExplanation / Answer
Solution:
Part-1:
code:
else
}
Part-2:
code:
else
else
}
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.