an oop us
Q: Left factor(common-prefixes) the following grammar:
A: Given : Grammar with common prefixes is given . S->S+S|S+P P->P*P|P*I I->-I|(S)|D D->0 |...
Q: To link an external CSS file with the name of "style.css" we have to add one of the following: Selec...
A: To link an external CSS file with the name of "style.css" we have to add one of the
Q: explain what is the difference between function overloading and function overriding
A:
Q: Write a JavaFX program that prompts user to enter details: (PLEASE INCLUDE A SNAPSHOT OF THE CODE IN...
A: Programming is nothing but the process of creating a set of instructions which tell a computer how t...
Q: Online pictures in MS PowerPoint can be added from insert ribbon.Select one:a. Trueb. False
A: In PowerPoint, you can add pictures from your computer, from the internet, or from a screenshot. To ...
Q: Write a c++ program that reads non-negative integer number and determines whether it is odd or even ...
A: Write a c++ program that reads non-negative integer number and determines whether it is odd or even ...
Q: Greetings! Could you please solve this question? Thanks!
A: a) A natural number 'n' is called a prime number if it cannot be written as the product of two natu...
Q: PLEASE HELP FOR A,B,C
A: please do upvote for my efforts ! answer: a) if one bit can have 4 values and a byte can hold 8 bi...
Q: Explain the DAD triad element that is used to defeat Integrity & confidentiality elements in the CIA...
A: Basically, CIA security model has three major components: 1. Confidentiality 2. Integrity 3. Availa...
Q: use java
A: In this java program , we need to define the main function inside the public class Variables. Inside...
Q: Exercise 5.2 Draw the diagram of the DFA that recognizes the entries whose at least one of the last ...
A: DFA means Deterministic Finite Automata, it is a machine which reads one symbol at one time and cons...
Q: Write a VHDL code in Quartus that will display a name and surname on the LCD screen of an Altera DE2...
A: Code: void zoom_and_scroll_image(int xini, int yini, int wini, int hini, int direcini){ static int d...
Q: Computer Science Question
A: In the Above Problem The Relation Between No of Triangle and H and V lines is No Of Triangle =(H+1...
Q: 3. The last session of the workshop was focused on SQL. (a) Write the sql syntax to create a table n...
A: As per company guidelines we are suppose to answer only 1 question. Kindly re-post other questions ...
Q: Write the output of the following HTML/javascript code: chtml>head> cscript>(function showd(){ docum...
A: Please give positive ratings for my efforts. Thanks. ANSWER Here, the given javascript program...
Q: Let L(X) be the statement " X visited London", let P(X) be the statement " X visited Paris" and let...
A: Answer to the above question is in step2.
Q: write c++ program to Read two integers from the user (x, y) where x is less than y Generate a random...
A: c++ program to Read two integers from the user (x, y) where x is less than y Generate a random numb...
Q: Please answer in Programming C++ Define a structure called Class with name (string), units (int) and...
A: Please answer in Programming C++ Define a structure called Class with name (string), units (int) and...
Q: Students need to answer 8 out of 10 questions in mathematics exam. In how many ways can a student ch...
A: Here 3 Question are mandatory and So We have to left 7 Questions. So number of ways to choose number...
Q: List the similarities and differences between the tone() function and theanalogWrite() function.
A: Analog Write can vary by the type of output used. It sets the pin to have an oscillating value whic...
Q: Suppose there are two TCP connections over a bottleneck connection of rate R bps. Both links have a ...
A: Answer is given below.
Q: Through a TCP link Host A transmitting a big file to host B. There is never any packet loss over thi...
A: Answer : There is no loss and acknowledgements are returned beforetimers expire, TCP congestion cont...
Q: In C Language
A: EXPLANATION: Used system call fopen,we have opened the file "file1.txt"in read mode System call fge...
Q: F# Exercise, BST write the following binary search tree functions in F# for a binary search tree of ...
A: A list in F# is an ordered, immutable series of elements of the same type. To perform basic operatio...
Q: Using C# in Visual Studio: Create the graphical user interfaces as shown below. Provide appropriate ...
A: Choose the Toolboxtab on the left side of the Visual Studio IDE (or press Ctrl+Alt+X), and then expa...
Q: Comparing ERP Vendors: You have been appointed as a consultant to a small manufacturing company that...
A: ERP stands for enterprise resource planning system which helps in data integration and also support ...
Q: *This is MicroController Question, it's about PIC18F452* Comment on the following uncommented line...
A: The code is again written here after mentioning all the comments for the different lines. To check t...
Q: Use python
A: Required:
Q: Create a structure called Shape which has two components, length and width. Create a structure varia...
A: EXPLANATION - A program is created . In program a structure named as Shape is created and two var...
Q: Please make code c++2d array 3x3, includes random values and repeats, and you must give the user 5...
A: In C++, rand() function is used to generate random numbers. srand() function sets the starting poin...
Q: write a C++ function that accepts your name (string) as an input and print it in reverse order witho...
A: Code: #include <iostream>using namespace std;#include<cstring>//function definition to...
Q: Write a program that creates three child processes and three pipes to communicate with each process....
A:
Q: Which of the following can be considered regarding client and server? a. None of the mentioned ...
A: Client and Server is an architectural style. Client-server architecture is a computing model in whic...
Q: Discrete Mathematics
A: Given: Is 2^99 + 1 dvisible by 27 ?
Q: Computer Science Question
A: In C++, long int can store integer between -2,147,483,648 to 2,147,483,647.
Q: please use python. Problem definition:We want to write a Python program for n players, which are pla...
A: We want to write a Python program for n players, which are playing a tournament. In this competition...
Q: Animation scheme can be appied to _____________ in the presentation.
A: Animation Schemes can be applied to one slide, several slides or to an entire presentation.
Q: 1) Why AOP and OOP Mix Strategy you will adopt? Describe Benefits 2) Primary Concern details with re...
A: As per company guidelines we are suppose to answer only 1 question. Kindly re-post other questions ...
Q: Course: Operating Systems write a multi-threadeddirectory copy program. The program will create dest...
A:
Q: Database Systems Question 3. A relation R is given which is R(A,B,C,D,E). It has the following funct...
A: Answer to the above question is in step2.
Q: Solve the following question correctly please. What is the difference between inheritance and polymo...
A: Here we will discuss what is the difference between inheritance and polymorphism with examples
Q: This exercise is designed to assess student’s skills of writing programs using arrays and loops. I n...
A: Please find the answer below :
Q: All red alarms displayed in the NMS will be fixed automatically. A) True B) False
A: Yes , the NVM alarms will be fixed automatically as they corresponds to the voltage levels and as th...
Q: What do you see as the motivating factors for using wireless as opposed to wired networks?
A: Motivating factors for using wireless network over wired network: ✓Improved data communications lead...
Q: Write a c++ program that reads non-negative integer number and determines whether it is odd or even ...
A: Code #include <iostream>using namespace std; int main(){ cout << " input integer: "...
Q: H - For the IEEE 754 single-precision floating point, write the hexadecimal representation for the f...
A: Given data is shown below: H - For the IEEE 754 single-precision floating point, write the hexadecim...
Q: Write the sequence of nodes visited using inorder traversal. Write the sequence of nodes visited usi...
A:
Q: Database Systems Question 6. Consider the following relation: Invoice(Order_ID, Order_Date, Customer...
A:
Q: F - Assuming a three-bit exponent field and a four-bit significand, write the bit pattern for the fo...
A: F - Assuming a three-bit exponent field and a four-bit significand, write the bit pattern for the fo...
Q: One of the following is an application layer protocol A) ARP B) SNMP C) ICMP D) TCP
A: Among all these protocols Simple network management protocol or SNMP is application layer protoco...
write an oop using photos below
Step by step
Solved in 3 steps with 2 images
- PROGRAMMING LANGUAGE: C++ Write a program which has a class named FileHandlerto read StudentName, MarksObtained from the attached picture. The class should have a function which calculates grade for a student and then adds it in a new column i.e. Grade. The grade should be calculated considering the following criteria. A: 87-100, B+: 80-86, B: 72-79, C+: 66-71, C: 60-65, D: 50-59, F: 0-49 The file should be saved once grade for all students is calculated. Write the driver program for executing the task.The push member function simulates the push of a numeric button with value 0 to 9. The open member function simulates the push of the # key that causes the lock to open, provided that the right combination was entered. (For now, the combination is hardwired as 1729. You will see in Section 9.6 how to change it.) As the data representation, use an integer containing the digits that have been entered up to this point. You will need to figure out how to update that number. For example, if the user had previously pushed 1 and 7, causing input to be 17, and now pushes 9, how can you set input to 179? In the open member function, return true if the lock would have been opened, false otherwise. Clicking that button resets the entered keys, whether or not the correct combination has been entered. Complete the following file: c++ please #include <iostream>using namespace std; /**A simulated lock with digit buttons.*/class Lock{public:/**Simulates a digit button push.@param button a digit…Define a member function named modify_contact to meet the following requirements: a. Take a self as a positional parameter. b. Take a id as a keyword parameter. c. Take a first_name as a keyword parameter. d. Take a last_name as a keyword parameter. e. If the id does not exists in the dictionary, return the string error. f. Set the id:[first_name, last_name'] key:value pair to the contact dictionary. g. Sort the data dictionary in ascending order by last name, and then by first name, ignoring case. h. Write the contents of the data dictionary to the filename that was set to the member variable. i. Return the key:value pair that was modified. Define a member function named delete_contact to meet the following requirements: a. Take a self as a positional parameter. b. Take a id as a keyword parameter. c. If the id does not exists in the dictionary, return the string error. d. Remove the key:value pair with the key equal to id. e. Write the contents of the data dictionary to the filename…
- True or false? Only instance member functions can be defined as constant functions.To call the read member function, what are the two parameters that must be supplied?Lab Activity 8: Functions Objectives: The objective of this Lab Assignment is to use functions. As you have learned already, the best approach to solve a problem is to break it down into individual steps. Do not forget about what you have previously learned and seen. This assignment will be asking you to use the knowledge you have acquired since the beginning of the semester. PART 1: Percentage of amino acid residues. Write a function that takes two arguments-a protein sequence and an amino acid residue code - and returns the percentage of the protein that the amino acid makes up. Test your function on the following examples: Sequence MSRSLLLRFLLFLLLLPPLP MSRSLLLRFLLFLLLLPPLP maralllrfllfllllpplp MSRSLLLRFLLFLLLLPPLP Amino acid residue M R L Y
- In C/C++, True or False: A variable's type helps define the range of values that can be held by that type. A variable's type helps define the operations that can be performed on that type. A parameter that has a default value must be the first parameter listed in the function's parameter list.In C++ Write the definition of a void function that has two parameters: an array, and an integer parameter that specifies the number of elements in the array. The functions swaps the first and last elements of the array.1) Convert your structure into a class. For this exercise, you can leave the data as public (otherwise you would have to change the input and output functions). 2) Write a member function show_all that prints all the information for one record - name, cost, markup, and the three inventory numbers. 3) Add a user option S that lets the user see all the information for all the items in the inventory, using the show_all member function. Print a header so the user knows what each column means, and format the output to appear in columns. Hint: do a setwidth() before *each* cout. Pick widths that make sense for name, cost, markup, and the three inventory numbers. Previous code: #include <iostream>#include <fstream>#include <vector>using namespace std; struct Record {string name;double cost;int markup;int count[3];}; const string places[3] = {"counter", "shelf", "warehouse"}; bool read_file(vector <Record> &v);void placement (vector <Record> &v);void…
- A default parameter cannot be found in which of the following function/function types Select one: O a.Member function of structure and main() b.Member function of structure c.Member function of class d.main()1) Modify class GradeBook as follows: a) Include a second string data member that represents the course instructor’s name. b) Provide a set function to change the instructor’s name and a get function to retrieve it. c) Modify the constructor to specify course name and instructor name parameters. d) Modify function display Message to output the welcome message and course name, then the string "This course is presented by: " followed by the instructor’s name. Use your modified class in a test program that demonstrates the class’s new capabilities. (computer programming C++ language)C++ Write a function named “createPayStub” that accepts the number of hours(integer), and the hourly payrate (double). It will return the pointer to a newlycreated PayStub object. If the given hours or payrate is negative, it will returnnullptr. In addition, it also returns the total payout amount to the caller (in theoutput parameter).Please show how this function is called and returning the proper information.