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
- #include <stdio.h>#include <stdlib.h> int cent50 = 0;int cent20 = 0;int cent10 = 0;int cent05 = 0; //Function definitionvoid calculateChange(int change) {if(change > 0) {if(change >= 50) {change -= 50;cent50++;} else if(change >= 20) {change -= 20;cent20++;} else if(change >= 10) {change -= 10;cent10++;} else if(change >= 05) {change -= 05;cent05++;}calculateChange(change);}} //Define the functionvoid printChange() { if(cent50)printf("\n50 Cents : %d coins", cent50); if(cent20)printf("\n20 Cents : %d coins", cent20); if(cent10)printf("\n10 Cents : %d coins", cent10); if(cent05)printf("\n05 Cents : %d coins", cent05); cent50 = 0;cent20 = 0;cent10 = 0;cent05 = 0; } //Function's definitionint TakeChange() { int change;printf("\nEnter the amount : ");scanf("%d", &change);return change; }//main functionint main() {//call the functionint change = TakeChange(); //use while-loop to repeatedly ask for input to the userwhile(change != -1){if((change %…#include <stdio.h>#include <stdlib.h> int cent50 = 0;int cent20 = 0;int cent10 = 0;int cent05 = 0; //Function definitionvoid calculateChange(int change) {if(change > 0) {if(change >= 50) {change -= 50;cent50++;} else if(change >= 20) {change -= 20;cent20++;} else if(change >= 10) {change -= 10;cent10++;} else if(change >= 05) {change -= 05;cent05++;}calculateChange(change);}} //Define the functionvoid printChange() { if(cent50)printf("\n50 Cents : %d coins", cent50); if(cent20)printf("\n20 Cents : %d coins", cent20); if(cent10)printf("\n10 Cents : %d coins", cent10); if(cent05)printf("\n05 Cents : %d coins", cent05);cent50 = 0;cent20 = 0;cent10 = 0;cent05 = 0; } //Function's definitionint TakeChange() { int change;printf("\nEnter the amount : ");scanf("%d", &change);return change; }//main functionint main() {//call the functionint change = TakeChange(); //use while-loop to repeatedly ask for input to the userwhile(change != -1){if((change %…Function #2: largest Parameters: num1 - a floating point number being compared against num2 and num3 num2 - a floating point number being compared against num1 and num3 num3 - a floating point number being compared against num1 and num2 Description: Write a function that takes in three numbers as parameters and prints out the largest of the three. If two or all of the numbers are equal, or even all three, then just print the value once. Test Cases: >>>largest(433.1, 2340.32, 12323.7) 12323.7 >>>largest(12.0, 32.1, 32.1) 32.1 >>>largest(23.44, 23.44, 23.44) 23.44
- #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…#include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…#include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…
- #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…Needs to be done in C# language. Problem Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient, the following data should be entered: • The number of days spent in the hospital• The daily rate• Hospital medication charges• Charges for hospital services (lab tests, etc.) The program should ask for the following data if the patient was an out-patient: • Charges for hospital services (lab tests, etc.)• Hospital medication charges The program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out-patient information. Both functions should return the total charges. Input Validation: Do not accept negative numbers for any data.#include int main() { float Bread = 1.09, Water = 2.18, Banana = 1.00, Meat = 7.99; //Unit for bread is loaf, for water is bottle, for banana and meat are Ibs. int Bread_num=2, Water_num=3, Banana_num=2, Meat_num = 1; float Cost = Bread"Bread_num+Water*Water_num+Banana*Banana_num+Meat"Meat_num; float Grocery_tax = 0.07; Other part of this line is missing. Other part of this line is missing as well. [printf( [printf( getchar(); return O; } -----=-SCRIPT ENDS HERE ==== so we can have You have 2 loaves of bread, 3 bottles of water, 2 lbs of Banana, and 1 lbs of Meat. It is 18.71 before tax but you need to pay extra 1.31 for tax. as the output when we run it! Just type in two line, please! (You do not have to type in the whole script!)
- using System; using System.Linq; using System.Text; namespace Games; { class Program { staticvoid Main(string[] args) { int choice,games_choice; cout<<"What are your favorite games - outdoor or indoor"<<endl; cout<<"Press 1 for 'outdoor' or Press 2 for 'indoor'"<<endl; cin>>choice; if(choice==1) { cout<<"What is your favorite outdoor game"<<endl; cout<<"Press 1 for Tennis"<<endl; cout<<"Press 2 for Football"<<endl; cout<<"Press 3 for Cricket"<<endl; cin>>games_choice; if(games_choice==1) cout<<"I also like Tennis"<<endl; elseif(games_choice==2) cout<<"I also like Football"<<endl; elseif(games_choice==3) cout<<"I also like Cricket"<<endl; } elseif(choice==2) { cout<<"What is your favorite indoor game"<<endl; cout<<"Press 1 for Ludo"<<endl; cout<<"Press 2 for Chess"<<endl; cout<<"Press 3 for Cards"<<endl;…Can you answer it according to the code below #include #define MAX_EMP 5 struct Employee { int id; int age; float salary; }; int count = 0; struct Employee emp[MAX_EMP]; void display() { printf("\n---=== EMPLOYEE DATA ===---\n"); printf("EMP ID\tEMP AGE\tEMP SALARY\n"); printf("======\t=======\t==========\n"); for(int i = 0; i < count; i++) { printf("%d\t%d\t%.2f\n", emp[i].id, emp[i].age, emp[i].salary); } } void add() { if(count == MAX_EMP) { printf("\nERROR!!! Maximum Number of Employees Reached\n"); return; } printf("\nAdding Employee ===============\n"); printf("Enter Employee ID: "); scanf("%d", &emp[count].id); printf("Enter Employee Age: "); scanf("%d", &emp[count].age); printf("Enter Employee Salary: "); scanf("%f", &emp[count].salary); count++; } void update() { int id, found = 0; float newSalary; printf("\nUpdate Employee Salary…change normal body temperature to 36.5–37.5 °C #include<iostream>using namespace std;int main(){ float temp;cout<<"Enter the body temperature in Celsius\n";cin>>temp;if (temp>=37){cout<<"The quarantine of the patient is required\n";cout<<"Enter the name of the patient\n";string patient;cin>>patient;cout<<"Where the passenger is from\n";string place;cin>>place;cout<<patient<<" from "<<place<<"is to be quarantined at Hospital"; }cout<<"Normal temperature\n";}