Question 2: Find errors in the following program and correct them: #include "stdafx.h" #include using namespace std; float N; T; float main() { cout "Enter the net price: " cim >> N: T 1.15 N caut << "The final price= " << T; system("pause"); return 0;
Q: A large-scale grid computing project such as the Large Hadron Collider presents a number of…
A: Computing on a grid: In grid computing, a variety of computers located in different locations are…
Q: Theft of one's identity is a common kind of criminal behavior that sadly is on the increase due to…
A: Thieves may steal your identity and personal information in a variety of methods. A few of the most…
Q: So, why is software development so critical? .. You believe that four more traits should be added to…
A: The process of generating, building, deploying, and supporting software is referred to as "software…
Q: In software testing and development, what kinds of tools and technologies may be utilized to…
A: Software testing is an organizational process for building software that ensures mission-critical…
Q: Multiprogramming, multiprocessing, and remote computing settings need the use of consistent…
A: Given: ConcurrencyConcurrency is a technique for interleaving actions in time to provide the…
Q: What are the main differences between the demands of a user and those of a system?
A: System requirements of the software product need the host environment to support and user…
Q: How can we define comprehensive and consistent requirements?
A: Given: A good requirements document will often contain a development plan that includes extra…
Q: A sender sends a series of packets to the same destination using 4-bit sequence numbers. If the…
A: The question is to find the sequence number after sending 150 packets using the given configuration.
Q: Distinguish between wired and wireless networks, pointing out the differences between the two
A: Wireless networking: Wireless local networks are reasonably easy to set up and are ideal for…
Q: What are some of the benefits that come with using a method that works in stages?
A: In the incremental approach, the software is broken up into individual modules or components, and…
Q: Which protocol is used the majority of the time when bonding ports between a busy server and a…
A: Link Aggregation Control Protocol is an IEEE standard defined in IEEE 802.3ad. LACP allows devices…
Q: What safety measures can you take to prevent power surges from causing damage to your computer, and…
A: The above question is solved in step 2 :-
Q: Write the ternary-searchtrie (TST)thatrepresents a dictionary of the strings: “gnu”…
A: Unlike trie(standard) data structure where each node contains 26 pointers for its children, each…
Q: Unlimited tries Assume that a class named Student exists and contains the following methods: • a…
A: Step-1: Start Step-2: Create a class Student Step-2.1: Declare an variable schoolName Step-2.2:…
Q: What are the models of the Software Development Life Cycle?
A: Start: The SDLC model (software development life cycle) is a systematic approach to the development…
Q: 1. Write a pseudo code and draw a flowchart that performs the following: a. Ask a user to enter a…
A: According to Bartleby guidelines we need to answer only one question so i have answered question 1…
Q: Consider an airline's database as an illustration of this. An unserialized technology may be…
A: Database System: Consider a database management system for an airline that makes advantage of…
Q: How would you design a Big Data architecture for a business that offers its clients with flight…
A: Answer: Large-scale information design is the base for large-scale information analysis. It is the…
Q: 2. Short Answer Write the code according to the following situation along with the result registers:…
A: ADCON0 = 0x41; // 0001 0001ADCON1 = 0x11; // 0001 0001 ADRESH = 0;ADRESL = 0; GO_nDONE = 1; while…
Q: We'd want to know precisely what "network security" means to you. Justify the usage of…
A: Network protection Network security involves a vast array of technology, devices, and procedures. It…
Q: The project schedule has the following characteristics: Activity Time (weeks) Activity H A B C D E F…
A: Answer has been explained below:-
Q: Course: Compilers and Translators a.) Explain 5 techniques used to improve a code. b.) Briefly…
A:
Q: The revolution in computing that cloud services represent has a broad range of implications for…
A: Introduction: This study attempts to offer an overview of the advantages and cons of cloud computing…
Q: We use the phrase "precise and logical" a lot when discussing requirements. What exactly do we mean?
A: When we talk about needs, what do we mean by "exact and logical"? "Precise" suggests that the…
Q: What does IOT do to us?? How significant is it to us in our day-to-day lives?
A: Start: Whether you like it or not, the Internet of Things, often known as the IoT, has so thoroughly…
Q: Using the Black Box Testing Technique, what is the test-cases for the following: a. Equivalence…
A: Black Box Testing: Black Box Testing is a software testing method that analyses software/application…
Q: ode that will ask again what is asked if the input is wrong which has spaces
A: Whenever we use cin>>variable_name it takes an input till next space from user and saves it in…
Q: Is it better for a systems analyst to use an IDE or generic CASE tools? Explanation
A: Computer systems analyst A system analyst is in charge of handling data gathered during the creation…
Q: Create, compile, and run a program that manages a stack. new inventory. Suppliers will come to the…
A: step 1 Stack interface public interface StackInterface<T>{@param newEntry An object is to be…
Q: What precisely is meant by the term "multicore CPU," and how does one of them work? When compared to…
A: Processor with several cores: A multicore processor (also known as a chip multiprocessor or CMP) is…
Q: Would you be open to using the internet to help usher in a new age of invention??
A: Given: The Internet has become one of the primary forces behind the progression of society as a…
Q: In what stage is the Internet of Things now, and when and where did it all get its start?
A: The Internet of Things is also known as IoT.
Q: New Intel architectures improve peripheral and communication line performance.
A: Intel is a corporation that provides enhanced computer processing capability.
Q: What does it mean for a CPU to have several cores? What advantages does having a CPU with several…
A: Multicore processor: A multicore processor is a single integrated circuit that has numerous core…
Q: What is the shortened name for the Microsoft Developer Network (MDN) on computers?
A: Introduction: MDN stands for Microsoft Developer Network was the Microsoft division in charge of…
Q: If you're interested, you could obtain an explanation of the metrics that are employed in the…
A: Your answer is given below. Introduction :- A software metric is a measurable or countable measure…
Q: What Kinds of Things Make Up the Different Parts of a Computerized System? Include, if possible, a…
A: we need to understand the key components of a computer system in detail - input unit, output unit,…
Q: What use does mastering Boolean algebra provide for computer scientists?
A: Boolean algebra has a significant influence on the practice of computer science, not just as a…
Q: We use the term "complete and consistent" to describe what we mean when we declare that criteria…
A: The answer is given below...
Q: What precisely is the CAP theorem, and how does it apply to the real world?? What precisely does…
A: Introduction: According to the CAP theorem, commonly known as Eric Brewer's theorem, a database can…
Q: The parts of a system design specification and their contents should be listed and described in…
A: First of all, the System design specification document describes the system requirements, files and…
Q: If we choose the last value (6) as the pivot, what would be the resulting array after we run one…
A:
Q: Don't make your case just on the basis of performance considerations; instead, explain why deep…
A: Dynamic Scope: The dynamic scope allocation principles are utilized for programming languages that…
Q: Is there a benefit to utilizing dynamic programming to make a sequence of linked decisions? So,…
A: Dynamic programming gives a systematic method for determining the best choice combination.
Q: Unlike other server operating systems, the Ubuntu Server Operating System looks and functions much…
A: Manages all aspects of a computer's operating system, including hardware and software
Q: The use of virtual private networks, or VPNs, might be beneficial to extranets like online hardware…
A: Technology Used in VPNs: An extranet is a private intranet constructed on the Internet that follows…
Q: In addition to going over each step in detail, go through the typical systems development process's…
A: The following are the seven stages of the SDLC1. PlanningThis is the first phase of a program…
Q: Big data is being used by an increasing number of companies. What kind of a use would you say the…
A: We need to explain the kind of a use, the organization makes of big data.
Q: Is it correct to say that a router will only route MAC addresses and no other kind of address? For…
A: Find the required answer given as below :
Q: Your computer is protected from any dangers that may originate from the outside world as a result of…
A: Introduction: A firewall functions as a gatekeeper for a network, prohibiting unauthorized users…
Step by step
Solved in 3 steps with 2 images
- Step 1. Complete the following program and record the results. #include <iostream> using namespace std; void rect_area(float, float, float); int main() { float width = 2.5, height = 3.1, area = 0.0; ___________________________ //filling by calling rect_area() method cout << "The area in main is " << area << endl; return 0; } void rect_area(float width, float height, float area) { area = width * height; cout << "The area in the function is " << area << endl; }Question 1 is already done need help with the others though This is the C code I have so far #include <stdio.h> #include <stdlib.h> struct employees { char name[20]; int ssn[9]; int yearBorn, salary; }; struct employees **emps = new employees()[10]; //Added new statement ---- bartleby // function to read the employee data from the user void readEmployee(struct employees *emp) { printf("Enter name: "); gets(emp->name); printf("Enter ssn: "); for(int i =0; i <9; i++) scanf("%d", &emp->ssn[i]); printf("Enter birth year: "); scanf("%d", &emp->yearBorn); printf("Enter salary: "); scanf("%d", &emp->salary); } // function to create a pointer of employee type struct employees *createEmployee() { // creating the pointer struct employees *emp = malloc(sizeof(struct employees)); // function to read the data readEmployee(emp); // returning the data return emp; } // function to…Mark the following statements as true or false: a. To use a predefined function in a program, you need to know only the name of the function and how to use it. (1) b. A value-returning function returns only one value. (2, 3) c. Parameters allow you to use different values each time the function is called. (2, 7, 9) d. When a return statement executes in a user-defined function, the function immediately exits. (3, 4) e. A value-returning function returns only integer values. (4) f. A variable name cannot be passed to a value parameter. (3, 6) g. If a C++ function does not use parameters, parentheses around the empty parameter list are still required. (2, 3, 6) h. In C + + , the names of the corresponding formal and actual parameters must be the same. (3, 4, 6) i. A function that changes the value of a reference parameter also changes the value of the actual parameter. (7) j. Whenever the value of a reference parameter changes, the value of the actual parameter changes. (7) k. In C++, function definitions can be nested; that is, the definition of one function can be enclosed in the body of another function. (9) l. Using global variables in a program is a better programming style than using local variables, because extra variables can be avoided. (10) m. In a program, global constants are as dangerous as global variables. (10) n. The memory for a static variable remains allocated between function calls. (11)
- 6.10 LAB: Driving costs - functions Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:print('%0.2f' % your_value) Ex: If the input is: 20.0 3.1599 the output is: 1.58 7.90 63.20 Your program must define and call the following driving_cost() function. Given input parameters driven_miles, miles_per_gallon, and dollars_per_gallon, the function returns the dollar cost to drive those miles. Ex: If the function is called with: 50 20.0 3.1599 the function returns: 7.89975 def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon) Your program should call the function three times to determine the gas cost for 10 miles, 50 miles, and 400 miles. Note: This is a lab from a previous chapter that now requires the use of a function.6. Write an assignment statement that might be used to implement the equation below: (use the pow(a,b) function) y = 4x⁴+ 2x² + 1Examine the following function header, and then write a statement that calls the function, passing 12 as an argument.def show_value(quantity):
- 6.20 LAB: Driving costs - functions Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:print('{:.2f}'.format(your_value)) Ex: If the input is: 20.0 3.1599 the output is: 1.58 7.90 63.20 Your program must define and call the following driving_cost() function. Given input parameters driven_miles, miles_per_gallon, and dollars_per_gallon, the function returns the dollar cost to drive those miles. Ex: If the function is called with: 50 20.0 3.1599 the function returns: 7.89975 def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon) Your program should call the function three times to determine the gas cost for 10 miles, 50 miles, and 400 miles. I need help with this. Use Python, please.C++ programming question: Suppose we have just discovered an alien planet (we will call it Mars), and on this planet one year is divided into 15 months and each month consists of 30 days. i. Write the code for a struct charontime to hold years, months, and days for time on Charon -all ints. ii. Write a function that takes an int parameter that represents the number of Charon days, converts it to years, months, and days on Charon and returns this information in a struct charontime. So for example it will convert 800 days into a struct that represents 1 year, 11 months, and 20 days. iii. Write a function that takes a struct charontime parameter and returns the total number of Charon days represented by the struct. iv. Write a function that takes a filename and an array of struct charontime, opens the file, reads each line as the number of Charon days, converts this to a struct charontime and stores this in the array. (you don't need to create an actual file with number of days in it...…C++ programming question: Suppose we have just discovered an alien planet (we will call it Mars), and on this planet one year is divided into 15 months and each month consists of 30 days. i. Write the code for a struct charontime to hold years, months, and days for time on Charon -all ints. ii. Write a function that takes an int parameter that represents the number of Charon days, converts it to years, months, and days on Charon and returns this information in a struct charontime. So for example it will convert 800 days into a struct that represents 1 year, 11 months, and 20 days. iii. Write a function that takes a struct charontime parameter and returns the total number of Charon days represented by the struct. iv. write a function to sort an array in descending order based on the number of charon days. write a comparison and swap function you will use
- **PLEASE READ THE WHOLE QUESTION!!"" Write a python, program that prints a pyramid made of letters in the middle of the screen. Use functions with parameters for this assignment. The base width of the pyramid is determined by a character the user enters. If the user enters the letter o, the following pyramid will be printed. It can be assumed that the screen width is 80 characters. The following assignments make use of functions with return values ("fruitful functions"). So if the user enters the letter o it will print the ******The input is not always o, the input o is just an example, so the user can enter also a letter like u or w or something else******** **nBesides that the code may not have the charArray = 'abcdefghijklmnopqrstuvwxyz', but it needs to have the range code like (range(97,123)) or something else **int num1, num2, num3; double length, width, height; double volume; num1 = 6; num2 = 7; num3 = 4; length = 6.2; width = 2.3; height = 3.4and the function prototype: double box(double, double, double);Which of the following statements are valid? If they are invalid, explain why.a. volume = box(length, width, height);2.) Call backs (True or False): A.) Your program has three functions defined: void a(), void b(), and void c(), followed by your main() function. Your main() function is allowed to call a(), b(), and c(). (True/False) B.) Your program has three functions defined: void a(), void b(), and void c(), followed by your main() function. Your main() function is allowed to call c() but cannot call a() or b(). (True/False)