1. This program should obtain a number of exercise routines from the user. Then, for each exercise routine, you should obtain: total distance, angle of elevation (in degrees), and time (in minutes). You should output: the average daily distance, the average angle of elevation, and the average speed, along with the total distance. You should prevent the user from entering negative values for distance and time (angle of elevation CAN be negative) – using while-loops for input validation. The rest of your program should be accomplished using for-loops only! Desk Check #1 - #4 Values: Make up your own appropriate test values including negatives!
Q: program to com using n), W he value of S(x, n)= - (X)/1! + (X*)/2! – (X)/3! + (X®)/4! Compute_S(x, n...
A: Here I have created the function pwr(). In this function if the value of y is 0 then return 1, other...
Q: how to perceive the reputation of Pandora Jewellry and why. Back your perception up with strong reas...
A: The Reputation of Pandora Jewellery business can be achieved or increased by following the underwrit...
Q: Q2) write a C++ program to generate the following pattern using the functions SpacesOnesLine(S, Ones...
A: The program is written in C Language. Check the program screenshot for the correct indentation. Plea...
Q: A multimedia production is made up of different components; nevertheless, for a software to be calle...
A: Introduction: In the development of computer applications, digital processing and storage are essent...
Q: nd/reverse shell connection from a Linux syste
A: Is it possible to enable a bind/reverse shell connection from a Linux system to a MS Windows System
Q: ber function of a class is handled by the compiler in a unique way.
A: When the program runs the call certificate of the function, the CPU stores the memory address of the...
Q: List and explain the key technological components of a typical Hadoop system, as well as their purpo...
A: Introduction: HDFS is a distributed file system that operates on standard hardware. For many install...
Q: Is it correct to say that stub isn't a network topology? explain?
A: Introduction: It is common to refer to a "stub network," or "pocket network," as a term for a comput...
Q: In which of the following memories, the data will be lost when the computer’s power is off? a. Exte...
A: Answer: RAM
Q: Question 4 Why must the single-cycle datapath have separate instruction and data memories? The forma...
A: answer is
Q: = ax+b is
A: 1) f(x) = ax+b is O(x2) 2) explain a condition where the code isn't O(x). also prove witness and gra...
Q: Write the code to check if y is between 100 and 150 (including 150 only
A: The given code is in the C programming language Code Screenshot:
Q: Create a flowchart that determines whether the positive number typed by the user is a prime number o...
A: Here in this question we have asked to create a flow chart that check for given number is prime numb...
Q: nt a meet-in-the-middle attack on triple DES with three keys, assuming you had enough known plaintex...
A: 1.The meet in the middle attack is one of the known plain text attack.The intruder has to know some ...
Q: Drawing Things Out Consider an array of integers: 2, 4, 5, 9, 11, 13, 14, 16 Draw out how the array ...
A:
Q: What is Activity Circle Diagram (ACD)? What are the dead and active states? What are the Event Sched...
A: What is Activity Circle Diagram (ACD)? What are the Event Scheduling? Algorithm steps of Event Sche...
Q: P4 Test the system against user and system requirements
A: Lets see the solution in the next steps
Q: Scheduling Please provide the following: Gantt Chart CPU Utilization Average Waiting Time Aver...
A: I have answered all the parts and have uploaded image for the solution.
Q: What is ALE? Calculate ALE
A: ALE (annualized loss expectancy). In calculating risk, there are two general formulas that are used...
Q: QUESTION 7 A server is a host that provides the service. O True False QUESTION 8 A transparent DFS f...
A: answer is
Q: Suppose Alice has a public key with modulus 815153 and encryption exponent 91. Eve intercepts a ciph...
A: In the above-mentioned question, the RSA cryptographic technique is mentioned, which has two huge pr...
Q: Recall the stack-based algorithm (where an opening brace or a parenthesis is pushed into the stack, ...
A: A stack is a linear data structure in which operations are carried out in a specific order. The sequ...
Q: developing a UWP app Using visual studio 2019 and program in c #, this development uses a UWP app ...
A: I have answer this question in step 2.
Q: Hooking API and Credential API hooking and what are the functions intended to process keystroke.
A: Given: we have to discuss Hooking API and Credential API hooking and what are the functions inte...
Q: Which of the following encoding systems can handle both traditional and simplified Chinese writing s...
A: The encoding system that can handle both traditional and simplified Chinese writing systems is Unico...
Q: Using SQL Query: 1. Find the d_ids of Dealers who sell some Black Car and some Yellow Car 2. Find ...
A: SQL: SQL (Structured Query Language) is a programming language that is used to conduct operations on...
Q: Visit the websites of three major technology corporations (Microsoft, Oracle, and Cisco), as well as...
A: Introduction: Technological firms have significantly impacted economic growth, consumer preferences,...
Q: 3. What are examples of organizations that have equipped to comply with regulatory requirements in ...
A:
Q: Suppose that you are hired by a police department to write a program that matches arrest records wit...
A: the answer is an given below :
Q: Please someone hlep me, based on the java code given how can i make the change to program run like t...
A: Program Done in Java
Q: ose to compute a mode for a variable, which variability would you m
A: If you chose to compute a mode for a variable, which variability would you most likely report?
Q: Create a report outlining the benefits and drawbacks of several types of multimedia file formats: ...
A: Introduction There are various types of file formats that are used in the production and delivery of...
Q: plot the curve between theta and x axis by using matlab microsoft
A: polarplot(theta,rho) polarplot(theta,rho,LineSpec) polarplot(theta1,rho1,...,thetaN,rhoN) polarplot(...
Q: fe O(g) g e N) fe o(g) e Duality ge m(f)
A:
Q: Computer science Q #11) Why do you wish to retain this information in a separate file rather than i...
A: Introduction: Why do you wish to retain this information in a separate file rather than in the code ...
Q: 1. Discuss the Cozy Bear incident of hacktivism. 2. please provide the references website 3.in-tex...
A: INTRODUCTION: Cozy Bear is a Russian hacker organization thought to be linked to one or more Russia...
Q: +b is O(x²)
A: 1) f(x) = ax+b is O(x2) 2) explain a condition where the code isn't O(x). also prove witness and gra...
Q: 9. Do Programming Exercise 3 from Chapter 5 using a function grade(score) that returns the letter gr...
A: Functions in python: Functions provide a way to break problems or processes down into smaller and in...
Q: Explain how many programing language are there?
A: The programming language is a set of rules that have a specific syntax and are used for creating sof...
Q: 2) Consider an ordered linked list with n entries in ascending order. Each entry has 2 components: a...
A: Ordered linked list is a singly sorted linked list.
Q: Why CyberSecurity is Important? Explain
A: Cybersecurity is very important because it protect your all sensitive data from threats and damage. ...
Q: If you have a small firm in a small facility and want to perform network networking amongst 40 machi...
A: Introduction: The question is about If you have a small firm in a small facility and want to perform...
Q: Which type of image is best for the design of images for a webpage? Why?
A: answer is
Q: One of the disadvantages of the Bus topology that you should mention is the difficulty in reconnecti...
A: Introduction One of the disadvantages of the Bus topology that you should mention is the difficulty ...
Q: Write a function myfunction that requests user input i the form of an integer value, 1, 2 or 3. The ...
A: Please refer below code and output screenshot, all the conditions are taken into account. Language u...
Q: A consistency index measures the degree of inconsistency in pairwise comparisons. Discuss how you ca...
A: Actually every consistency index for pairwise comparison judgment among criteria from the goal. Co...
Q: as possibl
A: Memory address registers(MAR) : It is connected to the address lines of the system bus. It specifies...
Q: Explain why it is logical to presume that advances in information technology are driven by people an...
A: Introduction: People and information systems are the driving drivers behind information technology a...
Q: Describe a cloud storage programme and discuss the benefits and drawbacks of using one over a standa...
A: Introduction Cloud storage: Cloud Storage is a service where data is remotely maintained, managed, ...
Q: he term cache pollution refers to the situation where more than one process is running concurrently ...
A: Introduction: Here we are required two choose the correct option of the question given above.
C++ code
Step by step
Solved in 4 steps with 4 images
- C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.Numerical analysis) Given a number, n, and an approximation for its square root, a closer approximation of the actual square root can be found by using this formula: newapproximation=(n/previousapproximation)+previousapproximation2 Using this information, write a C++ program that prompts the user for a number and an initial guess at its square root. Using this input data, your program should calculate an approximation of the square root that’s accurate to 0.00001. (Hint: Stop the loop when the difference between the two approximations is less than 0.00001.)4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }
- (Data processing) Years that are evenly divisible by 400 or are evenly divisible by 4 but not by 100 are leap years. For example, because 1600 is evenly divisible by 400, 1600 was a leap year. Similarly, because 1988 is evenly divisible by 4 but not by 100, it was also a leap year. Using this information, write a C++ program that accepts the year as user input, determines whether the year is a leap year, and displays a message telling the user whether the entered year is or is not a leap year.All programming languages have a loop capability. Looping is the program logic’s ability to repeat one or more lines of code either: A set number of times, a “for loop” (i.e. 10, 100, 500, 763 or more times) An “unknown” number of times (i.e. loop terminates if a tested condition becomes “true” or as long as the tested condition remains “false”), a “while” loop, a “do until” loop, a “do while” loop. This Lab exercise demonstrates the use of the “For Loop”, a standard loop in all programming languages. C++ standard For Loop format looks like: For (n = 1; n <= 100; n++) { Loop line 1 code; Loop line 2 code; Loop line 3 code; Loop line N code; } The loop code needs: A “loop counter variable” (n in the above example) to keep track of how many iterations this loop has run A starting value (i.e. 1 in the above example) A stop test (i.e. run as…A variable like user_num can store a value like an integer. Extend the given program as indicated. Output the user's input. (2 pts) Output the input squared and cubed. Hint: Compute squared as user_num * user_num. (2 pts) Get a second user input into user_num2, and output the sum and product. (1 pt) Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples below, the user's input value is shown on the next line, but such values don't actually appear as output when the program runs. Enter integer: 4 You entered: 4 4 squared is 16 And 4 cubed is 64 !! Enter another integer: 5 4 + 5 is 9 4 * 5 is 20
- Write a program that mimics a calculator. The program should take as input two integers and the operation to be performed (addition, subtraction, multiplication, and division). It should then output the numbers, the operator, and the result. (For division, if the denominator is zero, output and appropriate message). The program will only stop when user select Exit, your program should also include function and looping structure.using python Write a wholly creative quiz program that consists of three original questions that you make up according to these specifications: One question should require user input of type int One question should require user input of type float One should require a string input The quiz should be scored by using a counter variable that has an initial value of zero and is incremented by one for every correct answer. Provide feedbackto the user for each question, and report the total score when the quiz has finished. Example runs not shown. It's a creative exercise.python solution please Task 1Description let's consider a case when you need a lot of coffee. Maybe you're hosting a party with a lot of guests! In these circumstances, it's better to make preparations in advance.So, we will ask a user to enter the desired amount of coffee, in cups. Given this, you can adjust the program by calculating how much water, coffee, and milk are necessary to make the specified amount of coffee.Of course, all this coffee is not needed right now, so at this stage, the coffee machine doesn't actually make any coffee yet. ObjectivesLet's break the task into several steps:First, read the numbers of coffee drinks from the input.Figure out how much of each ingredient the machine will need. Note that one cup of coffee made on this coffee machine contains 200 ml of water, 50 ml of milk, and 15 g of coffee beans.Output the required ingredient amounts back to the user. ExamplesThe greater-than symbol followed by space (> ) represents the user input. Notice that…
- 1. Federal law requires that hourly employees be paid “time-and-a-half” for work in excess of 40 hours in a week.For example, if a person’s hourly wage is $12 and he or she works 60 hours in a week, the person’s gross pay shouldbe (40 *12) + (1.5 *12 * (60-40)) = $840.Write a program that requests the floating number of hours a person works in a given week and the person’s hourlywage as input, and then displays the person’s gross pay. Save it as overtimePay.pyI have a Python programming question: Write a program that prints all the even numbers divisible by 3 but not divisible by 7 between 1 and 200. Use while loop with continue statement. When the even number is divisible by 3 but not 7 continue statement should allow you to go into the next iteration of the loop without printing the number.The purpose of each function should be documented? The purpose of each while-loop should be documented? The program runs def main(): totalBottles = 0 counter = 1 todayBottles = 0 totalPayout = 0 keepGoing = "y" while keepGoing.lower() == "y": totalBottles = getBottles() totalPayout = calcPayout(totalBottles) printInfo(totalBottles, totalPayout) print("Do you want to enter another week’s worth of data?") print("(Enter y or n)") keepGoing = input() def getBottles(): NBR_OF_DAYS = 7 totalBottles = 0 todayBottles = 0 counter = 1 while counter <= NBR_OF_DAYS: print(f"Enter number of bottles returned for day #{counter}:") todayBottles = int(input()) totalBottles += todayBottles counter += 1 return totalBottles def calcPayout(totalBottles): PAYOUT_PER_BOTTLE = .10 totalPayout = totalBottles * PAYOUT_PER_BOTTLE return totalPayout def printInfo(totalBottles, totalPayout):…