2. The following graphic shows the number of students in each class. Write code that shows the given graphic. Number of the students who are taking the classes are 20, 30, 30, 10, 5, 5 for General Chemistry, General Physics, Mathematics, Mass Transfer, Fluid Mechanics, Thermodynamics, respectively. The graphic does not have to be as exactly as shown. Different codes, colours and modules can be used. Classes General Physics Mathematics General Chemistry Thermodynamics Fluid Mechanics Mass Transfer
Q: Explain why software that is built into an operating system is useful. You should also keep track of…
A: Built-in software within an operating system (OS) is designed to function seamlessly by the OS…
Q: Can you explain what you mean by "cloud scalability"? What aspects of the cloud computing platform…
A: Cloud scalability refers to the ability of a cloud computing platform to dynamically adjust its…
Q: A simple cyclic substitution cipher replaces each English letter with one that is n letters away in…
A: A cyclic substitution cipher is a type of substitution cipher where each letter in the plaintext is…
Q: Robots may conduct risky, offensive, or tedious jobs instead of people. Please give me an example of…
A: The development of advanced robotics and artificial intelligence technologies has led to increasing…
Q: Purpose is the key differentiator between a mainframe and a supercomputer.
A: According to the information given:- We have to differentiate between a mainframe and a…
Q: Define each of the four parts of an information system using the criteria that you deem most applic
A: An information system is a set of interconnected components that collect, store, process, and…
Q: Construct a visual breakdown of the most popular server OSes.
A: It is then asked to construct the visual breakdown of the most popular server Operating system A…
Q: Using a self-balancing binary search tree, binary tree sort is nevertheless slower than merge sort,…
A: Sorting algorithms are fundamental in computer science and are widely used in various applications.…
Q: You might be ready to deal with problems in the creation of the framework if you think about the…
A: Given, You might be ready to deal with problems in the creation of the framework if you think about…
Q: Provide a high-level explanation of virtualization and the Linux kernel by way of a straightforward…
A: The answer is given below step.
Q: Find a book that discusses the best practises for using a hands-free gadget while driving. Where…
A: While driving, it is fundamental to retain focus on the road. Pointers-free gadgets are proposed to…
Q: What is it about computer science that piques the curiosity of individuals of all ages and walks of…
A: Computer science has a universal appeal that sparks curiosity among individuals from diverse…
Q: What exactly is meant by the abbreviation "DNS" (Domain Name System)? I'd appreciate it if you could…
A: Here we will discuss what is meant by the domain name system (DNS) and how it works.
Q: What exactly does one mean when they refer to the "software scope" in a sentence?
A: When someone refers to the "software scope," they are referring to the boundaries and limits of a…
Q: In terms of software management and development, what kind of long-term changes do you anticipate…
A: Personal Software Process (PSP) is a software development methodology that focuses on individual…
Q: How do you suggest using computer models to mimic problems that don't fit nicely into one category?
A: As technology and the world around us continue to evolve, many complex problems arise that don't fit…
Q: QUESTION 25 Which of the following is present in VoDSL, VoCable and conventional POTS networks?…
A: - We need to talk about which of the provided parts are present in VoDSL, VoCable and conventional…
Q: Using a self-balancing binary search tree, binary tree sort may complete in O(n log n) time, which…
A: Yes, that statement is correct. Binary tree sort is a sorting algorithm that works by first building…
Q: What distinguishing features does a desktop OS have?
A: A desktop operating system (OS) serves as the foundation for personal computers and provides users…
Q: What exactly do you mean when you use the phrase "cloud scalability"? How does the platform's design…
A: When I use the phrase "cloud scalability," I am referring to the ability of a cloud-based system to…
Q: A potential key is a piece of a composite primary key that is itself an attribute.
A: In a relational database, a key is a set of one or more attributes that can uniquely identify each…
Q: What about if we change the name to "Object-Orientation"? Application development that emphasises…
A: Hello student Greetings Object-oriented programming (OOP) is a popular approach to software…
Q: Better yet would be a machine that allows for logical partitions in addition to the more traditional…
A: Logical partitions, also known as virtual dividing wall, divide a computer's resources, such as…
Q: What exactly is meant by the abbreviation "DNS" (Domain Name System)? I'd appreciate it if you could…
A: The field Name System (DNS) is a circulated and hierarchical designation arrangement used for…
Q: Just what does it imply when we talk about a "virtual desktop," and how is it really used?
A: Here we will discuss the meaning of what is a virtual desktop and also discuss all the benefits of…
Q: When you were attempting to test the Firebase app on iOS, what kinds of problems did you come…
A: 1. Firebase SDK version incompatibility: If the Firebase SDK version used in the app is not…
Q: Which operating systems may be installed on a desktop computer? Explain the differences between…
A: An operating system (OS) is the primary software that manages the computer hardware and software…
Q: What benefits and drawbacks come with doing a literature review?
A: There are a number of advantages and disadvantages to conducting a literature review for…
Q: Using your best judgement, please explain each of the four parts that make up an information system.
A: An information system consists of four essential components that work together to collect, process,…
Q: How operating systems really carry out process execution is not entirely transparent.
A: Operating systems are complex software systems that provide an interface between a computer's…
Q: b. Your host IP address is 172.16.1.1. Someone access from a remote host with IP address 219.168.3.4…
A: Simple Mail Transfer Protocol (SMTP) is used to transfer mail between hosts through Transmission…
Q: Intelligent modems have the mechanical ability to dial, terminate, and answer calls. Who issues…
A: Intelligent modems are typically controlled by a computer or other device that is connected to the…
Q: Installing Windows 2008 and Configuring Active Directory and DNS
A: Windows Garçon 2008 is an operating system that provides a range of services, including Active…
Q: QUESTION 4 If the CODE bits in a TCP segment are set to 000001, the packet is a SYN packet. True…
A: Transmission Control Protocol (TCP), which is a widely used transport layer protocol in computer…
Q: On an iOS device, what is the fundamental difference between files ending in.am and those ending…
A: In iOS growth, various file arrangements, such as application development, source management, and…
Q: It would appear to defeat the purpose to design a computer with software already loaded into its…
A: Read-only memory (ROM) is a non-volatile luggage compartment intermediate with the meaning of stores…
Q: There are two possible outcomes for computer operating systems as resource virtualization becomes…
A: As resource virtualization becomes more common, computer operating systems are likely to experience…
Q: Show me how to combine the spiral model with other software design techniques.
A: The spiral model is a popular software development model that emphasizes risk analysis and iterative…
Q: Which one of the following devices is responsible for receiving data from a source network device…
A: In a computer network, different devices get, transmit, and immediate data connecting network…
Q: To help, it would be excellent if you could provide a brief summary of the many parts that go into…
A: Often referred to as the "brain" of the processor, the CPU is in accuse of computation and commands.…
Q: What are the four key concepts that form the basis of the Extreme Programming methodology?
A: Extreme Programming (XP) is an agile software development methodology that aims to improve software…
Q: Classful addressing helps relieve the IPv4 address exhaustion problem by allowing appropriately…
A: True. Classful addressing is a technique used to allocate IP addresses, and it was widely used in…
Q: • The board should start in the initial view, shown below, with 3 tasks in the "To do" list and two…
A: To create the board with the specified functionality, you can use HTML, CSS, and JavaScript. Here's…
Q: aw that was recer h, if any, would a
A: A system is a collection of components that work together to achieve a common goal, such as…
Q: Find out how wireless networks are used by individuals in developing nations. Wireless networks…
A: Wireless networks have become increasingly popular in recent years due to their convenience and…
Q: How can a network infrastructure that has both physical and virtual components be constructed and…
A: How can a network infrastructure that has both physical and virtual components be constructed and…
Q: There are four different applications for discrete-event simulation, all of which are helpful.
A: Your answer is given below.
Q: When it comes to the process of producing software, how are the notions of cohesion and coupling…
A: Introduction: In software engineering, cohesion and coupling are two fundamental concepts that play…
Q: What exactly is the Domain Name System (DNS) and why is it important? I would appreciate it if you…
A: The Domain Name System (DNS) is an essential component of the internet infrastructure that…
Q: What exactly is the nature of leadership, and what exactly are the roles that both those leading and…
A: Leadership is a complex concept that entails the process of influencing, guiding, and inspiring…
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
I want the results to be plotted on a pie chart and also use some colors
Step by step
Solved in 3 steps with 1 images
- The Huntington Boys and Girls Club is conducting a fundraiser by selling chili dinners to go. The price is $7 for an adult meal and $4 for a child’s meal. Write a class that accepts the number of each type of meal ordered and display the total money collected for adult meals, children’s meals, and all meals. Save the class as ChiliToGo.java.Question: 2Implement the design of the Chillox and Customer classes so that the following code generates the output below:print(f"It's been a good day!. \nToday, we have already served {Chillox.order_id} customers.")print("**************************************************")outlet1 = Chillox()print("1.==========================================")print("Burger Menu:")print(Chillox.menu)print("2.==========================================")outlet1.addBurger("Chicken Burger",180,"Chicken with Cheese",200)print("3.==========================================")print("Burger Menu:")print(Chillox.menu)print("4.==========================================")c1 = Customer("Samin")c1.order = "2xChicken Burger"outlet1.placeOrderof(c1)print("5.==========================================")outlet1.addBurger('Chicken Smoky BBQ Cheese',225)c2 = Customer("Rafi")c2.setOrder("2xChicken with Cheese,3xChicken Smoky BBQ…Question: 2 Implement the design of the Purchaser and AarongProducts classes so that the following code generates the output below: #Write your code here p1 = Purchaser('Alex Light') print('1.===============================') print(p1) product1 = AarongProducts('Decor', 'Photo-Frame') print('2.===============================') print(product1) print('3.===============================') print(AarongProducts.products) print('4.===============================') AarongProducts.include_products('Souvenirs',['Brass-Flowervase 2170', 'Terracotta-Vase 3500']) print(f'Updated Item List:\n{AarongProducts.products}') print('5.===============================') product2 = AarongProducts('Souvenirs', 'Terracotta-Vase', 2) print(product2) print('6.===============================') p1.create_invoice(product1, product2) print('7.===============================') product3 = AarongProducts('Decor', 'Candles', 5) print(product3) print('8.===============================') product4 =…
- Please do it as as possible Question: 2Implement the design of the BFC and Customer classes so that the following code generates the output below:print(f"It's been a wonderful day! \nToday, we have already served {BFC.order_id} customers. Few more to go before we close for today.")print("**************************************************")outlet1 = BFC()print("1.==========================================")print("Chicken Menu:")print(BFC.menu)print("2.==========================================")outlet1.addChicken('Regular',95,'Spicy',125)print("3.==========================================")print("Chicken Menu:")print(BFC.menu)print("4.==========================================")c1 = Customer("Ariyan")c1.order = "2xRegular"outlet1.placeOrderof(c1)print("5.==========================================")c2 =…Read the instructions below and write your code using Microsoft Visual Studio (Community version). Build your own console application with C#. Write a Rectangle class, the private data members are the length (len) and width (wid) of the rectangle, the parameterless constructor sets len and wid to 0, and the parameterized constructor sets the value of length (len) and width (wid). In addition, the class also includes common methods such as calculating the perimeter of the rectangle, calculating the area of the rectangle, obtaining the length value of the rectangle, obtaining the width value of the rectangle, and modifying the length and width values of the rectangle to the corresponding formal parameter values. Please upload your executable C# file as attachment in the system.Java Questions - (Has 2 Parts). Based on each code, which answer out of the choices "A, B, C, D, E" is correct. Each question has one correct answer. Thank you. Part 1 - 7. Which is possibly a composite class? class Seed { ... }class Fruit { Seed s1 = new Seed(); }class Apple extends Fruits { ... }class Orange extends Apple { ... }class ApplePie { ApplePie a1 = new ApplePie(); } A. FruitB. AppleC. ApplePieD. OrangeE. Seed Part 2 - 8. Given the following code, the output is __. class Apple { int x = 5; }class Orange { int y = 6; }class Tangerine { int z = 7; } class Banana { Apple a1 = new Apple(); Orange o1 = new Orange(); Tangerine t1 = new Tangerine(); public int show() { return a1.x + o1.y + t1.z; }} public class Sample { public static void main(String[] args) { Banana b1 = new Banana(); System.out.println(b1.show()); }} A. 5B. 6C. 7D. 18E. 5+6+7
- The following code may, or may not, work. However the bigger issue is that it doesn't give good information to the end user. Assume that there is a Circle class, like we've defined in class before. Fix what problems you see, that could affect naming conventions, capitalization, and data output, and make sure the data output is clean for the end user. cout << "For Circle 1:" << endl; cout << c1.getArea() << endl; cout << c1.getx() << " " << c1.gety() << endl; cout << c1.getcolor() << endl; cout << endl << endl; This is the full question and it is c++Four in a row is a game in which players take turns adding tokens to the columns on the game board. Tokens fall to the lowest position in the chosen column that does not already have a token in it. Once one of the players has placed four of their tokens in a straight line (either vertically, horizontally, or diagonally), they win the game If the board is full and no player has won, then the game ends in a draw. TASK Using the following class descriptions, create a UML diagram and a version of Four in a row game The game must allow for a minimum of two and maximum of four players The game must allow each player to enter their name(duplicate names should not be accepted) The game should give the players the ability to choose how many rows (between four and ten), and how many columns (between four and ten) the game board should have. The code uses several classes, including "Player", "Board","Game" and exceptions for handling errors such as invalid moves and full columns.…Please do P1 by redefining and using the student.py code. Strictly use the student.py code, you can change and add some code but you have to use it to create P1. Thanks a lot! P1: Add three methods to the Student class that compare two Student objects. One method should test for equality. A second method should test for less than. The third method should test for greater than or equal to. In each case, the method returns the result of the comparison of the two students’ names. Include a main function that tests all of the comparison operators. ***student.py*** """File: student.pyResources to manage a student's name and test scores.""" class Student(object): """Represents a student.""" def __init__(self, name, number): """All scores are initially 0.""" self.name = name self.scores = [] for count in range(number): self.scores.append(0) def getName(self): """Returns the student's name.""" return self.name def…
- Implement the design of the Purchaser and AarongProducts classes so that the following code generates the output below: #Write your code here p1 = Purchaser('Alex Light') print('1.===============================') print(p1) product1 = AarongProducts('Decor', 'Photo-Frame') print('2.===============================') print(product1) print('3.===============================') print(AarongProducts.products) print('4.===============================') AarongProducts.include_products('Souvenirs',['Brass-Flowervase 2170', 'Terracotta-Vase 3500']) print(f'Updated Item List:\n{AarongProducts.products}') print('5.===============================') product2 = AarongProducts('Souvenirs', 'Terracotta-Vase', 2) print(product2) print('6.===============================') p1.create_invoice(product1, product2) print('7.===============================') product3 = AarongProducts('Decor', 'Candles', 5) print(product3) print('8.===============================') product4 = AarongProducts('Souvenirs', 'Brass…PLEASE FOLLOW THE INSTRUCTIONS OF THE CODE VendingMachines.h // what to include class VendingMachines{ private: string location; // where the vending machine is located, AKA the machine's name int snackCount; // the number of different snacks in the machine double moneyIn; // money deposited by customer double change; // the amount of money available for change double totalSales; // the amount of money from item sales Snacks** inventory; // the snacks available for sale int computeChange(); // computes the change due, if any int snackNameSize; // The size of the longest snack name + 3 spaces int computeSnackNameSize(); // computes the longest snack name public: VendingMachines(); // the default constructor VendingMachines(string); // parameterized constructor void setLocation(string); void addSnack(); void sellSnack(); void printInventory() const; int getSnackCount() const; double getTotalSales() const; } +++++++++++++++++++++++++++++++++ VendingMachines.cpp //…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.