Given the above class hierarchy with the methods provided, write the complete C++ program to do the following : Declare the complete classes Person, Student and Staff. The method display () will print the details as in the box. Declare 2 objects of type Student. Increase the fee by 10% and set the fee in the related objects using the setFee () method. Determine which of the two objects have the highest fee. Declare 3 objects of type Staff. Find the average pay for the three Staffs. Submit your C++ program for testing.
Q: 3D Array: Use python to solve this problem. We already know how to operate 2D arrays. Now we have…
A: Here is the approach : First create the 3-D list . Now add the elements in the list by looping…
Q: Why is it important for software engineers to adhere to SE ethics?
A: When rules or ethics aren't followed, people make a variety of errors and behave in disrespectful…
Q: a) What are the potential problems with e-payment systems? Why is e-commerce payment system…
A: Intro Issues with e-payment systems :- 1. Lack of Usability :- Electronic payment system requires…
Q: aaba What are the lower and higher bounds of the final interval in arithmetic coding? You can…
A: According to the question , we have to explain lower and higher bounds of the final interval in…
Q: 6. Write Scilab code to Plot graph of the polynomial function y= x3 -20x2 + 10x-1 over the interval…
A: In skilab we need to define an interval and assign the function to some variable. Using plot we can…
Q: What exactly is a multicore processor and how does it function? Computer science
A: Introduction: A multi-core processor is a single integrated circuit (also known as a chip…
Q: ntegrate core principles theories and methodologies of software engineering in designing and…
A: Here we can explain the integrate core principles theories and methodologies of software engineering…
Q: What is instant applications? Give examples of instant applications. Give at least 3 advantages and…
A: Introduction: Instant apps are a type of technology that allows you to use Android apps without…
Q: What technique would an organisation suggest and defend if it needed to securely distribute the…
A: Introduction: The secret key may be distributed to members of the organisation using the public key.
Q: What are the most common integration problems in IoT device deployment? Explain the architecture of…
A: Challenges: 1) Formalized paraphrase Compatibility and interoperability of several IoT systems:…
Q: Define the terms "operator" and "operand." Explain the various operators used in C programming.
A: Introduction: Expressions carry out specific actions depending on an operator with one or two…
Q: What is regression testing, and how does it work? Explain how automated tests and a testing…
A: Regression testing is a test suite that is built up over time as a program is created. Regression…
Q: Explain why HTTP and DNS, respectively, require TCP and UDP.
A: why HTTP and DNS, respectively, require TCP and UDP
Q: As a network security administrator, one of your responsibilities is to identify and safeguard your…
A: Introduction When it comes to malware, or malicious software, it refers to any program or file…
Q: When must physical security and information technology (IT) security work together to ensure that…
A: Physical security refers to the protection of professors, equipment, programmed, organizations, and…
Q: Explain when formal specification and verification in the creation of safety-critical software…
A: Formal methods are the application of mathematical modeling to the specification, development, and…
Q: ection .data msg db "Hello world!", Oah ection .text global _start tart: mov rsi, msg mov rdx, 13…
A: Below the assembly program with resolve the error and output
Q: Component independence indicates that one component should be able to be replaced with another that…
A: Component independence indicates that one component should be able to be replaced with another that…
Q: What's the difference between a socket and a port?
A: Intro A socket has three things: IP address Transport protocol Port number A socket means a single…
Q: Distinguish between the two major categories of the Typefaces ( serif and sans serif), and identify…
A: Serif - ORIGIN - The Latin Alphabet was carved into stone in Roman Antiquity and is thought to be…
Q: answer in python Design and write a program that calculates and displays the number of minutes over…
A: source code CalClock.py def main(): information = getInformation() if information == []:…
Q: State three important of SDLC in Information Systems Development.
A: Introduction SDLC (System Development Life Cycle) is a reasonable model that incorporates strategies…
Q: Access to shared memory resources is made possible by multiprocessor systems. These sorts of devices…
A: Introduction: The interconnect in shared-memory systems with several multicore processors may…
Q: What strategic choices do you have for legacy system evolution? When would you replace all or part…
A: A legacy system is a working system that was developed, implemented, and deployed in a completely…
Q: Write a pseudocode to find the average value in a list has 10 integer values. Write a pseudocode to…
A: a) The average of 10 numbers is defined as sum of 10 elements divided by 10. So, the pseudo-code is…
Q: 1. What is the output of the following program? nanespace ConsoleAppl class Progran static void…
A: 0123 1234 2345 3456 4567
Q: 10.1. Exercise 1 Design a calculator GUI by reproducing this interface:
A: Complete Java Code with GUI in Swing is below:
Q: INSTRUCTIONS: • You are to work on this activity individually. • Scenario is : program will be…
A: here in this question we have asked to write a python program which take integer input from user and…
Q: Q.4: What is data mining and what sorts of information may be obtained from it?
A: Intro Data mining is the process of identifying anomalies, trends, and correlations in huge data…
Q: Perform the XOR (exclusive OR) operation on the following bits: a)(10001) O(10000) b)(00001) O…
A: Below is the answer to above question. I hope this will be helpful for you...
Q: Is this true or false? Linux only has a rudimentary file system based on MINIX.
A: Linux: Linux is an operating system that follows an open-source methodology. It can run on servers,…
Q: What is wrong with the following code? public class ClassB extends ClassA { public ClassB () { int…
A: A constructor in Java or a Java constructor is a basic term which is used to define a process which…
Q: Write a python program that extracts email messages and reads them from an mbox file. The program…
A: A python program that extracts email messages and reads them from an mbox file. In an mbox file we…
Q: Describe the internet of things in your own words. What is the difference between these two…
A: The Internet of Things is defined by computer technology as the concept of connecting everyday…
Q: What are cloud backup solutions, exactly? Are there any websites that provide free huge storage?
A: Cloud Backup A cloud backup service backs up and keeps data and applications from a company's…
Q: When the CLI shows that the folder is not empty, why does the directory listing state "this folder…
A: Introduction: CLI - Command Line Interface It is the interface that processes the lines of…
Q: Find the sum-of-products expansions of these Boolean functions. a) F(x, y, z) = x + y + Z b) F(x, y,…
A:
Q: Explain briefly the application of embedded systems.
A: Introduction: An embedded system is a type of computer system that combines computer hardware and…
Q: The way a system boundary is specified and an appropriate context model is built can have a big…
A: The term "establishing system boundaries" refers to determining and justifying which components of a…
Q: Identify the function of each ribbon in the Microsoft Word application. Review Late A. Proofread and…
A: As per company guidelines we are suppose to answer only first 3 subparts of the question. Kindly…
Q: Extreme programming (XP) is a popular agile technique. What four elements of XP would entice you to…
A: Introduction: Xtreme programming is a kind of programming that is used to increase the quality of…
Q: Using JavaScript create an array that contains information to be published to the user. for example:
A: code : <script> function ResetFormWithJS() {…
Q: 1.Identify and describe the five primary areas/fields associated with internet governance, as well…
A: Introduction: Various criteria govern the protection of pooled data, financial accountability,…
Q: Explain the distinction between global and local variables in the C memory model. In the Pep/9…
A: Each variable is defined and can be used within its scope and determines that wherein the program…
Q: An instance where the greedy algorithm gives an erroneous answer. In this example, running the…
A: Big O notation is a maths notation which helps in describing the limiting behaviour of a given…
Q: What does the term "embedded" refer to? This entails looking up a few popular embedded systems and…
A: The term embedded means to fix into a surrounding mass. Embedded System is a combination of computer…
Q: work security vu
A: Introduction Vulnerabilities in network security are flaws or weaknesses in the system's software,…
Q: What are the most frequent forms of computer-based information systems in use today in businesses?
A: Please refer to the following step for the complete solution of the problem above.
Q: C program array manipulation Write c program to take 10 array elements from user as input Print…
A: ALGORITHM:- 1. Take input for the 10 array elements from the user. 2. Find the maximum element from…
Q: Explain how to use the V.B. message box tool.
A: Introduction Visual Basic: VB or Visual Basic is a event driven programming language developed by…
Given the above class hierarchy with the methods provided, write the complete C++
- Declare the complete classes Person, Student and Staff. The method display () will print the details as in the box.
- Declare 2 objects of type Student. Increase the fee by 10% and set the fee in the related objects using the setFee () method. Determine which of the two objects have the highest fee.
- Declare 3 objects of type Staff. Find the average pay for the three Staffs.
Submit your C++ program for testing.
Step by step
Solved in 5 steps with 1 images
- DebugEight4: Here is the code that needs to be debugged, I fixed some but it will not display the words in reverse at the end: // Application allows user to enter a series of words // and displays them in reverse order import java.util.*; public class DebugEight4 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int x = 0, y; String array[] = new String[100]; String entry; final String STOP = "XXX"; StringBuffer message = new StringBuffer("The words in reverse order are\n"); System.out.println("Enter any word\n" + "Enter + STOP + when you want to stop"); entry = input.next(); while(!(entry.equals(STOP))) { array[x] = entry; ++x; System.out.println("Enter another word\n" + "Enter " + STOP + " when you want to stop"); entry = input.next(); } for(y = x - 1; y > 0; ++y) {…Fix the errors in the Customer class and the Program. #include <iostream>#include <fstream>#include <string>using namespace std; class Customer {// Constructorvoid Customer(string name, string address) : cust_name(name), cust_address(address){acct_number = this.getNextAcctNumber();} // Accessor to get the account numberconst int getAcctNumber() { return acct_number; } // Accessor to get the customer namestring getCustName(} const { return cust_name; } // Accessor to get the customer addressstring getCustAddress() const { return cust_address; } // Set a customer name and addressstatic void set(string name, string address); // Set a customer addressvoid setAddress(string cust_address) { cust_address = cust_address; } // Get the next account number for the next customer.static const unsigned long getNextAcctNumber() { ++nextAcctNum; } // input operatorfriend Customer operator>> (istream& ins, Customer cust); // output operatorfriend void operator<<…public class Student { private String name; private String major; privatedoublegpa; privateinthoursCompleted; /**Constructor * @param name * The student's name * @param major * The student's major */ public Student(String name, String major) { this.name = name; this.major = major; this.gpa = 0.0; hoursCompleted = 0; } /**Constructor * @param name * The student's name * @param major * The student's major * @param gpa * The student's cumulative gpa * @param hoursCompleted * Number of credit hours the student has completed */ public Student(String name, String major, doublegpa, inthoursCompleted) { this.name = name; this.major = major; this.gpa = gpa; this.hoursCompleted = hoursCompleted; } /** * @return The student's major. */ public String getMajor() { returnmajor; } /** * @param major The major to set. */ publicvoid setMajor(String major) { this.major = major; } /** * @return The student's name. */ public String getName() { returnname; } /** * @param name The name to set. */…
- Assign pizzasInStore's first element's caloriesInSlice with the value in pizzasInStore's second element's caloriesInSlice. Only the *your code goes here* can be affected, the rest of the program cannot be changed.Program below:--------------------------- #include <iostream>#include <vector>#include <string>using namespace std; struct PizzaInfo {string pizzaName;int caloriesInSlice;}; int main() {vector<PizzaInfo> pizzasInStore(2); cin >> pizzasInStore.at(0).pizzaName;cin >> pizzasInStore.at(0).caloriesInSlice; cin >> pizzasInStore.at(1).pizzaName;cin >> pizzasInStore.at(1).caloriesInSlice; /* Your code goes here */ cout << "A " << pizzasInStore.at(0).pizzaName << " slice contains " << pizzasInStore[0].caloriesInSlice << " calories." << endl;cout << "A " << pizzasInStore.at(1).pizzaName << " slice contains " << pizzasInStore[1].caloriesInSlice << " calories." <<…pairRemoval(String,String,String) this is a public static function that takes three strings as arguments and returns a string. You will be given three strings, the first string is a sentence as text that contains at least one occurrence of left pattern and right pattern. The second and third arguments of the function are the left and right patterns respectively. Left pattern and right pattern are single characters strings that you are attempting to remove from the string. Your goal is to remove only the patterns when left pattern has an equal number of corresponding right patterns.Fix all the errors in the code // Program displays some facts about a string public classDebugSeven3 { public static void main(String[] args) { String quote = "Honesty is the first chapter in the book of wisdom. - Thomas Jefferson"; System.out.println("index.of('f') is: " + quoteindexOf('f')); System.out.println("index.of('x') is: " + quoteindexOf('x')); System.out.println("char.At(5) is: " + quote.charAt(50)); System.out.println("endsWith(\"daughter\") is: " + quote.endsWith("daughter")); System.out.println("endsWith(\"son\") is: " + quote.endsWith("son")); System.out.println("replace('e', '*') is: ", quote.replace('e', '*')); } }
- public static String pancakeScramble(String text) This nifty little problem is taken from the excellent Wolfram Challenges problem site where you can also see examples of what the result should be for various arguments. Given a text string, construct a new string by reversing its first two characters, then reversing the first three characters of that, and so on, until the last round where you reverse your entire current string.This problem is an exercise in Java string manipulation. For some mysterious reason, the Java String type does not come with a reverse method. The canonical way to reverse a Java string str is to first convert it to mutable StringBuilder, reverse its contents, and convert the result back to an immutable string, that is,str = new StringBuilder(str).reverse().toString(); Here's the tester it must pass: @Test public void testPancakeScramble() throws IOException {// Explicit test casesassertEquals("", P2J3.pancakeScramble(""));assertEquals("alu",…Language: JAVA Script Write a function 'mostFrequentLetter(string)' that takes a string as an argument and returns the character that appears the most often. In case of a tie, you may return any of the characters. The string will have at least one character. Examples: console.log(most Frequent Letter ("apple")); // "p" console.log(mostFrequentLétter("banana")); // "a" console.log(mostFrequentLetter("What about a longer string?")); //" " **************************************************************/ function mostFrequentLetter(string) { |// Your code here} /****DO NOT MODIFY ANYTHING UNDER THIS LINE****/ try{| module.exports = mostfrequentletter;}catch (e) {|module.exports=null;}write an application that reads English-Language phrase and encodes it into morse code. also write an application that reads a phrase in morse code and converts it into the English-Language equivalent . Use one blank between each Morse-code letter and three blanks between each Morse-coded word.
- #include <iostream>#include <iomanip>#include <string>#include <vector>using namespace std;class StudentRec{private: string last_name = ""; // Last name string first_name = ""; // First name int year_grad = 0; // Year expected to graduate float gpa = 0.0; // Current gpapublic: void set_last_name(string last_name_param); void set_first_name(string first_name_param); string get_last_name() const; string get_first_name()const; string get_last_name_upper() const; string get_first_name_upper() const; void set_year_grad(int year_grad_param); int get_year_grad() const; // the rest of the "setter" and "getter" functions for each variable above go here };void StudentRec::set_last_name(string last_name_param){ last_name = last_name_param;}void StudentRec::set_first_name(string first_name_param){ first_name = first_name_param;}string StudentRec::get_last_name() const{…Create a function that tallies the number of times a phrase appears in a string. The function's output should be a number. Don't presume that a single space divides words, and that a string can contain punctuation. Create the method so that it can accept a String input or a StringBuilder object.(Intro to Java) /** * @author * @author * CIS 36A, Assignment 17.1 */import java.util.Scanner;public class Newsletter { /** * Removes all blank spaces in front of * and at the end of a String * Hint: use two while loops - one for * the front of the String, and one * for the end of the String. * Use substring to remove the blank space * from the String * @param email the email address * @return an email with no blank spaces * at the front or end of the String */ public static String cutSpace(String email) { //write one while loop here //write the second while loop here return email; } /** * Searches a String for an @ character * @param email the String to search * @return whether the String contains an '@' */ public static boolean hasAt(String email) { //write a for loop here to iterate through the String email return false; } /** * Uses…