1.Accept a command line argument which is the purchase data file in the following format: Here is an example of the data file: Num_purchase(int) symbol (string) price(double) Define FILE FOR INPUT. TC 30.13 200 CSCO 24.00 50 IBM 130.00 100 AAPL 94.28 new C++ "Stock" class that manages a stock price, number of share and stock symbol, must be in private Store data from file into vector NUM, SYMBOL,PRICE DISPLAY all data in the following format: Num_purchase, symbol, price, total(total is caculate by mutiply Num-purchase with price). amount>= : display all data have a total >= the given total create function name Find so that you can find : display all purchase only for that symbol
Q: .11.
A: Pseudo Code:- Start the Program Take the length of the cube as input from user calculate the…
Q: Let wk = SCzk and show that wk = λkwk. Conclude that the eigenvalues are equal to the diagonal…
A:
Q: Explain the impact digital technology has had on assistive devices for people with physical…
A: Assistive technology is the advances that make life simple for individuals who have actual…
Q: J 2 Indicate whether the following statements are True or false. Justify the reasoning and provide a…
A: The question has been answered in step2
Q: What is Onion network?
A: Here is your Solution .
Q: Some parameters in Google searching the "lr" code, which does what?
A: The full form of lr is language restrict
Q: b. What are the first valid host and last valid host of 4th Subnet? frth.
A: The answer is
Q: rmation that reduces the SWS as the recei er space. Illustrate your protocol with a tim smission;…
A: In sliding window protocol, the sender holds three variables: sender window size denoted by SWS…
Q: Please write a C++ program to read an integer x and output f(x) rounded to three decimal places,…
A: We need to write a c++ program which compute the some function values. Sample run 1 Input values…
Q: Give some details of how you might augment the protocol with flow control by having ACKS carry…
A: We assume ACKs carry an additional variable k, which indicates the available buffer space of the…
Q: 7. Write a function that evaluates the area of a pentagon. Use "math.pi", for pi, and "math.sqrt"…
A: code snippet:
Q: Multiple answer: Which statements will correctly flip (invert) bits 6 and 7 of an integer x x =…
A:
Q: mber that when creates an imp ng to this synta: e this:
A:
Q: The processor uses values to enter memory positions, and some of the registers are used to save the…
A: Below is the answer to above question. I hope this will be helpful..
Q: Give some details of how you might augment the sliding window protocol with flow control by having…
A: Computer Networks refers to the set of the computer which are interconnected with the transmission…
Q: hdl code for following with ss. Circuit.
A: The answer is as follows.
Q: 2. Answer the following the questions. Show work on the space provided below the problem. Write…
A: Disclaimer: “Since you have asked multiple questions, we will solve the first question for you. If…
Q: 3.11 LAB: Smallest number Write a program whose inputs are three integers, and whose output is the…
A: The question has been answered in step2
Q: Let A and B be two stations attempting to transmit on an Ethernet. Each has a steady queue of frames…
A: GIVEN: T = 51.2 microseconds There is A frame named A1, A2 and so on Back off times equals = 0 * T ,…
Q: “Supporting a travel agency, TORS maintains tour information and provides reservation facilities for…
A: Here we have given specifications in the fully dressed form for the use case diagram. you can find…
Q: 8) /.
A: Algorithm: Start Read name of city and validate it Read total population (pop) and validate it…
Q: What is Onion network?
A: We access Onion Networks Using the TOR Browser. Messages go via an Onion Network encased in many…
Q: c. It directs Python to not perform the instructions that follow.
A: Dear Student, If a statement is true the not operator returns false and vice versa if a statemt is…
Q: Suppose a 10-Mbps Ethernet hub (repeater) is replaced by a 10-Mbps switch, in an environment where…
A: Computer networks are the set of the systems are interconnected with the transmission medium either…
Q: What does the 'and' Boolean operator do? a. It compares two conditions. Only if both are True is the…
A: Dear Student, "and" boolean operator compares two conditions separated by "and" , also result is…
Q: Consider a simple protocol for transferring files over a link. After some initial negotiation, A…
A:
Q: 1. Commonly a_________is seen as a new compatibility baseline for other software. A. patch B.…
A: 1. option c service pack Service packs increase and update your computer's functionality. Updates,…
Q: 0 min Dijkstra's algorithm to find the optimal route from A to J.
A: Table: N D(A)p(A) D(B)p(B) D(C)p(c) D(D)p(D) D(E)p(E) D(F)p(F) D(G)p(G) D(H)p(H) D(I)p(I)…
Q: C++ Code Only: Write a program to print the following output: 1 12 123 1234 12345
A: Step-1: Start Step-2: Declare a variable row = 5 Step-3: Start a for loop from i=1 to row Step-3.1:…
Q: Review the code snippet below: sentence = input ("Enter some text: ") firstch= sentence [0] Which of…
A:
Q: Size of the memory=Number of Words Number of bits per word
A: The answer is
Q: 4. Convert 1001 1101 from base 2 to decimal 5. Convert 6682 from hexadecimal to binary 6. Convert…
A: 4. Convert 1001 1101 from base 2 to decimal Write the given base 2 numbers in powers of 2 27 26…
Q: Suppose that the data mining task is to cluster points into two clusters, where the points are 2, 3,…
A:
Q: When it comes to cloud security, what is the "shared responsibility" paradigm like?
A: Answer: The industry has coined the term "Shared Responsibility" to describe the tasks and…
Q: Consider how important wireless networks are in today's countries that are still developing.…
A: Introduction: A solid monitoring plan may assist you in keeping local area networks (LANs) working…
Q: 3.8 LAB: Read values into a list Write a program that reads a list of integers into a list as long…
A: The above question is solved in step 2 :-
Q: Encrypt your memory stick using BitLocker. Save the newly generated recovery key on your Desktop.…
A: Below is the complete steps with explanation in detail for the given question regarding encrypting…
Q: Give some details of how you might augment the sliding window protocol with flow control by having…
A: We assume ACKs carry an additional variable k, which indicates the available buffer space of the…
Q: Irite a program that prompts the user to input an integer between 0 and 35. If the number is less…
A: #include <iostream>#include <iomanip> Below is the code for a given requirement using…
Q: Calculate the total time required to transfer a 1.5-MB file in the following cases, assuming an RTT…
A:
Q: Consider an ARQ protocol that uses only negative acknowledgments (NAKS), but no positive…
A: The answer is given in the below step
Q: who have cars of type ‘Premium’ (v) Show the cities and the number of drivers, where at least 1000…
A: Given : (iv) Retrieve the names and cities of all drivers who have cars of type ‘Premium’
Q: 3. Write the function to evaluate/compute the following, i.e. the value of Pl given by the…
A: The above question is solved in step 2 :-
Q: Suppose that we run the sliding window algorithm with SWS = 5 and RWS = 3, and no out-of-order…
A: The question has been answered in step2
Q: hops (1 hop=4km), the signal propagation speed is 2000 km/s and the line Assume that each packet is…
A: The answer is
Q: c) Assuming an 8-bit system is used (i.e. the system uses 8 bits to represent an integer):…
A: This question comes from Number System which is a paper of Computer Science. Let's discuss it in the…
Q: PROVIDE JS SOURCE CODE Design a web page with a text box (username) where the user can enter a name…
A: CODE:
Q: Change your previous temperature conversion program so that it will converts the temperatures from 1…
A: As per the requirement program is developed. Note: In the question programming language is not…
Q: Suppose a bridge has two of its ports on the same network. How might the bridge detect and correct…
A: It has been configured like, having two of its ports on the same network. So we have to create a new…
Q: *From now and on yourLastName will be changed to your last name. *Your program should change White…
A: PSEUDO-CODE: Declare variables Input employee_name, hourly_salary, working_hours annual_salary =…
Step by step
Solved in 2 steps with 1 images
- Topical Information Use C++. The purpose of this project is to test your ability to use files, class design, operator overloading, and Strings or strings effectively in program design. Program Information Create a program which will read a phrase from the user and create a framed version of it for printing. For example, the phrase "hello world"would result in: ********* * hello * * world * ********* Whereas the phrase "the sky is falling"might be: *********** * the * * sky * * is * * falling * *********** Or: *********** * the * * sky * * is * * falling * *********** Or even: *********** * the * * sky * * is * * falling * *********** Depending on whether or not the user asked for left, centered, or right justification — respectively — of the phrase's words within the frame. Note how the frame exactly fits the phrase based on the longest word within. Neat, eh? The phrase "O | -+- | /-\"when centered would become:…C++ OOP Create a class staff having fields: Staff_id , name, salary. Write a menu driven program for:o To accept the datao To display the datao To sort the data by nameC++ Create program that uses commands: 1.Accept a command line argument which is the purchase data file in the following format: Here is an example of the data file: Num_purchase(int) symbol (string) price (double) FILE FOR INPUT: TC 30.13 200 CSCO 24.00 50 IBM 130.00 100 AAPL 94.28 1. Define a new C++ "Stock" class that manages a stock price, number of share and stock symbol 2. Store data from file into vector NUM,SYMBOL, PRICE 3. DISPLAY all data in the following format: Num_purchase, symbol, price, total(total is caculate by mutiply Num-purchase with price).
- C++ Create program that uses commands: 1.Accept a command line argument which is the purchase data file in the following format: Here is an example of the data file: Num_purchase(int) symbol (string) price(double) FILE FOR INPUT: TC 30.13 200 CSCO 24.00 50 IBM 130.00 100 AAPL 94.28 Define a new C++ “Stock” class that manages a stock price, number of share and stock symbol Store data from file into vector NUM,SYMBOL,PRICE DISPLAY all data in the following format: Num_purchase, symbol , price, total(total is caculate by mutiply Num-purchase with price).Write program in C++ Language The other solutions on chegg were incorrect! Please read carefully! Write a program that defines and tests a class called COP3014. The class resembles aclassroom. It has the following grading scheme:3 quizzes 20 points each 20%Mid term 100 points 30%Final 100 points 50%Based on the total grade of any student for the course, the letter grade of each student can becomputed as follows:Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and anygrade below 60 is an F.This class needs to have some member variables. The first name, last name, the Z-number, thegrades, the total grade and final letter grade are all considered to be private member variablesof this class.The class should also have the following public member functions/procedural attributes that canbring the objects (students of the class) to life and give them some…Bank ProgramThis c++ assignment uses the same account class created in Lab #4 with a more generally useful interface. It reads commands from a bank.txt file. Your program must process the following four commands.Create account amountDeposit account amountWithdraw account amountBalance accountIn all of the above commands, account is an integer and amount is a double.The following program behavior is required –1. Valid account numbers are 1-9. This requires the program to have an array of references to Account objects.2. If the first word on any line contains a command other than the four listed above, an error message should be displayed and that line ignored.3. The create command creates a new account object with the given account number and initial balance. If an account already exists with that number an error message should be displayed and the command ignored.4. The Deposit and Withdraw commands perform the indicated operation on an existing account. If no account with that number…
- in C++ There should be three files: header file containing the definition of class .h, file containing the class implementation should be .cpp, and the driver code (i.e., the main() function) main.cpp Create a class called Complex for performing arithmetic with complex numbers. Write a driver program to test your class. Complex numbers have the form: realPart + imaginaryPart * i where i is √−1.Use double variables to represent the private data of the class. Provide a constructor function that enables an object of this class to be initialized when it is declared. The constructor should contain default values in case no initializers are provided. Provide public member functions for each of the following: a) Addition of two Complex numbers: The real parts are added together and the imaginary parts are added together. b) Subtraction of two Complex numbers: The real part of the right operand is subtracted from the real part of the left operand and the imaginary part of the right…C++ Dynamic Programs Hoskins College offers both curriculum and continuing education courses. Write a program that dynamically tracks these courses using an array of object pointers. Every course (both curriculum and continuing education) has a course id, title, room number, and number of contact hours. A curriculum course has credit hours and tuition rate. Tuition is calculated by multiplying the course's credit hours by tuition rate. A continuing education course has a flat fee (cost). Implement a show() function in every class that displays the data in the object. Part A: Create an inheritance-based collection of classes to represent these different courses. Include code in main to test your work by instantiating objects of the two derived classes. Part B: Modify your program. Remove the objects you created in main to test the classes. Modify the base class so that show() becomes a virtual class. In main, create a single array capable of holding pointers to objects of both…Write a c++ program Class student contains roll number, name and course as data members and Input_student and display_student as member functions. Create a class exam and publicly inherit it from student class. The derived class contains an array of marks and no_of_subjects as data members, and input_marks and display_result as member functions. Overload “
- Write a C++ program, you will create a class called Books to hold the information about the books in a library. The information required for each book is as follows Book Title Author name Publisher Publish year Subject Book ID (identical 5 digits’ number) Implement the following getBookInfo () member function that receives a pointer to a book and fills it up with user data. User input validation is necessary. The user should be properly prompted for each field. void getBookInfo (Books *b) Implement the following printBookInfo () member function. void printBookInfo (Books *b) Your function should print the book in the following format: Book Title : Object Oriented Programming Using C++ Author : Chris M. Szalwinski Publisher : Amazon Year : 2016 Subject : Computer Science Book Id : 00034 Note: You need to add required constructors/destructors, member functions or data members/variables in your program to complete its execution. //Missing lines of codes to be completed by the student }…c++ A FastCritter moves twice as fast as a regular critter. When asked to move by n steps, it actually moves by 2 * n steps. Implement a FastCritter class derived from Critter whose move function behaves as described. Complete the following file: fastcritter_Tester.cpp #include <iostream>using namespace std; #include "critter.h" /**A FastCritter moves twice as fast as a regular critter.*/class FastCritter:public Critter{public:void move(int steps);}; . . . int main(){FastCritter speedy;speedy.move(10);cout << speedy.get_history() << endl;cout << "Expected: [move to 20]" << endl;speedy.move(-1);cout << speedy.get_history() << endl;cout << "Expected: [move to 20, move to 18]" << endl;return 0;} Use the following file: critter.h #ifndef CRITTER_H #define CRITTER_H #include <string> #include <vector> using namespace std; /** A simulated critter. */ class Critter { public: /** Constructs a critter at position 0 with blank…c++ A FastCritter moves twice as fast as a regular critter. When asked to move by n steps, it actually moves by 2 * n steps. Implement a FastCritter class derived from Critter whose move function behaves as described. Complete the following file: fastcritter_Tester.cpp #include <iostream>using namespace std; #include "critter.h" /**A FastCritter moves twice as fast as a regular critter.*/class . . .{public:void move(int steps);}; . . . int main(){FastCritter speedy;speedy.move(10);cout << speedy.get_history() << endl;cout << "Expected: [move to 20]" << endl;speedy.move(-1);cout << speedy.get_history() << endl;cout << "Expected: [move to 20, move to 18]" << endl;return 0;} Use the following file: critter.h #ifndef CRITTER_H #define CRITTER_H #include <string> #include <vector> using namespace std; /** A simulated critter. */ class Critter { public: /** Constructs a critter at position 0 with blank history. */ Critter();…