Fill-in-the-Blank A data structure that points to an object of the same type as itself is known as a(n) __________ data structure.
Q: serial number, category, and price. You are supposed to do the following with this same. So 16.…
A: I have used c++ to define the requirements. So 16. Define a appropriate structure to manage this…
Q: write the psuedocode and drow the flowchart Create a program to enter grades and calculate averages…
A: In this question it asked to give the pseudocode and draw a flowchart. The question needs to create…
Q: Create a class named as car with data members as carcompany,cost of car,number of airbags. Create a…
A: Include all the required headers. Create a class for the answer program. Declare variables of…
Q: Assume the Product structure is declared in c++ as follows: struct Product { string description; //…
A: C++ program to solve the given problem is below.
Q: help with c++ paste indented code plzz Have to use given main function to test your answer Q1:…
A: I have provided C++ CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT---------------
Q: Write a program that shows Game sales. The program should use a structure to store the following…
A: Actually, program is a executable software that runs on a computer.
Q: The Rectangle has two data members upperLeft and lowerRight points, that represents upper left and…
A: A struct data type contains variables of different data types referenced with a single name. It is a…
Q: Class and Data members: Create a class called Student that stores a student’s grades (integers)…
A: According to the information given:- we have to create a program for student report card. we have to…
Q: 1. The circle has two data members, a Point representing the center of the circle and a float value…
A: #include<stdio.h>#include<math.h> typedef struct{ float x; float y;}Point; typedef…
Q: Question 2 You are about to create a simple 2D shooting game. i) Create appropriate structures with…
A: Given:
Q: User-defined data types that have two types of members: data members and function members are called…
A: Find the required answer with reason given as below :
Q: C++ programming Create a class Student with following data members- name, roll no and marks as…
A: GIVEN: Create a C++ program with class Student that has the data members- name, roll no and marks as…
Q: Assume that you have the following definition of a struct. struct partsType { int partNum; double…
A: C++ programming language is used for the below program in step2: The structure is a user-defined…
Q: Create a class called Pencil. Pencil has a type. Create another class called Customer. The customer…
A: Input the number of purchases and based on that allocate memory inside constructor and print all the…
Q: (C++ programming language) Create a class Student with following data members- name, roll no and…
A: #include<iostream>#include<string>using namespace std; class Student{ private: string…
Q: This assignment utilizes a class in an application that might be useful in the “real world.” It…
A: Text file data: June 2019 90 85 97 91 87 86 88 82 83 85
Q: IS A VARIABLE OR ABSTRACT DATA TYPE USED TO CONTROL ACCE Select one: a.SEMAPHORES b.MONITORS…
A: SEMAPHORES is a variable or abstract data type used to control access to common resource by multiple…
Q: (Rectangle Class) Create a class Rectangle with attributes length and width, each of whichdefaults…
A: public class Rectangle{float length,width; //attributes of class rectanglepublic void Rectangle(){…
Q: 44. It represents an object having a data. O Data Type O Data Object Data Item Data Structure
A: Object having the data is the sense tells you that an object containing a data or a state for a key…
Q: Case - IV: Structs A UOG Fast Food Shop has menu of items being sold on point. Each item has serial…
A: I have defined the above requirements in c++. //SQ.16struct Shop{ int SNO; string name;…
Q: Bank Program This c++ assignment uses the same account class created in Lab #4 with a more generally…
A: Step 1: Define main() method. Create an instance of ifstream. Step 2: Open file "bank.txt". Read the…
Q: C++ Create a class Rectangle. The class has attributes length and width, each of which defaults to…
A: The , code has given below:
Q: +Computer(String, double, int) //include getters and setters //override the toString() method…
A: Here I have created a class Computer that implements the Comparable interface In the class Computer…
Q: (a)(i) Create a City structure that will have the following members: name (string type), population…
A: The problem is pretty much justified all the function name and desired output is mentioned. Since no…
Q: Create a class of Student having private data members. Make all constructors along with setter…
A: The getters and setters are used on variables to get the value and update the value outside the…
Q: c++ Write a class named TestScores. The class constructor should accept an array of test scores as…
A: Answer : Please Find the Code in C++ below In Step 2:
Q: A university course (not this one!) has three quizzes worth 20 points each and a final exam worth 40…
A: for(int i=0;i<n;i++){ if(a[i]>=n){ list->next = a[i]; }…
Q: A ______ is a data structure that may have elements of different types.
A: The correct answer is structure.
Q: OOP using C++ please give me full answer thanks : A designer in 3D graphics company wants to…
A: Program approach:- Using the necessary header file. Using the standard namespace I/O. Constructors…
Q: mplement a class CreditCard. A CreditCard is defined by a 16-digit number and an expiration date. A…
A: Lets see the solution.
Q: Declare a student structure that contains : Student's first and last nameStudent IDCreate the…
A: Program: //include the header files #include <stdio.h> #include <stdlib.h>…
Q: phyton) create a vehicle claas with max_speed and mileage. define a function that changes the max…
A: Program class Vehicle: def __init__(self, max_speed, mileage): self.max_speed = max_speed…
Q: Please define the following structures in your main function: • One structure that will represent a…
A: Note: Comments have been added to the source code itself to have a better understanding of the code.…
Q: Topical Information Use C++. This lab will help you practice with dynamic memory (NOT mixed with…
A: Procedure Followed: Create an array for holding heat temperatures of the rod. Initially, Array…
Q: Use C++ Programmign language: Write a complete program that demonstrates the following classes by…
A: ANSWER :-- CODE :--
Q: )(i) Create a City structure that will have the following members: name (string type), population…
A: #include <stdio.h>struct City{ char name[100]; int population; float…
Q: PLEASE CODE IN PYTHON PLEASE USE NESTED CLASS FUNCTION Design a Point Class with attributes X…
A: here first step we understand what is the point class,first point class is the based on graph…
Q: Function 4: Class Grading function _four ( array ) Create a JavaScript function that meets the…
A: ALGORITHM: 1. declare variable c1, c2 for count passing and failing grades. 2. declare sum and avg…
Q: Hi pleas help me i need the solv by uesing online java compiler Create the principal program,…
A: Below is the required Java program: - Approach: - Define the class StuDetails. Declare the…
Q: Define a struct type that represents an exercise plan. The struct should store the following data:…
A: Part A structure name= exercise_plan Definition of structure: struct exercise_plan { char…
Q: Create a class named Point. private attributes x and y of integer type. Create a class named Shape.…
A: #include <iostream> using namespace std;class Point { private:int x; int y;public: Point()…
Q: Class and Data members: Create a class called Temperature that stores temperature readings…
A: The class has following declaration: Data members (private): vector<int> temperature string…
Q: (Invoice Class) Create a class called Invoice that a hardware store might use to represent an…
A: .Since you have not provided any particular language to answer, So i will be answering the question…
Q: There is a class Team, that holds information about the team name, number of players in the team,…
A: Assume you want to put a toy in a box but just have a rough understanding of its dimensions. You'll…
Q: (Write a C++ program 11.7: Customer Accounts) Write a program that uses a structure to store the…
A: Program plan: Include the required header files. Define the structure “customerAccount” Declare…
Q: PROGRAMMING LANGUAGE: C++ SUBJECT: OOP Task: Suppose you have a class Rectangle with data…
A: #include <iostream>using namespace std; //Rectangle class declarationclass Rectangle{ int…
Q: Function 4: Class Grading function _four ( array ) Create a JavaScript function that meets the…
A: Algorithm Start the program. pass the array of marks to the function. Calculate sum and find…
Q: In C++ Create a class called Student. Each student should have a name and ID number (an int). They…
A: Steps STEP1: In class student, declare the class attributes: string name, int id and int *grades.…
Q: Suppose we have a class Rectangle which has two data members, length and width. In addition, there…
A: static variables are the variables which has same shared value over all the instances of a class
Fill-in-the-Blank
A data structure that points to an object of the same type as itself is known as a(n) __________ data structure.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Question Using visual studio (C#) create a program, name it PRGYOURNAMEFA1, that implements a search and replace function recursively. Your program should allow a user to enter a string , a substring to be replaced in the entered string and a character/s to replace the found substring Program Structure1. A main class that implements the logic of the program – name this class TestSearchReplace2. Add a class named SearchReplace to the main class with two methods, including:a. SearchSubstring()- return methodb. ReplaceSubString() - void method The two method should be called using an object in the main class. DONT CREATE THE TWO METHODS IN THE MAIN CLASSSample OutputPLEASE CODE IN PYTHON PLEASE USE NESTED CLASS FUNCTION Design a Point Class with attributes X and Y coordinates. The Class should have following functions: a) change the coordinates, b) return a 2 element list [x,y] c) print a Point object. d) return distance from this instance to a given [x,y] Also design a Line Class which has 2 Point attributes. The Line class should have functions for following behaviours: a) Return the length of the line. b) Print the equation of the line c) Find if this instance is equal in length to another line.Create a structure representing a student object with the following members regno. courseid unitsRegistered: This should be an array of the course units you registered to capture marks unitsmarks: This should be an array to store the marks for the units registered. Find a way to relate the two. firstname surname address By using the structure above, write a program that populates the details of a student and compute the average, and the grade as well as the total marks. This task should be accomplished by writing functions for getData() - to populate the structure, printStudent() - to display the detail of the student, computeGrade() - to compute the grade of the student and computeMean() that computes the mean of the students: Pass the appropriate data NB: The function getData() - is a subroutine and uses structure as a reference - input, same concept to printData() Consider that your class has 10 students. Compute the class mean and standard deviation, highest class mark and lowest…
- Programming Language: C++ Create an Abstract Data Type, which will store 2 integer number. After that, make operations which will set the value of the two numbers, add, subtract, multiply and divide. After creating the abstract data type, use it in the main class. Ask the user for the value of two integers. Ask the user what operation to use, then call the necessary operation based on the user's input. Then display the answer with the correct label. Do not copy paste codes from other sitesIn C++Using the code provided belowDo the Following: Modify the Insert Tool Function to ask the user if they want to expand the tool holder to accommodate additional tools Add the code to the insert tool function to increase the capacity of the toolbox (Dynamic Array) USE THE FOLLOWING CODE and MODIFY IT: #define _SECURE_SCL_DEPRECATE 0 #include <iostream> #include <string> #include <cstdlib> using namespace std; class GChar { public: static const int DEFAULT_CAPACITY = 5; //constructor GChar(string name = "john", int capacity = DEFAULT_CAPACITY); //copy constructor GChar(const GChar& source); //Overload Assignment GChar& operator=(const GChar& source); //Destructor ~GChar(); //Insert a New Tool void insert(const std::string& toolName); private: //data members string name; int capacity; int used; string* toolHolder; }; //constructor GChar::GChar(string n, int cap) { name = n; capacity = cap; used = 0; toolHolder = new…in C#, Visual Basic Write an app for Boston Airlines that allows a customer to reserve a seat on the airline’s only plane (capacity: 10 seats). Radio buttons should allow the choice between First Class and Economy. The app should then assign a seat in the first-class section (seats 1–5) or the economy section (seats 6–10). Use a one-dimensional array of type bool to represent the seating chart of the plane. Initialize all the elements of the array to false to indicate that all the seats are empty. As each seat is assigned, set the corresponding element of the array to true to indicate that the seat is no longer available. Your app should never assign a seat that has already been assigned. When the economy section is full, your app should ask the person if it is acceptable to be placed in the first-class section (and vice versa). If yes, make the appropriate seat assignment. If no, display the message “Next flight leaves in 3 hours."
- C++ Programming Question 1:Hi, need help with review question 1 if possible. Thanks.Main Function: int main() { cout << endl; IntArr a{5};for(int i=0; i<5; i++) { a.push_back((i+1)*5); } cout << "Array size: " << a.getSize() << endl; cout << "Array A: ";for(int i=0; i<a.getSize(); i++) { cout << a[i] << " "; } cout << endl << endl; a.push_back(30);a.push_back(35);cout << "Array size: " << a.getSize() << endl; IntArr b = a;cout << "Array A: ";for(int i=0; i<a.getSize(); i++) { cout << a[i] << " "; } cout << "\nPArray B: ";for(int i=0; i<b.getSize(); i++) { cout << b[i] << " "; } cout << endl << endl; a.pop_back();cout << "Array size: " << a.getSize() << endl;b = a;cout << "Array A: ";for(int i=0; i<a.getSize(); i++) { cout << a[i] << " "; } cout << "\nArray B: ";for(int i=0; i<b.getSize(); i++) { cout…In C++ write a program which has a class named binary which has a character array to store a binary string. The class decimal derives from class binary and contains an integer data member. Another class called octal also derives from binary. Each class should contain constructors and appropriate data members to input and display the elements. The display function of binary class displays the binary equivalent, octal class’s display function displays octal equivalent whereas decimal class’s display function displays the decimal equivalent.Language: JAVA Script Your company is giving every employee earning less than $50,000 a 10% raise! *Write a function 'employeeRaises(peopleObj)' that takes an array of objects s containing employee names and their salaries and returns an array containing the employees that need raises, along with their new salaries. Example: employees [ {name: "Alice", salary: 80000}, {name: "Bob", salary: 48000 }, {name: "Carol", salary: 60000}, {name: "Dan", salary: 78000}, {name: "Ellen", salary: 100000}, console.log(employeeRaises (employees) ); // [ { name: 'Bob', salary: 44000 } ] funcation emplyeeRaises(employees){ |// Your code here} /****DO NOT MODIFY ANYTHING UNDER THIS LINE****/ try{| module.exports = employeeRaises;}catch (e) {|module.exports=null;}
- C++ Create a class Student that contains three members: roll no, name and mark, and three functions. Write a first inputStudent() function to get data of student class. Write a second getMark() function that returns a student’s mark. Write a third display() function that displays a student’s data. In a main() function, you need to declare 40 students and get data of all students by using inputStudent() function. And also use a pointer array to keep all students by mark greater than 50 and display the searching data of each student in that pointer array (Use the access operator -> to access a pointer points to member functions of the Student class).Create a C++ program called FindDomainFromEmail.Declare an array arrEmail.Assign a number of email addresses to the array as part of the declaration statement. Example:string arrEmail [5] = {"John.Smith@gmail.com", "Peter.Pan@iacfrica.co.za", "James.Dawson@mweb.co.za", "Lee.Morake@gmail.com","Mary.Grovan@mweb.co.za"}; Write a function called displayArr that will receive the array as a parameter and display a numbered list of the email addresses. Write a function called findClients that will receive the array as a parameter.Ask the user to enter the domain to find in the email addresses before the for loop.The domain is the name of the service provider e.g. mweb or gmail or iafrica, etc. Write code to find and display the email addresses that contain the domain that was entered.Example: If mweb was entered as the domain, the following list should be displayed with the example array: List of email addressesJames.Dawson@mweb.co.zaMary.Grovan@mweb.co.za In the main…There is a class Team, that holds information about the team name, number of players in the team, and player’s code. Design the constructor function that decides the number of player in the team and initializes code for each player. Create a team and display its all data. In C++(Implement dynamic memory allocation).