Create a wordle game class that uses files to keep a list of wordle words where each word on the list corresponds to the wordle number. show polymorphism and inheritance using a slightly modified version of the original game. create a user manual also
Q: Create student object class (Student.java) Student objects should have the following attributes:…
A: The answer given as below:
Q: class ADSockDrawer(object): def__init__(self): self.drawer = AD() defadd_sock(self, color):…
A: This Problem can be solved using Python. Python is also one of object oriented language with minimal…
Q: please code in python Please create a class called PlayingCard. This class should have: An…
A: An attribute, "rank" that takes a value of "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q",…
Q: In the file Calculator.java, write a class called Calculator that emulates basic functions of a…
A: Given code of LabProgram.java file: import java.util.Scanner; public class LabProgram {public static…
Q: Please answer this in python Define a class in python named BoatRace that contains the following…
A: We need to create a CSV file called : the_big_one.csv with the given content. Name,The Big…
Q: public class main { public static void main(String[] args) { Polygon[] shapes = new Polygon[3];…
A: public interface Polygon { //declaring methods public double area(); public double perimeter(); }
Q: 1: Create a enum PizzaType, which has the following entries: PIZZA_TYPE_PLAIN,…
A: As per the Bartelby guideline we are suppose to answer only one question at a time.So please repost…
Q: In Javascript, Pet Class: Design a class named Pet, which should have the following fields and…
A: I have provided JAVASCRIPT CODE along with CODE SCREENSHOT and OUTPUT…
Q: Part 2 - Different ways of working with Attributes Here we explore different ways to work with…
A: Algorithm for the code:- 1. Start 2. Initialize a class called StateData with the following…
Q: Create a class called Pet that has the following attributes: Pet() Pet(name, age, color) getName() -…
A: The Pet class can be considered as a base class that represents a generic pet. It can have…
Q: Creates a class StudentPhD extending the class Student with two more attributes: specialty and…
A: Parent class is Student and this class extended by StudentPhD class using "extends" keyword. Also i…
Q: Please make a trivia game using java gui. Please comment the code. Please also include the following…
A: Answer Code with comments import java.awt.Font;import java.awt.event.ActionEvent;import…
Q: CODE IN JAVA Please look at the attached image for the information about the format the code should…
A: The answer is
Q: create book class. use static variable : numberofbooks
A: I give the code in Java as per the requirement along with output and code screenshot
Q: Create a class called StringArrayHelper that has the following attributes: StringArrayHelper…
A: - We need to code for the stringHelper code with the required functions.In Java, a string array is a…
Q: Programming Lab: Create a package named lab10 (no spaces, ALL in lowercase) where you will place…
A: Introduction: Using a comparison operator on the items, a sorting algorithm is used to reorder an…
Q: Your Name - Week 5 PA - Inheritance & Overriding The Animal's name is Roo and it has 2 legs. The…
A: The program prints the above output using Console.WriteLine() statement. **Kindly Note: Since it…
Q: Using Java: 1 Description of the Program In this assignment, you are asked to implement a…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: The car classwill havethe following attributes: •year: an integer that holds the car's model year…
A: class Car(): def__init__(self,yrModel,make,): self.yearModel=yrModel self.make=make self.speed=0…
Q: Create a class called GraduateStudent that has the following attributes: GraduateStudent String -…
A: Initialize Class Attributes:Create class attributes for first name, last name, major, minor, UIN,…
Q: Create a program that uses classes, polymorphism, and enums to monitor blizzards in Europe, with…
A: This particular question belongs to Computer Science and Engineering. Computer Science is an…
Q: Create a class called Library that has the following attributes: Library 0 Library…
A: In the given question, we are asked to create a class called Library with the following attributes…
Q: Work on the following: Create three interfaces with the names "InterfaceOne," "IrnterfaceTwo," and…
A: In this question, we have to create three interfaces and classes. All the code is implemented below.
Q: Create a new java project named CH46EX 1. Create a class named Student 1. 2 private instance data…
A: Working code: class student{ private String name; private long id; final static…
Q: StockList Class • This class will contain the methods necessary to display various information about…
A: Java Programming is the object oriented programming languages. It is used to create the web…
Q: After the user fills in all the entry fields and click on "Add" button, the program checks if the ID…
A: Note: As you have asked a multipart question, as per our policy we will solve the first three parts…
Q: Write two local classes named Pipe and Ellipsoid Container as described below. Then, write a main…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
![Create a wordle game class that uses files to
keep a list of wordle words where each word on
the list corresponds to the wordle number. show
polymorphism and inheritance using a slightly
modified version of the original game.
create a user manual also](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F20faf067-9cc5-4dc0-b731-017f8120392f%2Fbe9bd6cb-e9aa-44d6-aaa3-9922c98a299d%2Fffwwbn_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- In previous chapters, you have created programs for the Greenville Idol competition. Now create a Contestant class with the following characteristics: The Contestant class contains public static arrays that hold talent codes and descriptions. Recall that the talent categories are Singing Dancing, Musical instrument, and Other. The class contains an auto-implemented property that holds a contestants name. The class contains fields for a talent code and description. The set accessor for the code assigns a code only if it is valid. Otherwise, it assigns I for Invalid. The talent description is a read-only property that is assigned a value when the code is set. Modify the GreenvilleRevenue program so that it uses the Contestant class and performs the following tasks: The program prompts the user for the number of contestants in this years competition; the number must be between 0 and 30. The program continues to prompt the user until a valid value is entered. The expected revenue is calculated and displayed. The revenue is $25 per contestant. The program prompts the user for names and talent codes for each contestant entered. Along with the prompt for a talent code, display a list of the valid categories. After data entry is complete, the program displays the valid talent categories and then continuously prompts the user for talent codes and displays the names of all contestants in the category. Appropriate messages are displayed if the entered code is not a character or a valid code.a. Write a FractionDemo program that instantiates several Fraction objects and demonstrates that their methods work correctly. Create a Fraction class with fields that hold a whole number, a numerator, and a denominator. In addition: Create properties for each field. The set access or for the denominator should not allow a 0 value; the value defaults to 1. Add three constructors. One takes three parameters for a whole number, numerator, and denominator. Another accepts two parameters for the numerator and denominator; when this constructor is used, the whole number value is 0. The last constructor is parameterless; it sets the whole number and numerator to 0 and the denominator to 1. (After construction, Fractions do not have to be reduced to proper form. For example, even though 3/9 could be reduced to 1/3, your constructors do not have to perform this task.) Add a Reduce() method that reduces a Fraction if it is in improper form. For example, 2/4 should be reduced to 1/2. Add an operator+() method that adds two Fractions. To add two fractions, first eliminate any whole number part of the value. For example, 2 1/4 becomes 9/4 and 1 3/5 becomes 8/5. Find a common denominator and convert the fractions to it. For example, when adding 9/4 and 8/5, you can convert them to 45/20 and 32/20. Then you can add the numerators, giving 77/20. Finally, call the Reduce() method to reduce the result, restoring any whole number value so the fractional part of the number is less than 1. For example, 77/20 becomes 3 17/20. Include a function that returns a string that contains a Fraction in the usual display format—the whole number, a space, the numerator, a slash (D, and a denominator. When the whole number is 0, just the Fraction part of the value should be displayed (for example, 1/2 instead of 0 1/2). If the numerator is 0, just the whole number should be displayed (for example, 2 instead of 2 0/3). b. Add an operator*() method to the Fraction class created in Exercise 11a so that it correctly multiplies two Fractions. The result should be in proper, reduced format. Demonstrate that the method works correctly in a program named FractionDemo2. c. Write a program named FractionDem03 that includes an array of four Fractions. Prompt the user for values for each. Display every possible combination of addition results and every possible combination of multiplication results for each Fraction pair (that is, each type will have 16 results).In Chapter 9, you created a Contestant class for the Greenville Idol competition. The class includes a contestants name, talent code, and talent description. The competition has become so popular that separate contests with differing entry fees have been established for children, teenagers, and adults. Modify the Contestant class to contain a field that holds the entry fee for each category, and add get and set accessors. Extend the Contestant class to create three subclasses: ChildContestant, TeenContestant, and AdultContestant. Child contestants are 12 years old and younger, and their entry fee is $15. Teen contestants are between 13 and 17 years old, inclusive, and their entry fee is S20. Adult contestants are 18 years old and older, and their entry fee is $30. In each subclass, set the entry fee field to the correct value, and override the Tostring() method to return a string that includes all the contestant data, including the age category and the entry fee. Modify the GreenvilleRevenue program so that it performs the following tasks: The program prompts the user for the number of contestants in this years competition, which must be between 0 and 30. The program continues to prompt the user until a valid value is entered. The program prompts the user for names, ages, and talent codes for the contestants entered. Along with the prompt for a talent code, display a list of valid categories. Based on the age entered for each contestant, create an object of the correct type (adult, teen, or child), and store it in an array of Contestant objects. After data entry is complete, display the total expected revenue, which is the sum of the entry fees for the contestants. After data entry is complete, display the valid talent categories and then continuously prompt the user for talent codes, and display all the data for all the contestants in each category. Display an appropriate message if the entered code is not a character or a valid code.
- Using classes, design an online address book to keep track of the names, addresses, phone numbers, and dates of birth of family members, close friends, and certain business associates. Your program should be able to handle a maximum of 500 entries. Define a class addressType that can store a street address, city, state, and ZIP code. Use the appropriate functions to print and store the address. Also, use constructors to automatically initialize the member variables. Define a class extPersonType using the class personType (as defined in Example 10-10, Chapter 10), the class dateType (as designed in this chapters Programming Exercise 2), and the class addressType. Add a member variable to this class to classify the person as a family member, friend, or business associate. Also, add a member variable to store the phone number. Add (or override) the functions to print and store the appropriate information. Use constructors to automatically initialize the member variables. Define the class addressBookType using the previously defined classes. An object of the type addressBookType should be able to process a maximum of 500 entries. The program should perform the following operations: Load the data into the address book from a disk. Sort the address book by last name. Search for a person by last name. Print the address, phone number, and date of birth (if it exists) of a given person. Print the names of the people whose birthdays are in a given month. Print the names of all the people between two last names. Depending on the users request, print the names of all family members, friends, or business associates.Chapter 10 defined the class circleType to implement the basic properties of a circle. (Add the function print to this class to output the radius, area, and circumference of a circle.) Now every cylinder has a base and height, where the base is a circle. Design a class cylinderType that can capture the properties of a cylinder and perform the usual operations on the cylinder. Derive this class from the class circleType designed in Chapter 10. Some of the operations that can be performed on a cylinder are as follows: calculate and print the volume, calculate and print the surface area, set the height, set the radius of the base, and set the center of the base. Also, write a program to test various operations on a cylinder.Create an application for Ninas Cookie Emporium named CookieDemo that declares and demonstrates objects of the CookieOrder class and its descendants. The CookieOrder class includes auto-implemented properties for an order number, recipients name, and cookie type (for example, chocolate chip), and fields for number of dozens ordered and price. When the field value for number of dozens ordered is set, the price field is set as $15 per dozen for the first two dozen and $13 per dozen for each dozen over two. Create a child class named Special Cookieorder, which includes a field with a description as to why the order is special (for example, gluten-free). Override the method that sets a CookieOrders price as described in part a, but also to include special handling, which is SIO for orders up to $40 and $8 for higher-priced orders. Create an application named CookieDem02 that demonstrates using several Special CookieOrder objects.
- Write a program named DemoJobs for Harolds Home Services. The program should instantiate several Job objects and demonstrate their methods. The Job class contains four data fields—description (for example, wash windows), time in hours to complete (for example, 3.5), per-hour rate charged (for example, $25.00), and total fee (hourly rate times hours). Include properties to get and set each field except the total fee—that field will be read-only, and its value is calculated each time either the hourly fee or the number of hours is set. Overload the + operator so that two Jobs can be added. The sum of two Jobs is a new Job containing the descriptions of both original Jobs (joined by and), the sum of the time in hours for the original Jobs, and the average of the hourly rate for the original Jobs. Harold has realized that his method for computing the fee for combined jobs is not fair. For example, consider the following: His fee for painting a house is $100 per hour. If a job takes 10 hours, he earns $1000. His fee for dog walking is $10 per hour. If a job takes 1 hour, he earns $10. If he combines the two jobs and works a total of 11 hours, he earns only the average rate of $55 per hour, or $605. Devise an improved, weighted method for calculating Harolds fees for combined Jobs and include it in the overloaded operator+() method. Write a program named DemoJobs2 that demonstrates all the methods in the class work correctly.Write a program named SalespersonDemo that instantiates objects using classes named Real EstateSalesperson and GirlScout. Demonstrate that each object can use a SalesSpeech() method appropriately. Also, use a MakeSale() method two or three times with each object, and display the final contents of each objects data fields. First, create an abstract class named Salesperson. Fields include first and last names; the Salesperson constructor requires both these values. Include properties for the fields. Include a method that returns a string that holds the Salespersons full name—the first and last names separated by a space. Then perform the following Create two child classes of Salesperson: Real EstateSalesperson and Girl Scout. The Real EstateSalesperson class contains fields for total value sold in dollars and total commission earned (both of which are initialized to 0), and a commission rate field required by the class constructor. The Girl Scout class includes a field to hold the number of boxes of cookies sold, which is initialized to 0. Include properties for every field. Create an interface named ISell able that contains two methods: SalesSpeech() and MakeSale(). In each Real EstateSalesperson and Girl Scout class, implement SalesSpeech() to display an appropriate one- or two-sentence sales speech that the objects of the class could use. In the Real Estatesalesperson class, implement the MakeSale() method to accept an integer dollar value for a house, add the value to the Real EstateSalespersons total value sold, and compute the total commission earned. In the Girl Scout class, implement the MakeSale() method to accept an integer representing the number of boxes of cookies sold and add it to the total field.
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)