Write a C++ program to read in 10 prices (function getprices). Then write function caldiscount to do a 10% discount of all the prices in the array. Next write calaverage to calculate the average. And finally write printarray to print all the prices in the array it's urgent give me proper code
Q: We have learned a great deal about the industry via web design and development.
A: INTRODUCTION Web-based learning is many times called internet learning or e-learning since it…
Q: Describe how a developer may acquire knowledge about web design.
A: Given: For web developers, learning web design is crucial since it offers them a wealth of benefits.…
Q: Does security policy vary from information security standards in that it is seen as static or…
A: Introduction: Setting up an effective security strategy and procedures to ensure compliance is a…
Q: mov ax, 387 shl al, 2 the values in AL, AH, and AX registers what? (in decimal) after executing…
A: Dear Student, mov instruction stores the value 387 in register ax. shl shifts operand1 left , where…
Q: Define the process of Reading the contents of a DRAM supercell ?
A: DRAM stands for Dynamic Random Access Memory. These memory devices hold the content till the time…
Q: code should be established in a functional way
A: File1 #include <iostream>using namespace std;class Point3D{ private: double x, y, z;…
Q: Describe the various defenses users have against session hijacking attempts. Talk about potential…
A: Session Hijacking:- Session hijacking is as the term suggests. A user in a session can be…
Q: The significance of continuous event simulation, in addition to four justifications for why it…
A: There are four main reasons for the significance of continuous event simulation: An environment free…
Q: XTR2. FUL Write a program that reflect the cricket game by taking input of two teams having three…
A: Code is given below #include <stdio.h> #include<time.h> void batting_inning(int…
Q: Design a backup strategy for a computer system. One option is to use plug-in external disks, which…
A:
Q: Discuss the influence of cookies on internet security in detail, mentioning at least four (4)…
A: The answer is as below:
Q: When you mention network security, what do you mean? Describe the operation of the data encryption…
A: The Purposes of Authentication : The most critical functions of authentication is to guarantee that…
Q: Clearly state the basic principles of security management as well as the numerous security…
A: Security management concepts and principle are inherent elememt in a security policy and solution.…
Q: The study of computers What precisely is meant by the term "handling of files" and wthty is t…
A: Given: In the process of programming, it is possible that we will have to generate certain input…
Q: Clearly state the basic principles of security management as well as the numerous security…
A: The basic principles of security management as well as the numerous security management concepts are…
Q: HKEY_CLASSES_ROOT is used to
A: HKEY_CLASSES_ROOT is used to ______________. configure the environment for the user…
Q: qº b a q₁ 9³ b a b a a,b 94 q² b a
A: first lets understand the form of strings accepted by given DFA q0 is initial state q2 is final…
Q: DoS attacks often include the flooding of servers, systems, or networks with traffic, which prevents…
A: In DoS multiple system attack a target and that will result in denial of service for user. It can…
Q: After finding out you are secretly part of the royal family of Genovia, you inherit a 16th-century…
A: I have mentioned hand writened answer in below steps ,please follow steps
Q: Separate the definition of a file extension from its intended use in your work.
A: A file extension: A file extension, sometimes known simply as a "extension," is a suffix that is…
Q: The ______ folder is used to provide a user interface that lists documents the user has created or…
A: All installed apps' cached data and specific launch parameters are kept on the computer in the Temp…
Q: When a file’s header is not located and the extension is not know the file is reported as a(n) ____.…
A: When a file's header is not located and the extension is not know the file is reported as an unknown…
Q: Students A B C D E F G Grade (x) 84 87 90 91 88 75 91 85 85 90 82 78 GWA (y) 1.75 2.00 3.00 2.75…
A: Here is the solution:
Q: Which rules should effect exposed and traceable project components if a software industry uses…
A: Given: The software industry use a method known as the Software Development Life Cycle (SDLC) to…
Q: QUESTION 4 a) Based on the codes given in Program-4, illustrate the memory address of the pointers…
A: The above question is solved in step 2 :-
Q: Give examples of five particular methods you may use to make your writing better.
A: Five ways to make written materials better: Writing proficiency is crucial for any paperwork. A…
Q: What is streaming data? please explain
A: Streaming describes continuous, never-ending data streams with no beginning or end, that provide a…
Q: QUESTION 4: Write/Read the file QUESTION 5-Use do..while loop to redisplay the menu THIS CODE IS…
A: As Language is not defined doing it in java Programming Language using Do-While loop.
Q: Disruptive technology is one that dramatically disrupts the way consumers, industries, or businesses…
A: a) Explain disruptive technologyin detail with a relevant example. What is disruptive technology?A…
Q: It is said that IPsec may not work with Network Address Translation (NAT) (RFC 1631). However,…
A: RFC 2402 and RFC 2406 might be helpful in solving this issue. (a) Network Address Translation (NAT)…
Q: Write a C++ program to read in 10 prices (function getprices). Then write function caldiscount to do…
A: Here is c++ program. The output is working correct. See below steps
Q: Describe the sort of connection. Also, describe the many sorts of transmission modes.
A: The complete answer is dicscussed below
Q: Tell us about file extensions and why you think they're important. You can name three file…
A: Identify three file extensions that you see in any set of files on your computer and which software…
Q: What logic operator is used to connect premises in logic argument
A:
Q: Explain what is meant by the term "caching" when referring to shared memory.
A: term "caching" when referring to shared memory is given below
Q: Take into consideration the wide area network, which is your preferred form of wireless…
A: A communication network that connects numerous unique geographic locations utilizing a single…
Q: Considering the c++ program below, and [4, 5, 8, 3] as user inputs, answer the following questions:…
A: We need to answer the questions based on given C++ code.
Q: URGENT NEED THUMBS DOWN COP ? 2: Take the username and password from a user and check the validity…
A: pseudocode: 1. Take username and password as input from user 2. Check if password contains username,…
Q: Give specific examples of each method for preventing OS intrusions.
A: Intrusion: An incursion is any activity that breaches network data security to obtain unauthorized…
Q: It is one of the reasons why Cleanroom Software Engineering is so effective since its core concept…
A: Description: The idea behind a cleanroom software engineer is that their work is significantly…
Q: what are some of the functions or systems within the Linux OS
A: Linux Operating System: Linux is an operating system, just like Mac OS, iOS, Windows, and. In…
Q: 17824 bits of data is to be transferred from a station A to station B. Assume a call setup time of C…
A: The answer is
Q: What are the benefits of using a layered architectural approach?
A: Layered architecture is the processing of data that occurs at several levels. Basically, multitiered…
Q: Given the following code segment (assume is incomplete code and it is not indicative of the number…
A: question 1 part 1 ret = fork();if (ret == 0) {val++;} part 2 printf("a = %d", a);if (ret == 0)…
Q: What is the total number of nodes in the state space tree for N-queen problem?
A: Here is the explanation regarding N-queen problem.
Q: Amazon is the eCommerce titan the industry has been waiting for. Net sales have been rising since…
A: There are several Ecommerce models to get money now we are going to disscuss about 2 such models…
Q: explicit, in what ways are t
A: Introduction: In complementary metal-oxide semiconductor (CMOS) memory, the BIOS password is kept.…
Q: Which of the five memory management approaches has which benefits and drawb
A: Explanation: Fixed partitioning:Memory management is separated into several static partitions at any…
Q: Explain Steps in SDLC
A: The above question is solved in step 2 :-
Q: How do routers forward packets to the internet.
A:
Write a C++
it's urgent give me proper code
Step by step
Solved in 3 steps with 1 images
- Write a C++ program that declares an array alpha of 50 components of type double. Initialize the array so that the first 25 components are equal to the square of the index variable, and the last 25 components are equal to three times the index variable. Output the array so that 10 elements per line are printed. Use the array only and do not define any elements of the array in the program. All elements must be typed by the user. In the main program, only simple function calls will be allowed.Write a program that loads in historical data on popular baby-names for the last 100 years. You can type in a name, and it graphs the rank of that name over time. A high ranking, like 5, means the name was the 5th most popular that year (top of the graph), while a low ranking like 879 means the name was not that popular (bottom of the graph). Write it in python the latest version The first function you will write and test is the clean_data function. The function is described in the starter code in a function header comment above the function. Here is the function: def clean_data(list, x): #TODO: write your code here pass Take a look at the first few lines of the data file: A 83 140 228 286 426 612 486 577 836 0 0 Aaliyah 0 0 0 0 0 0 0 0 0 380 215 Aaron 193 208 218 274 279 232 132 36 32 31 41 Each line is a baby name followed by how popular the name was in 11 different years. Each number is a ranking, so Aaron was 193th most popular name in 1900 and 41st most…Write a program that loads in historical data on popular baby-names for the last 100 years. You can type in a name, and it graphs the rank of that name over time. A high ranking, like 5, means the name was the 5th most popular that year (top of the graph), while a low ranking like 879 means the name was not that popular (bottom of the graph). Write it in python the latest version The first function you will write and test is the clean_data function. The function is described in the starter code in a function header comment above the function. Here is the function: def clean_data(list, x): #TODO: write your code here pass Take a look at the first few lines of the data file: A 83 140 228 286 426 612 486 577 836 0 0 Aaliyah 0 0 0 0 0 0 0 0 0 380 215 Aaron 193 208 218 274 279 232 132 36 32 31 41 Each line is a baby name followed by how popular the name was in 11 different years. Each number is a ranking, so Aaron was 193th most popular name in 1900 and 41st most…
- Write a program that loads in historical data on popular baby-names for the last 100 years. You can type in a name, and it graphs the rank of that name over time. A high ranking, like 5, means the name was the 5th most popular that year (top of the graph), while a low ranking like 879 means the name was not that popular (bottom of the graph). Write it in python the latest version The first function you will write and test is the clean_data function. The function is described in the starter code in a function header comment above the function. Here is the function: def clean_data(list, x): #TODO: write your code here pass Take a look at the first few lines of the data file: A 83 140 228 286 426 612 486 577 836 0 0 Aaliyah 0 0 0 0 0 0 0 0 0 380 215 Aaron 193 208 218 274 279 232 132 36 32 31 41 Each line is a baby name followed by how popular the name was in 11 different years. Each number is a ranking, so Aaron was 193th most popular name in 1900 and 41st most popular name in…You’re working on some more stock-prediction software. The function in C++ you’re writing accepts an array of predicted prices for a particular stock over the course of time. For example, this array of seven prices: [10, 7, 5, 8, 11, 2, 6] predicts that a given stock will have these prices over the next seven days. (On Day 1, the stock will close at $10; on Day 2, the stock will close at $7; and so on.) Your function should calculate the greatest profit that could be made from a single “buy” transaction followed by a single “sell” transaction. In the previous example, the most money could be made if we bought the stock when it was worth $5 and sold it when it was worth $11. This yields a profit of $6 per share. Note that we could make even more money if we buy and sell multiple times, but for now, this function focuses on the most profit that could be made from just one purchase followed by one sale. Now, we could use nested loops to find the profit of every possible buy and sell…Write a C++ program that simulates online shopping. Declare a variable cart to be an empty Array. The program should have a loop that continues as long as the user wants to shop. Each time through the loop read in the name, price, and quantity of the item the user wants to add to the cart. After adding an item to the cart, the cart contents should be printed. After the loop print a "Please pay ...” message with the total price of the items in the cart.
- Write a c++ function reportDuplicates() that takes a two dimensional integer array as a parameter and identifies the duplicate valuesin the array. The function then reports these to user. Sample input and corresponding output:How many rows? 5How many columns? 2Let’s populate the array:1 86 97 312 522 4Thank you, there are no duplicate elements!How many rows? 3How many columns? 4Let’s populate the array:3 7 5 76 9 7 38 5 12 6Thank you, 3 appears 2 times, 7 appears 3 times, 5 appears 2 times,and 6 appears 2 times.NEED HELP WITH THIS import random print(random.randint(1,6)) #prints a number between 1 and 6. #or: x = random.randint(1,6) print(x) #prints a number between 1 and 6. write a python program that simulates a game with two dice roll based on their sum and value. Your program should: Define a function try_your_luck(dice1, dice2) that takes two arguments i.e., the numbers generated by randint() function (use randint twice). The random numbers should be passed to the function as argument The player wins some money, when: a. Sum of both dice is divisible by three, player wins $5 b. Same number on both die, player wins $10 c. For all other cases, print "try again" Player loses the game, when: a. Sum is greater than 10 and odd b. Sum is 7. Display an appropriate message for each case (player wins or loses).Write C++ Program to determine the max numbers between 2 arrays. For example: 6. 1 34 7 2 0 11 20 Result 7 3 1 11 34 To resolve this problem, you should write 3 void functions: inputNumbers, testArrays and displayMaxArray. • inputNumbers: the aim of this function to read 10 numbers from the user and insert them in 2 different arrays (length of the array is 5). • testArrays: determine the max numbers between 2 arrays. • displayMaxArray: print the array containing the max numbers. Write C++ Program to check whether the Given String is a Palindrome. To resolve this problem, you should write 3 void functions: inputStrings, testPalindrome and displayNumbers. • inputStrings : the aim of this function to read 7 strings from the user and insert them in array of 7 elements. • testPalindrome: to check whether the given strings in the array are palindrome. displayPalindrome: print the palindrome strings.
- Write a C++ program that will read monthly sales into a dynamically allocated array. The program will input the size of the array from the user (must be less than or equal to 12). It will call a function that will find the sum of all sales. It will also call a function to find the average. It will also call a function to sort the array using either a bubble or selection sort in descending order and then display the results. You must have a comment block header at the top of your program. See the Standards document in Course Content You must use pointers for your arrays and dynamically allocate them based on the number of month You must remove and reset the array when completed You must use the correct data types for your variables You must validate your input. The number of months must be between 1 and 12 You must use a loop to read in the sales You must use at least 3 functions to calculate the average, sort the array and display the sales Your output should be…Write a C++ program that takes an char array of size twenty. Take input a sorted array from the user. Display the char array on console such that each row has only five elements separated by spaces. Then, you are required to then take a char x from the user and use binary search to search for element x in the array. Display the index of the element on the console. Also display two elements before and after the element x. Note: Don't use functions and strings.Write a function that is given a list of int id’s as a parameter, the id of the person looked for, and the length of the array. Use the data: Bob 123456 89 Suki 234567 77 Felix 345678 55 Julie 456789 67 The function searches the id array and returns the index of the id or –1 if the id does not exist. The main program outputs the name of the person at that index or a message that the person was not found. The name array (up to length number of students) and id array are declared in function main. Show all the declarations and the actual call. A sample run may look like the following: int SearchPerson(const int id[], int length,int who); Enter the id of the person 345678 That person is: Felix with a mark of 55 Enter the id of the person 444444 That person does not exist. in C++ please use basic coding I'm not…