Given the C++ statements as below #include using namespace std; int main() { const int NO EMP = 5; double salary [NO_EMP]; double highest = 0; double sum= 0; // COMPLETE YOUR CODE HERE return 0; Complete the C++ program by prompting a user for 5 employee's salary and store into an array salary. Then display the total of salary as well as the highest salary among the employee. Correct your display to 2 decimal places.
Q: Examine how Structured English may be used to explain non-systems analysis-related activities.
A: Introduction: Structured English: Important part/component of system analysis Derived from…
Q: Show the Activation Stack for n = 4.
A:
Q: How crucial is employee happiness to the overall success or failure of a business?
A: Whether you are the Chief of a Fortune 500 organization or the business visionary behind a startup,…
Q: Set X contains all the ASCII characters in the phrase: Pumpkin Latte Time! What is the cardinality…
A: We need to calculate the cardinality of the power set from of the elements from the phrase.
Q: What about an open source word processor or presentation program? Shareware email clients and web…
A: Software that allows you to store, edit, extract, and search data in a database is known as a…
Q: (6) Convert 10810 to Binary.
A: 1) We have a decimal numbers 108 and we need to convert it into Binary. 2) Below are the steps for…
Q: Methodologies and standards for user interface design are being impacted by the growing use of…
A: Introduction: User interfaceUser interface (UI) is the device-to-computer interface.This includes…
Q: public static int quandary2(int N) { if (N == 1) { return 1; } } return quandary2(N/2) + quandary2…
A: The solution is given below step by step
Q: A evaluation of the current condition of things may have important implications for the management…
A: NOTE :- Below i explain the answer in my own words by which you understand it well. Significant…
Q: From the circuit below, Calculate A. Frequency of Oscillation B. Period of Oscillation
A: Frequency of Oscillation: The formula for frequency is: f (frequency) = 1 / T (period). f = c / λ =…
Q: In a blended learning environment, what role does Microsoft Office play?
A: Microsoft presented a bunch of instructive items and administrations, propelled by educators and…
Q: How can one get application software most effectively? Your comment should be supported with…
A: Software for Applications: It is a kind of computer software that is often used by end users and is…
Q: Array X is [a, b, c, . . . , y] has 25 integers. To find median of medians we form five sub-arrays:…
A: Below I have provided an python program for the given question. Also, I have attached a screenshot…
Q: Does the presence of several information systems constitute a difficulty in the workplace? What…
A: Yes, there are a lot of problems with the company's information system: The management system…
Q: Add each element in sourceArray with the corresponding value in offsetAmount. Store each value in a…
A: JavaScript is a programming language. Index of an arrays starts at 0. Steps to do- 1. First declare…
Q: According to computer science, Decision Support Systems may take into account a variety of aspects…
A: answer is
Q: PYTHON ONLY PLZZZZ Create a car object with the following attributes and actions: Name Make…
A: As per the given information, we need to create a Car class with given attributes and actions and…
Q: Developing expertise in computer-related work provides several advantages. What are the benefits of…
A: Answer to the given question: Benefits of technology use in education: Technology gives understudies…
Q: A evaluation of the current condition of things may have important implications for the management…
A: The information vision and IT design based on existing business practices are significantly at odds…
Q: Include iterated and non-iterated queries, authoritative and root servers, and DNS entries in your…
A: Domain Name System: The DNS, or domain name system, is the Internet's phone book. Humans often get…
Q: What are two downsides of having previously installed applications on your computer? Please offer a…
A: Introduction: Software must be loaded into computer memory before it can run. Buy a CD or download…
Q: In what ways would you urge your employees to comply to certain personality traits? What benefits…
A: Understanding one's personality can help an employee change behavior at work, play to strengths,…
Q: This page discusses every facet of the Domain Name System (DNS), including iterated and unified…
A: DNS provides an overview of the Domain Name System. A domain name system, or DNS, is a telephone…
Q: ences between primary storage and secondary storage. What is each type us
A: Introduction: While secondary memory lacks such classifications, primary memory is divided into…
Q: A evaluation of the current condition of things may have important implications for the management…
A: The following list illustrates: The ramifications for business managers and IS executives of an…
Q: In the operations portion of your company plan, you should describe any problems with management and…
A: The Benefits of Effective Operations Management: Product Quality Operations management is the first…
Q: Does the presence of several information systems constitute a difficulty in the workplace? What…
A: Fundamentally, an information system is composed of the following five elements: hardware,…
Q: 1. Design a class that holds the following personal data: name, address, age, and phone number.…
A: A class is a group of objects that have common properties. An object is an instance of a class. It…
Q: What is the best approach to get computer software? In your response, clearly describe your opinions…
A: operating system :- Your computer acts as the foundation for all of your activities, as well as the…
Q: Describe the Open Systems Interconnection (OSI) reference model.
A: In this question we need to explain the Open Systems Interconnection (OSI) reference model.
Q: Consider at least two alternative courses of action. Do you see any similarities or distinctions…
A: Start: An incident response plan is collection of instructions to assist IT staff in detecting,…
Q: Question 1: Comparison of the existing communication technologies for IoT by emphasizing on the use…
A: Question 1: Comparison of the existing communication technologies for IoT: Weightless: This is an…
Q: A summary of current developments in the field of nonvolatile solid-state mem
A: Hi please find the solution below and I hop it would be helpful for you.
Q: How can you create a conceptual model based on ER diagrams?
A: Introduction The term "ER model," as it is abbreviated, refers to an entity-relationship model. It…
Q: To comprehend why coding staff productivity compliance is so crucial to a facility's workflow and…
A: Introduction: Let’s discuss the meaning of coding staff proficiency huge for both the work cycle and…
Q: Write a program in java that will receive the type and loan amount of a property and figure out the…
A: Below I have provided a java program for the given question. Also, I have attached a screenshot of…
Q: Observe how people react while experiencing issues with PCs or mobile apps. If a customer is…
A: Answer: Generally speaking, when this happens, people respond to problems with computers and mobile…
Q: Find (49.3)-(00110110.0010), BCD = (?)BCD, with BCD weight (8421)
A: Please check the solution below
Q: Write Java function that will accept two int number and will return product of both numbers
A: CODE IN JAVA public class Main{ public static int Add(int a, int b) { //Adding and…
Q: Suppose P(x,y) is a predicate and the universe for the variables x and y is {1,2,3}. Suppose…
A: The predicate and the universe for the variables x and y is {1,2,3}. The predicates are the…
Q: See how Structured English may be used to describe processes in fields other than systems analysis!
A: The answer is given in the below step
Q: If a process is not covered by a systems analysis, try utilizing Structured English to describe it.
A: Structured English is use of the English language in conjunction with structured programming syntax…
Q: Examine certification and training with reference to workplace instances.
A: The terms "training and certificate" refers to a document presented to an individual by a training…
Q: Includes information about iterated and non-iterated requests, authoritative and root servers, and…
A: Given: DNS transforms domain names into IP addresses to enable web browsers to access Internet…
Q: What precisely is the Domain Name System (DNS) and how does it function? Please offer both an…
A: DNS stands for Domain Name System, it is used to convert the Domain names into IP addresses. That…
Q: How is the increased use of smartphones and tablets with smaller displays impacting the design of…
A: Smartphones and Tablets display a lot less material than desktop or even laptop screens. Users are…
Q: What precise differences exist between the two types of the internet?
A: The Answer is in given below steps
Q: Show that the compound statement is a tautology. ((p ∨ q) ∧ ¬p) → q
A: We are asked to show that the compound statment is a tautology. Being a tautology means no matter…
Q: Because of the growth of smaller-screen devices such as smartphones, phablets, and tablets, what…
A: The growth of smaller-screen devices such as smartphones, phablets, and tablets may be anticipated…
Q: What distinguishes IPO from conceptual modeling?
A: Hi please find the solution below and I hope you would find it useful.
Step by step
Solved in 4 steps with 2 images
- 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; }; // 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 print the employee data to console void display(struct employees *e) { printf("%s", e->name); printf(" %d%d%d-%d%d-%d%d%d%d",…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.C++ programming Chapter(s) Covered: Chapter 1-8 Concepts tested by the program: Working with one dimensional parallel arrays Use of functions Use of loops and conditional statements Project Description The Lo Shu Magic Square is a grid with 3 rows and 3 columnsshown below. The Lo Shu Magic Square has the following properties: The grid contains the numbers 1 – 9 exactly. Each number 1 – 9must not be used more than once. So, if you were to add up thenumbers used, The sum of each row, each column and each diagonal all add upto the same number, Write a program that simulates a magic square using 3 onedimensional parallel arrays of integer type. Each one the arrays corresponds to a row of the magicsquare. The program asks the user to enter the values of the magicsquare row by row and informs the user if the grid is a magicsquare or not. See the sample outputs for more clarification. Project Specifications Input for this project: Values of the grid (row by row) Output for this…
- #include using namespace std; int main() { const int NO_EMP = 5; double salary [NO_EMP]; double highest -0; double sum = 0; // COMPLETE YOUR CODE HERE return 0; Complete the C++ program by prompting a user for 5 employee's salary and store into an array salary. Then display the total of salary as well as the highest salary among the employee. Correct your display to 2 decimal places. Crarks] Sample Output Enter salary employee #1 : 2300.50 Enter salary employee #2 : 3700.00 Enter salary employee #3 : 4820.70 Enter salary employee #4 : 1800.00 Enter salary employee #5 : 2330.60 The sum is : RM 14951.80 The highest salary is RM 4820.70write code c++ creat struct names student Suppose the students' names 1. Lara 2. Rashed 3. sara Suppose any degrees u want #declare in the struct matrix[3][3] #definition three function one function Receive the quiz mark in the first column the second function receive the mid mark in the second column the third function receive the final mark in third column # print the marks by using main function#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 %…Student Registration System is an approach that enables colleges and universities to better supervise a growing number of enrollments. Create a menu system for registration program in c++ that asking an input based on the choices below. If the input is A then the program will ask for name and program (course) store in two arrays, if B then the program will display all the data stored on the array and the program will be terminated only if the input is E. Apply also function on the program: Menu System – 1st Way of Function Add Student – 4th Way of Function Example: REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: A Name: John Lloyd Program: CpE REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: B Name Program…#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 %…
- Student Registration System is an approach that enables colleges and universities to better supervise a growing number of enrollments. Create a menu system for registration program in c++ that asking an input based on the choices below. If the input is A then the program will ask for name and program (course) store in two arrays, if B then the program will display all the data stored on the array and the program will be terminated only if the input is E. Apply also function on the program: Menu System – 1st Way of Function Add Student – 4th Way of Function Example: REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: A Name: Sebastian Program: CE REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: B Name Program Carlo - CE Sevi - CEC++ printSmaller is a function that accepts two int parameters and returns no value. It will print the value of the smaller one parameters. The function protoype is as follows: void printSmaller(int num1, int num2); write the statments to read two integers and call this function to display the smaller one.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 print the employee data to console void display(struct employees…