Ass05
.docx
keyboard_arrow_up
School
Wayne State University *
*We aren’t endorsed by this school
Course
3020
Subject
Computer Science
Date
Dec 6, 2023
Type
docx
Pages
6
Uploaded by MateMandrill3698
CSC 3020
Java Programming
Assignment 5
50 points
Due 11/13/2023 11:59 PM
gAll assignments must be submitted by the Canvas. No email or hard copy
is accepted.
Submit your file to the Canvas. You must submit your assignment on time; otherwise, you
will receive zero. In addition, you cannot submit your file more than one time
. 1.
You need to upload your file(s) using the correct folder on the Canvas.
2.
Name each file: “
AccessID
_Assignment5.docx
Your .docx Format must be formatted as follows:
o
Use Header 1 Titled Code
o
User Header 2 Titled Class
List your Class code
Don’t just paste…insert page breaks as necessary.
o
User Header 2 Titled Main
List your Main code.
Don’t just paste…insert page breaks as necessary.
o
User Header 1 Titled Scenarios
o
User Header 2 Titled Scenario 1
Scenario Description
Scenario Picture (readable!!!).
o
User Header 2 Titled Scenario 2
o
User Header 2 Titled Scenario N
It is your responsibility to make sure that each file is uploaded correctly. If you
uploaded a wrong file, you receive zero; files will not be accepted after due date even if
you have a prove that the file is created before the due date. Your program should be free of syntax errors (i.e. it must compile). If it does not, you will receive a zero.
Solution to this assignment will not be posted on Canvas; however, any question can be discussed in the class upon request of a student.
Each solution text file MUST have the following flower box comment along with labels. /********************************************************************
Name: Access ID: Date: mm/dd/yyyy
CSC 3020
Java Programming
Assignment 5
50 points
Due 11/13/2023 11:59 PM
*******************************************************************/
CSC 3020
Java Programming
Assignment 5
50 points
Due 11/13/2023 11:59 PM
Write a java program that uses a rectangle class to take user input (50 pts). Coding Style
You must use appropriate variable names that are descriptive of the variable contents, method function, etc.
You must use single-letter variables for for loops.
You must name variables, method names, and classes using standards presented in class (i.e. camel case, or init capped).
You must use a Class Object to perform calculations.
The main loop drives the menu options.
You must use class methods to perform menu items.
When prompting for data, make sure there are no errors in response. Respond appropriately and then re prompt.
Each method MUST have a flower pot comment which also includes a description of what the method does. This will be placed BEFORE the actual method declaration.
/************************************************************************
Method Name
:
Method Description
:
<what does this method do.>
<what’s special about this method (i.e. is it overloaded?, any assumptions )
Method Input Parameters
:
<param 1> what it contains. <param 2> what it contains.
If no parameters, say that instead.
Method Return Parameters
<param 1> what is sent back
Author Name:
Author Access ID:
Author Date:
*************************************************************************/
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Creat a data file which stores all the email id's class students. Also read the all email id's of the student from the data file and display names on the screen..
arrow_forward
Laboratory Exercise Party Planner Objective: At the end of the exercise, the students should be able to: Create a menu bar with multiple user options. Apply event. Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1. Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive. 2. Create a new project named LabExer8. Set the project location to your own folder. 3. Construct import statements to use the packages listed below: javax.swing java.awt java.awt.event 4. Extend the JFrame class and implement the ActionListener interface. 5. Create a JMenuBar named mainBar and two (2) Menu objects named menut and menu2. Set the text of menu 1 as File and the text of menu2 as Event Type. 6. Create the items that will appear in the menus. The File menu shall contain an Exit submenu. Name the object exit. The Event Types menu shall contain two (2) submenus: Adult and Child. Name the objects adult and hild, respectively. The bmenu consist…
arrow_forward
5. Zip your folder then submit only the zipped file on blackboard.
arrow_forward
M7Pro_Files
Upload your accounts python file here
What to do:
U are to create a report for users that will list their student id number, last name, and first name. Also, you will list their username and email address
The input file is linked below
studentInfo.txt
(opens in new window)
Note: You are to add YOUR first and last name in the first row ( instead fo Mr. Cameron's), the ID SHOULDN'T be your real ID, just a imaginary number there
The output file that your program will generate should look like the one linked below:
loginInfo.txt
(opens in a new window)
Given a text file , studentInfo.txt , linked above (or U can use one you created) that contains only last name( field size = 10) and first name(field size is 10) and student id numbers (field size is 7) you will create a report that will generate the usernames as well as student email accounts as shown in the loginInfo.txt linked above.
Notice that the login name consists of the first 7 characters of the last name, the…
arrow_forward
Create user Peter, Brian and Cindy, create group Family and Friend. Add user Peter and Brian to the Family group, add Cindy to the Friend group. Set up password for all three users.
Log in as Peter, create a file “Peter-file1”, set up permission to allow Brian to read and modify the file, but not Cindy.
Verify your set up to see Peter and Brian can read and modify the file, but not Cindy.
Take screenshot of your configuration.
arrow_forward
Plotting assignment
Create 4 subplots of y = x, y2 = x², y3 = x³, and y4 =
Vx. Use 10 points between x =
red circles, y2 = x2 use green dashes, y3 = x3 use blue
triangles, and y4 = Vx use black squares. Also, give each
subplot a title. Include a command to save the figure as a
PNG file so that it can be imported into another program
such as Microsoft PowerPoint.
0 to x:
10. For y1
= x use
Show me the figure on the PNG file
arrow_forward
MM Image Processing Project
Use your own images that are different than the images in the tutorial file.Include in your report the following only:
1) all the commands producing images,
2) the images produced, and
3) comment briefly on every image showing what was done and describe the result.
All commands and comments MUST BE IN TEXT (NOT IMAGES).You may modify the filters and show the result as well.Compile all commands text that you used in an appendix.Save your WORD file as PDF as well.
arrow_forward
Murach's javascript and Jquery 4th edition (ch9 animation)
I need help with this assignment, please. thanks
Modify a carousel to use animationIn this exercise, you’ll modify a carousel application so that when an image in the carousel is clicked, an enlarged image is displayed using animation.1. Open the application in this folder:carouselThen, run the application and notice that an enlarged image of the first book in the carousel is displayed.2. Review the HTML for the application, and notice that it contains an img element with an id of “image” following the heading. Also notice that the href attributes of the <a>elements in the carousel are set to the URL of the enlarged image to be displayed when the associated carousel image is clicked.3. Code an event handler for the click event of the <a> elements in the list. This event handler should start by getting the URL for the image to be displayed. Then, it should assign this URL to the enlarged image.4. Add animation to…
arrow_forward
That answer is wrong. Can you please read the instructions.
arrow_forward
Besides there is an options menu that includes two options in the main activity. These are: 1. New Student 2. Exit When you click on the “New Student” option, a “New Activity” opens and the teacher enters the Student ID, Visa, Final Number, Phone Number and clicks the Add button. Thus, the student's information is recorded in the database. In addition, the grade point average is calculated by taking 40% of the student visa and 60% of the final. Both the grade point average and this student's phone number are sent to MainActivity. When registration is complete, the main activity is updated to include the list of the currently added student. In addition, if the average score coming from the main activity to NewActivity is equal to or greater than 50, an SMS is sent directly to the student's phone number indicating that he or she has passed the course. For this process, necessary permissions are obtained by following the permission procedure. If the student's average is less than…
arrow_forward
Search Algorithms
Dataset: We will use cars dataset as part of this project. The dataset is available as part of the assignment (cars.csv and a pdf that describe each of the fields for each record).
TASK 1
The idea of this project is to create a text-based application with the following options:
List all cars. This option will read from the file and when the user selects this option, the program will list all the cars in the file.
Find via Linear search. This option will allow the user to type a model of the car (ID field in the dataset) and it should print out the information about the car searched, the amount of time it took to find the car using linear search. For this option, create a class called SearchMethods and implement the method :
public static <T extends Comparable<T>> int linearSearch(T[] data, int min, int max, T target)
Find via Binary search. This option will allow the user to type a model of the car (ID field in the dataset) and it…
arrow_forward
Create a folder named LastName_FirstName(please write Dahanyoon (ex. Reyes_Mark) in your local
Create a new project named LabExer5A. Set the project location to your own
The program shall:
generate a random number from 1 to 50 for a player to guess;
display a message that indicates whether the player’s guess is correct, too low, or too high; and
prompt the user to keep on guessing until the correct value is entered
Create a try-catch structure that will handle two (2) exceptions. These are when the user inputs the following:
a number that is out of range (1 – 50)
a letter or any non-numeric character
Prompt the user so that he can guess again if an exception is
Display the number of total
Note: An invalid input (when an exception is thrown) is not considered a valid guess or attempt.
arrow_forward
Average Steps TakenA Personal Fitness Tracker is a wearable device that tracks your physical activity, caloriesburned, heart rate, sleeping patterns, and so on. One common physical activity that mostof these devices track is the number of steps you take each day.If you have downloaded this book’s source code from the Premium Companion Website,you will find a file named steps.txt in the Chapter 06 folder. (The Premium CompanionWebsite can be found at www.pearsonglobaleditions.com/gaddis.) The steps.txt filecontains the number of steps a person has taken each day for a year. There are 365 linesin the file, and each line contains the number of steps taken during a day. (The first line isthe number of steps taken on January 1st, the second line is the number of steps taken onJanuary 2nd, and so forth.) Write a program that reads the file, then displays the averagenumber of steps taken for each month. (The data is from a year that was not a leap year,so February has 28 day
(in Phyton)
arrow_forward
MULTIPLE CHOICE -The answer is one of the options below please solve carefully and circle the correct option Please write clear .
arrow_forward
Marsha and Moira belong to the Sales group that has full control permissions to the K:\Sales folder. Within
this folder, Marsha is assigned read permission to a file named SalesPipeline. Moira is assigned read and
execute permissions to the same file. Marsha also belongs to the Marketing group that has read permissions
denied to the K:\Sales folder, while Moira also belongs to the Legal group that has write permissions denied
to the K:\Sales folder.
Which of the following is TRUE of the effective permissions in this scenario?
a) Marsha can modify the SalesPipeline file.
b) Moira can modify the SalesPipeline file.
C) Marsha cannot open the Sales folder.
a) Moira cannot open the Sales folder.
e) Neither can access the K:\ given this information.
f) Both CAN access every folder on the K:
arrow_forward
Select the correct command, term, or option.
This term describes a predesigned file with formatting and graphical elements on which you can base a file; using a template is a quick way to create a
Choose..
professional-looking file (document, presentation, spreadsheet, or database).
This term describes an interface element that contains a variety of options and commands that allow you to manage your files and perform tasks such as
Choose.
saving and printing.
Use this button to return to an open file from the backstage area.
Choose.
Click this tab to display the backstage area.
Choose..
The name of the open file displays on this area at the top of the workbook.
Choose.
Click this button to display the previous folder level.
Choose.
A OneDrive account or USB flash drive is an example of this, which is the place you save a file on the computer.
Choose.
This part of the file should be descriptive of the file contents so you can easily find the file you need.
Choose..
Click this option in…
arrow_forward
user stories
I need 5 user stories about Online Crime Management for my project
For example, user stories might look like that:As a police officer, i would like to be able to check for past records with an ID number(like a passport), so that I don’t have to use the name of the person
arrow_forward
Granting permissions one user at a time, how many times would you have to set Allow permissions for a user/folder combination (e.g. user1 for the Common folder, user2 for the same folder, etc.)? How did you calculate this? (Note that you do not have to count situations where you are not granting access, only when you are granting access.) Write you
arrow_forward
Linux bin bash script to create a new user on your Linux system and assign the user to a group. The script will first check if the user and group exists. If the user exists, provide a message saying the user exists. If the user doesn’t exist, create the group, if it doesn’t exist, and then create the user, finally assign the user to the group. Move the script to /home//scripts/ directory. Change the group to techstaff. Set appropriate permissions.
arrow_forward
Upload the code that will display if the user won or lost the round of hangman. It
should also prompt the user if they want to play another round of hangman.
1 Add file
Send me a copy of my response.
Submit
This form was created inside of Leanderisd.org. Report Abuse
arrow_forward
add tags for these feature files with --tags option:
When you select scenarios by one tag
When you select scenarios that have one or another tag
When you select scenarios that have 2 tags
When you disable scenarios that have a specific tag
Given Scenarios:
Feature: Login functionalityBackground:Given a web browser is at the BrainBucket login pageScenario: user can't login without entering emailGiven User is not logged inWhen Password is enteredAnd User click Login buttonThen 'Warning: No match for E-Mail Address and/or Password' will be shownScenario: user can recover his passwordGiven User is not logged inWhen User clicks 'Forgotten Password' buttonAnd enters his emailThen Message 'An email with a confirmation link has been sent your email address.' will be dispalyed
arrow_forward
Please written by computer source
Create a webpage that can be used to let a user store information about a catalogue of books. o The user should be able to add information (e.g. author, title, genre, reviews, etc.) about their favourite books. o All the information about all the books added by the user should be listed on the webpage. o The user should also be able to remove or edit information for a book.
arrow_forward
What Paste option would you choose if you wanted to maintain the formatting of the copied cell, but not its contents?
Formatting
Keep Formatting Only
Paste
Keep Source Formatting
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Related Questions
- Creat a data file which stores all the email id's class students. Also read the all email id's of the student from the data file and display names on the screen..arrow_forwardLaboratory Exercise Party Planner Objective: At the end of the exercise, the students should be able to: Create a menu bar with multiple user options. Apply event. Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1. Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive. 2. Create a new project named LabExer8. Set the project location to your own folder. 3. Construct import statements to use the packages listed below: javax.swing java.awt java.awt.event 4. Extend the JFrame class and implement the ActionListener interface. 5. Create a JMenuBar named mainBar and two (2) Menu objects named menut and menu2. Set the text of menu 1 as File and the text of menu2 as Event Type. 6. Create the items that will appear in the menus. The File menu shall contain an Exit submenu. Name the object exit. The Event Types menu shall contain two (2) submenus: Adult and Child. Name the objects adult and hild, respectively. The bmenu consist…arrow_forward5. Zip your folder then submit only the zipped file on blackboard.arrow_forward
- M7Pro_Files Upload your accounts python file here What to do: U are to create a report for users that will list their student id number, last name, and first name. Also, you will list their username and email address The input file is linked below studentInfo.txt (opens in new window) Note: You are to add YOUR first and last name in the first row ( instead fo Mr. Cameron's), the ID SHOULDN'T be your real ID, just a imaginary number there The output file that your program will generate should look like the one linked below: loginInfo.txt (opens in a new window) Given a text file , studentInfo.txt , linked above (or U can use one you created) that contains only last name( field size = 10) and first name(field size is 10) and student id numbers (field size is 7) you will create a report that will generate the usernames as well as student email accounts as shown in the loginInfo.txt linked above. Notice that the login name consists of the first 7 characters of the last name, the…arrow_forwardCreate user Peter, Brian and Cindy, create group Family and Friend. Add user Peter and Brian to the Family group, add Cindy to the Friend group. Set up password for all three users. Log in as Peter, create a file “Peter-file1”, set up permission to allow Brian to read and modify the file, but not Cindy. Verify your set up to see Peter and Brian can read and modify the file, but not Cindy. Take screenshot of your configuration.arrow_forwardPlotting assignment Create 4 subplots of y = x, y2 = x², y3 = x³, and y4 = Vx. Use 10 points between x = red circles, y2 = x2 use green dashes, y3 = x3 use blue triangles, and y4 = Vx use black squares. Also, give each subplot a title. Include a command to save the figure as a PNG file so that it can be imported into another program such as Microsoft PowerPoint. 0 to x: 10. For y1 = x use Show me the figure on the PNG filearrow_forward
- MM Image Processing Project Use your own images that are different than the images in the tutorial file.Include in your report the following only: 1) all the commands producing images, 2) the images produced, and 3) comment briefly on every image showing what was done and describe the result. All commands and comments MUST BE IN TEXT (NOT IMAGES).You may modify the filters and show the result as well.Compile all commands text that you used in an appendix.Save your WORD file as PDF as well.arrow_forwardMurach's javascript and Jquery 4th edition (ch9 animation) I need help with this assignment, please. thanks Modify a carousel to use animationIn this exercise, you’ll modify a carousel application so that when an image in the carousel is clicked, an enlarged image is displayed using animation.1. Open the application in this folder:carouselThen, run the application and notice that an enlarged image of the first book in the carousel is displayed.2. Review the HTML for the application, and notice that it contains an img element with an id of “image” following the heading. Also notice that the href attributes of the <a>elements in the carousel are set to the URL of the enlarged image to be displayed when the associated carousel image is clicked.3. Code an event handler for the click event of the <a> elements in the list. This event handler should start by getting the URL for the image to be displayed. Then, it should assign this URL to the enlarged image.4. Add animation to…arrow_forwardThat answer is wrong. Can you please read the instructions.arrow_forward
- Besides there is an options menu that includes two options in the main activity. These are: 1. New Student 2. Exit When you click on the “New Student” option, a “New Activity” opens and the teacher enters the Student ID, Visa, Final Number, Phone Number and clicks the Add button. Thus, the student's information is recorded in the database. In addition, the grade point average is calculated by taking 40% of the student visa and 60% of the final. Both the grade point average and this student's phone number are sent to MainActivity. When registration is complete, the main activity is updated to include the list of the currently added student. In addition, if the average score coming from the main activity to NewActivity is equal to or greater than 50, an SMS is sent directly to the student's phone number indicating that he or she has passed the course. For this process, necessary permissions are obtained by following the permission procedure. If the student's average is less than…arrow_forwardSearch Algorithms Dataset: We will use cars dataset as part of this project. The dataset is available as part of the assignment (cars.csv and a pdf that describe each of the fields for each record). TASK 1 The idea of this project is to create a text-based application with the following options: List all cars. This option will read from the file and when the user selects this option, the program will list all the cars in the file. Find via Linear search. This option will allow the user to type a model of the car (ID field in the dataset) and it should print out the information about the car searched, the amount of time it took to find the car using linear search. For this option, create a class called SearchMethods and implement the method : public static <T extends Comparable<T>> int linearSearch(T[] data, int min, int max, T target) Find via Binary search. This option will allow the user to type a model of the car (ID field in the dataset) and it…arrow_forwardCreate a folder named LastName_FirstName(please write Dahanyoon (ex. Reyes_Mark) in your local Create a new project named LabExer5A. Set the project location to your own The program shall: generate a random number from 1 to 50 for a player to guess; display a message that indicates whether the player’s guess is correct, too low, or too high; and prompt the user to keep on guessing until the correct value is entered Create a try-catch structure that will handle two (2) exceptions. These are when the user inputs the following: a number that is out of range (1 – 50) a letter or any non-numeric character Prompt the user so that he can guess again if an exception is Display the number of total Note: An invalid input (when an exception is thrown) is not considered a valid guess or attempt.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT