Question: Please include pictures showing solution, if possible. Thank you Write a Police class with the following fields: Oficer's name Badge number Pay rate per hour

Please include pictures showing solution, if possible. Thank you
Write a Police class with the following fields: Oficer's name Badge number Pay rate per hour Total number of hours worked. The class should also include the following: Setter and getter methods (mutator and accessor methods) A constructor that takes as arugments the officer's name and the badge number A method that returns the officer's weekly pay (Hint: Total number of hours worked X pay rate per hour) After you create the Police class, write a separate program that demonstrates the class by creating a Police object. The program should ask the user to input the data for a police officer, and then display the officer's weekly pay. Requirements Use comments when appropriate Give your variables meaningful and descriptive names. Naming a variable as ">", or " is a bad example of variable naming Use prompts to ask the user what they have to do. Be clear. Your program should be user-friendly. (Hint: Ask a family member or friend to run your program and then ask them if your prompts make sense and/or are clear) - Make sure you follow the directions precisely by using the required fields, the accessor and mutator methods, a constructor, and a method in the Police class. For your separate program, make sure that you create an object, ask the user for input and display the weekly pay. Your project should include 2 files: a) the Police class and b) a separate program to demonstrate the Police class. Therefore, you should create a folder with the 2 files, then zip the folder and submit the zipped folder
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
