All programs should be documented using comments at the top of your class. These comments should include your name, the date and course number that you are enrolled in. Start using inline comments in...

All programs should be documented using comments at the top of your class. These comments should include your name, the date and course number that you are enrolled in. Start using inline comments in order to explainyour code step by step.Use only knowledge covered up to this point, in class and by the lecture notes. Use of predefined methods (part of Java API) that were not mentioned in class and/or lecture notes shouldn’t be use. Using sources as Internet is not allowed. Write the programs on your own, without practice you will never learn. If you have specific questions, email me.NOTE: all the methods that are required in this homework are static methods. Problem 8a Create a class called “LastnameProblem8a”Write a programthat will prompt the user for the triangle’s size, and based on the size it will display a triangle with the following format:How large a triangle do you want? 8876543217654321654321543214321321211Problem 8b)Create a class called “LastnameProblem8b”Write a programthat will prompt the user for the triangle’s size, and based on the size it will display a triangle with the following format:How large a triangle do you want? 7XXXXXXXXXXXXXXXXXXXXXXXXXXXXNote: you might need 3 for loops. Problem 8c Write a method named isValidthat takes as parameter an integernumber. If the number is an integer AND in the range [1,100] the method will return true, otherwise it will return false.Write a methodnamedisOddthat takes as parameter an integer number in the range [1.100] and it will return true if the number is odd, false otherwise.A spy numberis a numberwhere the sum of its digits equals the product of its digits. Example 1124.
Apr 24, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here