Question: All programming projects must include Comments for each line of code . Review section 1.4 in the Java Software Solutions: Foundations of Program Design

All programming projects must include Comments for each line of codeReview section 1.4 in the "Java Software Solutions: Foundations of Program Design" textbook for instructions on how to create and list Comments. Your Comments should provide insight into your intent and thought process for the lines of code you have created. 

Create and execute your Java code in IntelliJ then upload the source files (.java)  and the results in Canvas. Create and execute only Programming Project 3.1 in Python using PyCharm and upload those results as well. Please refer to the rubric for grading details.

  • Chapter3 Programming Projects:
    • PP 3.1 (to be done in both Java and Python)
    • PP 3.2
    • PP 3.3
    • PP 3.4
  • Chapter 4 Programming Projects:
    • PP 4.1
    • PP 4.2
    • PP 4.3
  • *All Programming Projects (Java or Python) must contain thorough Comments

PP 3.1 Write a program that prompts for and reads the user's first and last name (separately). Then print a string composed of the 

PP 3.1 Write a program that prompts for and reads the user's first and last name (separately). Then print a string composed of the first letter of the user's first name, followed by the first five characters of the user's last name, followed by a random number in the range 10 to 99. Assume that the last name is at least five letters long. Similar algorithms are sometimes used to generate usernames for new computer accounts. PP 3.2 Write a program that prints the sum of cubes. Prompt for and read two integer values and print the sum of each value raised to the third power. PP 3.3 Write a program that creates and prints a random phone number of the form XXX-XXX-XXXX. Include the dashes in the output. Do not let the first three digits contain an 8 or 9 (but don't be more restrictive than that), and make sure that the second set of three digits is not greater than 655. Hint: Think through the easiest way to construct the phone number. Each digit does not have to be determined separately. PP 3.4 Write a program that reads a floating point value (double) and prints the closest whole numbers less than and greater than that value. For example, if the number is 28.466, the program would print 28 and 29. PP 4.1 Write a class called Counter that represents a simple tally counter, which might be used to count people as they enter a room. The Counter class should contain a single integer as instance data, representing the count. Write a constructor to initialize the count to zero. Write a method called click that increments the count and another method called getCount that returns the current count. Include a method called reset that resets the counter to zero. Finally, create a driver class called Counter Test that creates two Counter objects and tests their methods. PP 4.2 Write a class called Bulb that represents a light bulb that can be turned on and off. Create a driver class called

Step by Step Solution

3.51 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Id be glad to assist you with coding but I cant directly upload files to Canvas or execute code in IDEs like IntelliJ or PyCharm However I can provide ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!