نقطة واحدة What will be the output of the ?following C++ code #include #include using namespace std; class A { float d; public: AC){ cout<<"Constructor of class A\n"; } }; class B: public A { int a = 15; public: BO{ cout<<"Constructor of class B\n"; } }; int main(int argc, char const *argv) B b; return 0; }
Q: What are the advantages of floating point number over integers.
A: Introduction What are the advantages of floating point number over integers.
Q: computer What concepts did Ada Lovelace create specifically?
A: she wrote of one such sequence—how to calculate Bernoulli numbers—is regarded by computer historians…
Q: The design of a distributed database is influenced by the differences between a local area network…
A: Local area network: A LAN, or local area network, is a network that spans a limited geographic…
Q: Find "Announcing the Advanced Encryption Standard (AES)" on the internet. This FIPS 197 standard…
A: AES performs all its computations on bytes rather than bits. Here, we restrict to description of a…
Q: Explanation of the statement concerning Apache Spark as follows: "How does Apache Spark do lazy…
A: Solution: Apache Spark: It is a fast unified analytics engine used for big data and machine…
Q: Computer science Explain how a Computer may be used by d) An Accountant
A: Introduction: Accounting frameworks provide a variety of detail options, including the ability to…
Q: What are the types of networks that connect a computer in Iraq to another in Jordan? (LAN/WAN)
A: The network that connects a computer in Iran and another in Jordan would be WAN
Q: Assume that you have a direct-mapped cache with 16 indices and each block can contain 32 words.…
A: A) Block size = 32 words = 32*4 = 128B So block offset bits = 7 bits Total number of set inside…
Q: A. Convert the binary number 1010101101001.1110 to hexadecimal. B. Determine the power set of the…
A: Below is the answer to above question. I hope this will be helpful for you...
Q: What is an AVL tree?
A: Below is the answer to above question. I hope this will be helpful for you..
Q: Explain the key distinction between recurrent and non-recurrent neural network processing.
A: Answer Recurrent Neural Network: A type of artificial neural network where a directed cycle forms…
Q: Please explain how a corporation can prevent hackers from gaining access to its accounts and…
A: Unethical hacking has been one of the major problems for an organisation to look upon.
Q: Explain normalised form in a few words.
A: Introduction: The process of building a relational database in normalised form is known as…
Q: In multilevel inheritance one class inherits More than one class O Only one class O As many classes…
A: In the inheritance, one class can inherit the properties of other class. There are different types…
Q: You should keep your software design as simple as possible.
A: Software design must have the following qualities: The design of the software is as simple as…
Q: What is elliptic curve cryptography so beneficial?
A: Introduction The use of a public key to encrypt data is known as elliptic curve cryptography.It's a…
Q: In the context of computer language design, define orthogonality.
A: Introduction: The attribute orthogonality means that "changing X does not impact Y."
Q: Computer science Explain the relationship among ODBC, OLE DB, and ADO.
A: Introduction: ADO is a database access library built on the COM platform.The standards OleDB and…
Q: Computer science What are the principal tasks of a linker?
A: Introduction: A linker has three functions: Combine all of a program's components. Create a new…
Q: Your firm has chosen to clone its product database over many servers in order to increase…
A: Database Consolidation: Database consolidation is the act of combining several databases and…
Q: Why do you think we need additional checking method at the transport layer if the data connection…
A: Introduction: The data connection layer is a protocol layer in the system that governs data transfer…
Q: What does it mean precisely to "debug" a computer programme?
A: Debug in computer programme Debug in the computer, is the process of identifying and removing the…
Q: Computer science Explain how a Computer may be used by a) A manager of a Shopping mall
A: Introduction: For stock maintenance, official and employee information, displaying data, occasional…
Q: The Engineering Solutions Company Limited (ESCL) ha for, and won a contract to design and build a…
A:
Q: Computer science Explain the meaning of the expression ACID transaction
A: Introduction: Explain the meaning of the expression ACID transaction
Q: What dangers are involved in migrating a database from a server?
A: Migrating a Database : Fires, floods, and burglary are all physical threats to security servers that…
Q: Computer science Shrot answer . What does Real-time System mean?
A: Introduction: Software engineering is a branch of engineering that deals with the design,…
Q: Why do Chrome OS machines use less internal storage than other desktop operating systems?
A: Introduction Why do Chrome OS machines use less internal storage than other desktop operating…
Q: How is a TextBox different from a MaskedTextBox? How can you force TextBox to use just uppercase or…
A: Masked TextBox is user control enhances the function of the TextBox control, which can mask the…
Q: What contribution to computers did Ada Lovelace make?
A: she wrote about a computer, the Analytical Engine, that was never built, she realized that the…
Q: What are the most popular interior and outside routing protocols in today's networks?
A: Introduction: IGPs (internal gateway protocols) are routing protocols that are utilized inside…
Q: Q6) Let A = Z, the set of all positive integers, and we define the relation R on A as: a Rb if and…
A:
Q: Consider the following proposition: The greatest threat to individual privacy in modern times is…
A: In fact, the following is the solution given:Procedure Number Two (Secondary)Privacy, in its most…
Q: What does "infrastructure mode" mean for a wireless network? What mode of operation is the network…
A: In a wireless network, there are two modes of operation: infrastructure mode and other modes of…
Q: 5) For the circuit shown in the figure below, find Z. 14 MUX lo S B A) Z = A B@C C) Z = A BeC B) Z =…
A:
Q: As a DB administrator, how do you handle backups of your database?
A: Administrator: An Administrative Assistant, often known as an Administrator, is a clerical worker…
Q: TCP is a reliable and full duplex transport layer protocol when it comes to providing services.…
A: Given: The Transmission Control Protocol (TCP) combines the bytes into a packet at the transport…
Q: Explain the key distinction between recurrent and non-recurrent neural network processing.
A: Recurrent Neural Network: A sort of artificial neural network in which linkages between units are…
Q: What category of software do compilers and editors fall into? Explain?
A: Compiler: The compiler is used to compile the code given. Ex. JVM Editor: It is a software that is…
Q: Why is it vital to distinguish between mutable and immutable values when developing a language with…
A: Introduction: Understanding the difference between immutable and mutable. Mutable objects can be…
Q: What does "infrastructure mode" mean for a wireless network? What mode of operation is the network…
A: In a wireless network, there are two modes of operation: infrastructure mode and other modes of…
Q: Explain the key distinction between recurrent and non-recurrent neural network processing.
A: Given: A recurrent neural network is a kind of artificial neural network in which a directed cycle…
Q: Why are disc files fragmented and distributed across the disc surface(s)?
A: The disk is used to store data in computer. The disk is divided into blocks to increase the speed of…
Q: What does the phrase "debugging" imply precisely?
A: Debugging. Debugging is a calculated course of finding and reducing the number of bugs, or…
Q: نقطة واحد Which among the following best * ?defines single level inheritance A class inheriting a…
A: The Answer is in Below Steps
Q: Computer science Short answer -What do you think about data hiding, data encapsulation and…
A: Introduction: Data are measurable information units gained via analysis. Object-Oriented Programming…
Q: What are the many architecture types in software engineering?
A: Introduction: The challenge is founded on the fundamentals of software engineering and must be…
Q: What are some indicators that a system's useful life is drawing to a close?
A: Answer:- The first indicator of a system's useful life is the system's ability to generate stable…
Q: ?following C++ code #include #include using namespace std; class A { float d; public: ACO{…
A: In this question, we have given a C++ code. This code involves class and constructor. We have to run…
Q: Why is it so important to know how to work with compressed zip files and folders?
A: ZIP archives and folder compresses A compressed ZIP file is a single file or folder that contains…
Step by step
Solved in 3 steps with 1 images
- please write in C++ using #include <iostream> using namespace std Define a class called DateYear, that represents any year like 2023 in addition to the day and month (03/34/2023). Your class will have one member variable of type int to represent the year. This class is a child of the DayOf Year class where the code is given in lecture14 (Lecture14_Code.cpp). Your DateYear class should have the following member functions: a constructor and a default constructor that sets the year to this year, month to 1 and day to 1. an input function that reads the date (day, month, and year). Make sure to check for inaccurate dates. -getter and setters for the year. an output function that outputs the date in form of xx/xx/xxxx. It can display to the screen or the file. A friend function DateCompare that compares two years and returns true if they are the same. A member function BDCountdown, which calculates and returns how many days till your birthday. This function take the birthday as the…Write the definitions of the functions of the class primeFactorization (Example 11-4) declared in the primeFactorization header file. Write a program that uses this class to output the prime factorization of an integer. Your program should prompt the user for an integer, determine if the input is a prime number, and display the factorization of the integer An example of the program is shown below: Enter an integer between 2 and 270,000,000,000,000: 1005427 1005427 is a prime number. Its factorization is: 1005427 = 1005427Please written by Computer source Write the following program in C#. Use comments to indicate your mutator, accessors, and constructors. Write a program that includes an Employee class that can be used to calculate and print the take-home pay for a commissioned sales employee. All employees receive 7% of the total sales. Federal tax rate is 18%. Retirement contribution is 10%. Social Security tax rate is 6%. Write instance methods to calculate the commission income, federal and social security tax withholding amounts and the amount withheld for retirement. Use appropriate constants, design an object-oriented solution, and write constructors. Include at least one mutator and one accessor method; provide properties for the other instance variables. Create a second class to test your design. Allow the user to enter values for the name of the employee and the sales amount for the week in the second class.
- Hello the question is the following: Write the definitions of the functions of the class primeFactorization (Example 11-4) declared in the primeFactorization header file. Write a program that uses this class to output the prime factorization of an integer. Your program should prompt the user for an integer, determine if the input is a prime number, and display the factorization of the integer. An example of the program is shown below: Enter an integer between 2 and 270,000,000,000,000: 1005427 1005427 is a prime number. Its factorization is: 1005427 = 1005427 I need help with write three things: integerManipulationImp.cpp, primeFactorizationImp.cpp, and a main.cpp. The attached images are the .h files respective to the cpp files that are needed to answer this question. Thank you.What refers to the contents of a class? a. both data and functions b. functions c. none of the choices d. data what is the output of this c++ program? #include using namespace std; class Test { int x; }; int main () { Test t; t.x = 6; cout << t.x; return 0; } a. 6 b. 0 c. random value d. compiler errorCan I please get help writing this in c++ Create a base class called Animal. All animals have a name (i.e. “Fido,” “Thumper,” “Princess,” “Nemo,” etc.) and an age. Provide a default constructor that initializes the age to zero and outputs the message “Invoking the default Animal constructor” and another constructor that allows the name and age to be set by the client. This other constructor should also output the message “Invoking the 2-argument Animal constructor.” Also construct a destructor for this class that outputs the message “Invoking the default Animal destructor.” Your Animal class should have a function called Move that cannot be implemented. That is, it should be declared as a purely virtual function. Your class should also have Get and Set methods to allow the name and age to be accessed. From the Animal class, derive Dog, Rabbit, Fish, and Snake classes. The derived classes should each have constructors and destructors that output an appropriate message (e.g., the…
- In C++ Language: Suppose I have a class named Person. Here is how I would like to use the class: //Create a person named Dave Smith Person dave("Smith", "Dave", 'R'); //Create a person named Gal Gadot Person gal("Gadot", "Gal", 'G'); //Dave and Gal gets married gal = dave + gal; dave = dave + gal; //print Gal and Dave's new married name cout << gal << endl; cout << dave << endl; This will output the following: Gal Smith-Gadot Dave Smith-Gadot Write the class declaration for PersonPlease answer in C++ / Text book question / C++ for scientist and Engineers 3rd edition Construct a class named Fractions containing two integer data members named num and denom, used to store the numerator and denominator of a fraction having the form num/denom. Your class should include a default constructor that initializes num and denom to 1 and four operator functions for adding, subtracting, multiplying, and dividing the two fractions, as follows: Addition: a/b + c/d = (a * d + b * c) / (b * d)Subtraction: a/b - c/d = (a * d - b * c) / (b * d)Multiplication: a/b * c/d = (a* c) / (b * d)Division: (a/b) / (c/d) = (a * d) / (b * c) Finally, your class should have a member function that reduces each fraction to its terms (refer to Exercise 15 in Programming Projects for Chapter 6 for how to do this) as well as input and output functions for entering and displaying a fraction. thanksin C# i need to Write a program named InputMethodDemo2 that eliminates the repetitive code in the InputMethod() in the InputMethodDemo program in Figure 8-5. Rewrite the program so the InputMethod() contains only two statements: one = DataEntry("first");two = DataEntry("second"); what I have is using static System.Console; using System; class InputMethodDemo2 { static void Main() { int first, second; InputMethod(out first, out second); WriteLine("After InputMethod first is {0}", first); WriteLine("and second is {0}", second); } private static void InputMethod(out int one, out int two) { one = DataEntry("first"); two = DataEntry("second"); } public static int DataEntry(string whichOne) { Write("Enter {0} integer: ", whichOne); string input = ReadLine(); return Convert.ToInt32(input); } } the error I get is Method DataEntry is defined to eliminate repetitive code…
- Create an overloaded output operator operator<< as a stand-alone function for your DivSales class. You may not use friend .The output operator should display the sales for each quarter of a single division (single object of the class) with labels. Remember DivSales represents the quarterly sales of one division of a company. Use it in your main program to output the quarterly sales for each division in the company (for each object in the divisions array). You will need a loop. After all divisions are displayed, display the total corporate sales for the year.a. Differentiate between implicit type conversiona nd Explicit type conversion with the help of example. b. What is the use of continue statement exaplin with appropriate example.in C++ Customers at a popular home improvement store come in and ask you how many pavers and how much gravel and sand they will need to install a patio. Write a program to calculate these quantities and also provide a cost estimate for the project. All your work will be done in the main function. First, you declare the variables needed for the calculation. After you write your class header, ask the customer to enter the patio’s width and length (in feet, a double or float). How many pavers will your customer need? First, calculate the patio area. There are many patterns for putting down pavers. Rather than lay out the exact pattern, allow 10% more square feet for pattern matching and waste. The pavers that you are selling today are 4 inches x 8 inches. Calculate the number of pavers needed and round up to the next whole paver. Next calculate the volume of gravel and sand needed for the patio: The volume of gravel needed for the base of the patio is enough to provide a base with…