Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Statement: Write a Java program (do not use Java loop statements!) that prints the program title and a menu with four items and performs

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Problem Statement: Write a Java program (do not use Java loop statements!) that prints the program title and a menu with four items and performs the required calculations on the selection you enter using the menu item descriptions: Student name: CIS 232 Introduction to Programming Homework 3 Due Date: February 28, 2023 Instructor: Dr. Lomako 1. Calculate and print the sum of the entered integers 2. Compute the area and the circumference of the circle 3. Determine the gross pay for an employee 4. Exit. Enter the number of selections: Item 1 description. Calculate and print the sum of the entered integers. Write a program-module that reads in the number of integers that will be entered (could be any number) Then calculate and print the sum of the entered integers. A sample of interactive Input/Output screen dialogue for the Item 1 should appear as follows: 1. Calculate and print the sum of the entered integers. How many integer numbers? 5 Enter number 1:78 Enter number 2: 19 Enter number 3:99 Enter number 4:33 1. Calculate and print the sum of the entered integers. How many integer numbers? 5 Enter number 1:78 Enter number 2: 19 Enter number 3: 99 Enter number 4:33 Enter number 5:22 The sum of 5 numbers is: 251 Item 2 description. Compute the area and the circumference of the circle. Enter a number for radius: 7 (this is an cxample; a radius can be any value) The area for the circle is 153.93791 The circumference for the circle is 43.98226 Item 3 description. Determine the gross pay for an employee. Write a program-module that will determine the gross pay for an employee. The company pays "straight-time" for the first 40 hours worked by each employee and pays "timeand-a-half for all hours worked in excess of 40 hours Your program should input this information for an employee and should determine and display the employee's gross pay. Samples of interactive Input Output sereen dialogue for the Item 2 should appear as follows: Enter hours worked a 35 Enter hourly rate of the worker: 10 Salary is $350 Or Enter hours worked t 45 Enter hourly rate of the worker: 10 Salary is $475 Item 4 description. Exit Thank You for using this program! Submission to Blackboard instructions (You may have only two submissions) Create HW3_YourLastName folder which includes the Thank You for using this program! Submission to Blackboard instructions (You may have only two subanissions) Create HW3_YourLastName folder which includes the following files: assignment report file: HW3_Report_LastName.doc program's source file: HW3_LastName.java program's bytecode file: HW3_LastName.class Zip HW3_YourLastName folder and submit HW3_YourlastName.xip file as your homework 3. The assignment report should be prepared by using word processing software. To write a program you should complete and include in your assignment report the following steps: Title: Student's name: CIS 232 Introduction to Programming HW3 Due Date: February 28, 2023 Instructor Dr. Lomako: 1. Problem statement ( 10%) - A clear and concise description of the problem. 2. Analysis (20\%) - An explanation of what the problem statement tells you to do and description of the general method used to solve the problem. 3. Design (20%) - Explanation of the algorithm designed to solve the problem. Concentrate on the general program logic that includes: 2. Structure chart of the program. b. Description of data transmission between the modules. c. Description of the algorithms using pseudo code or flowehart. 4. Development of the program (30%). Comment your code well at the top of each method, class, etc. including the title, inputs and outputs, etc. Comments are important because the well commented functions/logics are helpful to other programmers to Thank You for using this program! Submission to Blackboard instructions (You may have only two subanissions) Create HW3_YourLastName folder which includes the following files: assignment report file: HW3 Report_LastName.doc program's source file: HW3 LastName.java program's bytecode file: HW3_LastName.class Zip HW3_YourLast Name folder and submit HW3_YourLastName.zip file as your homework 3. The assignment report should be prepared by using word processing software. To write a program you should complete and include in your assignment report the following steps: Title: Student's name: CIS 232 Introduction to Programming HW3 Due Date: February 28, 2023 Instructor Dr. Lomako: 1. Problem statement (10\%)- A clear and concise description of the problem. 2. Analysis (20%) - An explanation of what the problem statement tells you to do and description of the general method used to solve the problem. 3. Design (20\%)- Explanation of the algorithm designed to solve the problem. Concentrate on the general program logic that includes: 2. Structure chart of the program. b. Description of data transmission between the modules. c. Description of the algorithms using pseudo code or flowehart. 4. Development of the program (30%). Comment your code well at the top of each method, class, etc. including the title, inputs and outputs, ete. Comments are important because the well commented functions/logics are helpful to other programmers to statement tells you to do and description of the general method used to solve the problem. 3. Design (20%) - Explanation of the algorithm designed to solve the problem. Concentrate on the general program logic that includes: a. Structure chart of the program. b. Description of data transmission between the modules. c. Description of the algorithms using pseudo code or flowchart. 4. Development of the program ( 30% ). Comment your code well at the top of each method, class, etc. including the title, inputs and outputs, etc. Comments are important because the well commented functions/logics are helpful to other programmers to understand the code better. 5. Test the program ( 10%). Using the test data show testing results and compare them with what you expected to have. 6. Run the program to solve the problem (5%). Show and explain results. The first lines of the output should have the title information. 7. Prepare user instructions of your program ( 5%)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions