The diagram should have a package named Math that includes a class shape which has two subclasses named Rectangle and Square. ⚫ The Shape class has one public method named area() which returns a float. ⚫ The Square class has one private member variable of type float named side. ⚫ The Rectangle class has two private member variables of type float named width and height. Insert the commands that reflect your solution below.
Q: In Java, Create Movie class, which has private fields for title, director, rating. It has a…
A: Here's the algorithm for the given problem:Define a category Movie with personal fields for…
Q: a. Major components of a memory hierarchy can be drawn as b. Hidden arbitration in PCI means c.…
A: a) Major components of a memory hierarchy include- Register Memory- Cache Memory- Main Memory-…
Q: O A. B. O C. O D. _include product price changes, work schedules, departmental reorganization, and…
A: The correct answer is A. Tactical decisions. These decisions typically involve short-term planning…
Q: 4. Is the language L = {a¹b¹c¡d² : i ≥ 0, j ≥ 0} context-free? Prove one way or another.
A: Context-free Language:A context-free language is a type of formal language that can be generated by…
Q: Question: For every part that says "TODO" is a part you need to write. Correctly written code works…
A: Initialize an integer variable x.Set the 16th bit of x using bitwise left shift (<<)…
Q: Determine how to minimize the number of courses needed to satisfy the major requirements.
A: Linear Programming Problem (LPP) :An optimization method in mathematics called linear programming,…
Q: Mad Libs are activities that have a person provide various words, which are then used to complete a…
A: Start the program.Create a loop that continues indefinitely until terminated.Prompt the user to…
Q: Write a program that gets a list of integers from input, and outputs negative integers in descending…
A: Of course! This is a basic Python program that prints the negative numbers in descending order from…
Q: Perform the 8-bit 2’s complement binary addition. Indicate the result and whether there is overflow…
A: This question comes from binary which is a topic in computer science. In this question we are going…
Q: 8 Provide MATLAB code to solve, please.
A: Here is a MATLAB code to solve the given boundary value problem using the finite difference…
Q: What is remote desktop protocoal (RDP)? What is its purpose and does it use cryptography?
A: The Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft. It provides a…
Q: Find the value of n that solves this puzzle. At what value of n does s reach 39? The code is in C…
A: In this question we have been given with a puzzle requiring the determination of a value for n such…
Q: Write a Python program that creates a dataframe from a dictionary of lists and displays the first 5…
A: 1. Import the pandas library as `pd`.2. Create a dictionary named `data` with keys "name," "age,"…
Q: Your solution for lab #4 will be to create a C program which will accept a number of fixed verb…
A: This project presents a custom shell programmed in C, offering a basic command-line interface…
Q: Consider the following pieces of identification a person might have in order to apply for a credit…
A: When applying for a credit card, applicants need to provide legitimate types of identification to…
Q: Hi I need help with the code for python pls
A: Question: The adjacency matrix of the graph is:[[0, 1, 0, 1, 0, 0], [1, 0, 1, 0, 1, 0], [0, 1, 0,…
Q: Is the operation of deletion commutative in the sense that deleting x and then y from a binary…
A: A binary search tree (BST) is a hierarchical data structure characterized by nodes, each having a…
Q: Please help me with this. I am having trouble understanding what to do Please create the image…
A: Step-1) First, defining a function problem_09() in the script tag.Step-2) Then, implementing the…
Q: The electronic age is what we currently live in. It can be defined as the time between O A. 1930 B.…
A: 1940Option C is correct.Explanation:Step 1:The electronic age is what we currently live in. It can…
Q: Order the runtimes from fastest growth to slowest growth. fastest growth 1 2 3 4 5 6 N2.5 2 ⠀⠀⠀…
A: Please refer below page.If you have any doubts please feel free to ask.Explanation:Step 1:Step 2:…
Q: Draw DFA for the following language specifications. All strings on Σ ={X,Y, Z} that contains two…
A: The DFA ( Deterministic Finite Automata ) for given question is provided below.
Q: problem i need a solution for: What is the average unit price?
A: In database management, SQL (Structured Query Language) is utilized to retrieve specific data from…
Q: Refer to image and answer correctly for upvote! (Automata and Computation)
A: The correct partitions from the provided options are:{{2, *}, {c,…
Q: Give the asymptotic complexity of each of the following functions in simplest terms and then order…
A: In computer science, asymptotic complexity, sometimes known as "Big O notation," is a mathematical…
Q: Describe the importance of version control systems in modern software development practices and…
A: Version control systems (VCS) have become indispensable instruments in contemporary software…
Q: Warm up: Variables, input, and type conversion (1) Prompt the user to input an integer between 32…
A: 1. Prompt the user to input an integer between 32 and 126, a float, a character, and a string,…
Q: Our everyday number system in the UK and many other parts of the world is a base-10 system using…
A: Please refer below to get your python code.Explanation:Answer :: Code ->def base14_convert(s):…
Q: String user_input is read from input. If user_input starts with 'G', then output 'String starts…
A: The objective of the question is to create a program that reads a string from the user and checks…
Q: In an enabled decoder, only one output is active high (has a value of 1) at any time. A True Select…
A: In digital electronics, decoders play a crucial role in converting binary information from one form…
Q: here is the question that i need help with: 2.5 Give informal descriptions and state diagrams of…
A: tart with understanding the language , where there is a palindrome.In this context, a palindrome is…
Q: Which of the following best describes the effect that new information technology has on society? O…
A: The question is asking to identify the most accurate description of the impact that new information…
Q: A rounded LP solution always provides a lower bound to an IP minimization problem: O True O False
A: SOLUTION -Linear Programming (LP):This method is used to find the best outcome (maximum or minimum)…
Q: Create the AcmePay program for Acme Parts, which runs a small factory and employs workers who are…
A: Asking for the shift number to be entered will help.Request that the user provide the number of…
Q: Integer num_reading is read from input, representing the number of integers to be read next. Read…
A: The objective of the question is to read a certain number of integers from the user input and insert…
Q: How many platters are required for a 60GB disk if there are 512 bytes/sector, 1024 sectors per track…
A: In order to determine the number of platters required for a 60GB disk, we need to consider the…
Q: The term intranet describes an internet that extends beyond the organization that created it. O True…
A: In summary, the statement that the term "intranet" describes an internet that extends beyond the…
Q: Find the optimal order, and its cost, for evaluating the product A1×A2×A3×A4 where: A1 is (5×2),A2…
A: Let’s understand the concept of Matrix Chain Multiplication. When multiplying multiple matrices…
Q: Fit a power law model to the rheological behavior presented in the data: T [=]D/cm^2 y[=]1/2 1…
A: The objective of the question is to fit a power law model to the given rheological data using…
Q: Basic output with variables This zyLab activity prepares a student for a full programming…
A: 1. Start the program.2. Prompt the user to enter an integer and store it in a variable named…
Q: Integer numberOfPens is read from input. If numberOfPens is a maximum of 10, then output "Too few…
A: The objective of the question is to write a Java program that reads an integer input for the…
Q: List mels_list is read from input. Join the strings in mels_list together to create a single string…
A: The objective of the question is to join a list of strings into a single string with a specific…
Q: For each graph below, state the largest integer weight for directed edge (B,C) that makes the given…
A: Graph 1: A shortest path from A to E does not exist.For a shortest path from A to E not to exist,…
Q: Perform the following binary division. Assume that all values are unsigned positive numbers. 10100 /…
A: In step 2, I have provided complete answer to the question....Here are the rules for binary long…
Q: General interest strategy is where advertisers pay low rates to reach large numbers of…
A: The objective of the question is to verify the understanding of the concept of 'General Interest…
Q: For each of the following Python expressions, select the data type of the result after evaluation.…
A: This question comes from Python Programming which is a topic in computer science. In this question…
Q: String item_name and integer item_quantity are read from input. Output the following, on one line:…
A: The objective of the question is to format a string and an integer in a specific way using Python.…
Q: Microsoft Access
A: To create a database named "Students" based on the template provided by Microsoft Access, you can…
Q: Retrieve quartsal.cpp from the Lab 7 folder. The code is as follows:// This program will read in the…
A: The objective of the question is to complete the missing parts of the provided C++ code. The missing…
Q: Python Programming. Do not use Matlab.
A: The objective of the question is to solve a system of linear algebraic equations that represent the…
Q: Can you help me with this code becuase I only need help with one of the parts. I have attached my…
A: A class is a blueprint used in object-oriented programming to create objects, or instances. It…
Please see the image for instruction
Step by step
Solved in 3 steps with 1 images
- I need a step by step explanation on how to create this project. Project: Flight Time Problem Description: Design two classes: Flight and Itinerary. The Flight class stores the information about a flight with the following members: A data field named flightNo of the String type with getter function. A data field named departureTime of the GregorianCalendar type with getter and setter functions. A data field named arrivalTime of the GregorianCalendar type with getter and setter functions. A constructor that creates a Flight with the specified number, departureTime, and arrivalTime. A function named getFlightTime() that returns the flight time in minutes. The Itinerary class stores the information about the itinerary with the following members: A data field named flights of the List<Flight> type. The list contains the flights for the itinerary in increasing order of departureTime. A constructor that creates an Itinerary with the specified fights. A function named…Class Design Within the backend server, we’ll have multiple classes to organize our code. All the class descriptions are listed below. FoodWastageRecord NOTE: You need to design this class. It represents each food wastage entry recorded by the user through the form on the webpage (frontend). If you notice the form on the webpage, you’ll see that each FoodWastageRecord will have the following as the data members aka member variables. Date (as string) Meal (as string) Food name (as string) Quantity in ounces (as double) Wastage reason (as string) Disposal mechanism (as string) Cost (as double) Each member variable comes with its accessor/mutator functions. FoodWastageReport NOTE: You need to design this class. It represents the report generated on the basis of the records entered by the user. This class will be constructed with all the records entered by the user as a parameter. It will then apply the logic to go over all the records and compute the following: Names of most…In this program you will create a structure called class to hold the information of a class in Seneca college’s buildings. The information required for each class is as follows Campus name (like Newham or Seneca@york) Building name (like Victor Phillip Dahdaleh Building) floor (like 1 2 3 4 5, …) class code (like DB2109) size of class (40 60 25) has projector (yes/no, Y/N or 1/0) has podium (yes/no, Y/N or 1/0) has whiteboard (yes/no, Y/N or 1/0) The following is the beginning of the declaration of the structure Struct class{ Char campus[101]; Char building[101]; --- --- } Complete the above structure template based on the list of attributes provided careful with proper usage of . (dot) operator and -> (arrow) operator as this is the part of the code that gets the mark! void getClass (struct class* cl) Implement the following printClass void printClass(struct class cl) Your function should print the Class in the following format: Campus: NewhamBuilding:…
- Static & Not Final Field: Accessed by every object, Changing Non-Static & Final Field: Accessed by object itself, Non-Changing Static & Final: Accessed by every object, Non-Changing Non-Static & Not Final Field: Accessed by object itself, ChangingRead the following situation and decide how the variables should be defined. You have a class named HeartsPlayerA round of Hearts starts with every player having 13 cardsPlayers then choose 3 cards to “trade” with a player (1st you pass left, 2nd you pass right, 3rd you pass across, 4th you keep)Players then strategically play cards in order to have the lowest scoreAt the end of the round, points are cumulatively totaled for each player.If one player’s total is greater than 100, the game ends and the player with the lowest score wins. 1. How should the following data fields be defined (with respect to final and static)?(a) playerPosition (These have values of North, South, East, or West)(b) directionOfPassing(c) totalScore…Please refer to General Assignment requirements document for the additional requirementsPlease note that numbers in the square brackets before each requirement represent the points that are awarded if the requirement is fully implemented.In this assignment you will create an address book. The user of the application will be able to add a contact with the following information about the contact:1. First name2. Last name3. Address4. Phone numberTo implement this, you need to do the following:The Contact classYou will implement the Contact class in Visual Studio. A short description of the class members is given below. This class must have only the following members:Properties:You must use auto-implemented properties.[1] FirstName – string that represents the first name of the contact[1] LastName - string that represents the last name of the contact[1] Address - string that represents the address of the contact[1] Phone – unsigned long integer that represent a phone number of the…Double Bubble For this exercise you need to create a Bubble class and construct two instances of the Bubble object. You will then take the two Bubble objects and combine them to create a new, larger combined Bubble object. This will be done using functions that take in these Bubble objects as parameters. The Bubble class contains one data member, radius_, and the corresponding accessor and mutator methods for radius_, GetRadius and SetRadius. Create a member function called CalculateVolume that computes for the volume of a bubble (sphere). Use the value 3.1415 for PI. Your main function has some skeleton code that asks the user for the radius of two bubbles. You will use this to create the two Bubble objects. You will create a CombineBubbles function that receives two references (two Bubble objects) and returns a Bubble object. Combining bubbles simply means creating a new Bubble object whose radius is the sum of the two Bubble objects' radii. Take note that the CombineBubbles function…
- 1. Part 1: A point in the x-y plane is represented by its x-coordinate and y-coordinate. Design the class Point that can store and process a point in the x-y plane. Your class should contains the following methods. Default constructor without parameters that initializes the private data member to the suitable values Constructor with parameters sets the values of the instance variables to the values of the parameter. Accessor methods that return the values of the x-axis and y-axis. setPoint method which set the values of x-axis and y-axis makeCopy method that make a copy of a received object of type Point. getCopy method that returns a copy of the current object toString method that returns the object string isEqual that returns true if the current object is equal to the received object of type point distance, which receives two objects of type Point and returns the distanceise 1: Define a class based object called vehicleType in the VehicleTypeHeader.h file that contains the member variables listed below (20pts). Variable name Description make model year price color style license type Cost of the vehicle Color of the vehicle Coupe, sedan, SUV, truck, hatchback, etc. Plate Vehicle license plate number New, used, certified The class should have the following constructors: 1. A default constructor that assigns the term "NA" to all string variable and 0 to the numerical variables. 2. A constructor that accepts values as arguments and assigns them to the appropriate member variables. Make: Toyota Model: RAV 4 Write the appropriate mutator functions (setters) that store values in these member variables and accessor functions (getters) that return the values of the private member variables. Tags v Include the additional member functions listed below: printVehicleInfo: the member function does not take a parameter. The function displays information about a…Class Student __init__(self, id: int, fist_name: str, last_name: str, town:str): """ This creates a student object with the specified ID first and last name and home town. This constructor should also create data structure for holding the students grades for all of there assignments. Additionally it should create a variable that holds the student's energy level which will be a number between 0 and 1. :param id: The student's identifiaction number :param fist_name: The student's first name :param last_name: The student's last name :param town: The student's home town """ get_id(self)->int: """ Returns the ID of the student as specified in the constructor. :return: The student's ID """ get_first_name(self) -> str: """ Returns the first name of the student. :return: The student's first name """ set_first_name(self, name:str): """ Changes the student first name to the specified value of the name parameter. :param name: The value that the first name of the student will equal. """…
- In C++, Create a class called Date that includes three data members: amonth(type int), a day(type int), and a year(type int). The Date class willhave a constructor with three parameters to initialize the three data members.You may assume the values provided for the year and day are correct, but makesure that the month value is in the range 1-12; if it isn't, set the month to1. Provide set and get functions for each data member. Provide a memberfunction displayDate that displays the date in format MM/DD/YYYY.Write a test program that prompts the user to input the month, the day,and the year and uses your Date class to output the formatted date.Dice Rolling Class In this problem, you will need to create a program that simulates rolling dice. To start this project, you will first need to define the properties and behaviors of a single die that can be reused multiple times in your future code. This will be done by creating a Dice class. Create a Dice class that contains the following members: Two private integer variables to store the minimum and maximum roll possible. Two constructors that initialize the data members that store the min/max possible values of rolls. a constructor with default min/max values. a constructor that takes 2 input arguments corresponding to the min and max roll values Create a roll() function that returns a random number that is uniformly distributed between the minimum and maximum possible roll values. Create a small test program that asks the user to give a minValue and maxValue for a die, construct a single object of the Dice class with the constructor that initializes the min and max…In C#, a program that implements and uses a class called MyRectangle. Data items should include: length, width, color, and label. Define properties with appropriate accessor functions for each of the data items. Methods should include a default constructor that sets values to the empty string or zero, a constructor that allows the user to specify all values for the data items, a member method that computes and returns the area of the shape, and a member method called DisplayShape that outputs all the information (including the area via the ComputeArea method for the given rectangle in a reasonable format. Sample output below