Heating and cooling degree days are measures used by utility companies to estimate energy requirements. If the average temperature for a day is below 60, then the number of degrees below 60 is added to the heating degree days. If the temperature is above 80, the amount over 80 is added to the cooling degree days. Write a program that accepts a sequence of average daily temperatures and computes the running total of cooling and heating degree days. The program should print these two totals after all the data has been processed. 11:35 AM 3/30/2022
Q: Can you give an example of cost-benefit analysis for a management system software?
A: Cost-benefit analysis software is a computer program or suite that assists personnel in the complex ...
Q: The following are the challenges that an assembler must overcome in order to generate entire binary ...
A: An assembler is a program that converts the assembly language into machine code. It takes the basic ...
Q: Find CRC code for message bits to be transmitted which is 11001110 with generator value 1011 known ...
A: Introduction Find CRC code for message bits to be transmitted which is 11001110 with generator value...
Q: 1. What is Failover-Clustering and why do you think it is so widely used?
A: Failover Clustering A failover cluster is a collection of computer servers that cooperate to offer ...
Q: ?++What is the correct syntax of accessing a static member of a class in C class A public: static in...
A: A::value
Q: 6. ASCII code of the character D is 01000100. What is its decimal code? 7. ASCII code of the charact...
A:
Q: a control say about
A: Location attribute is used to get or set the coordinates of upper left corner control with respect t...
Q: Most people agree that developing appropriate security policies and putting them into effect on a co...
A: Introduction: Policies Concerning Security: It enables the business to safeguard its information ass...
Q: 1. In the code editor, you are provided with a main() function that asks the user for 3 integers. 2....
A: Pointer variables are also known as address data types because they are used to store the address of...
Q: What was the motivation behind the RISC architecture in the first place?
A: Introduction: In 1980, IBM created the Reduced Instruction Set Computer (RISC). However, it was only...
Q: D. The fringe used by DFS is o Stack o Queue o Priority Queue E. The rational agent is : o An agent ...
A: Step 1) The fringe used by DFS is : The fringe used by DFS is stack we can implement dfs algorithm...
Q: Implement the function integrate_3(func, xa, xb, ya, yb, za, zb). xa and xb are the endpoints in the...
A:
Q: Question 3: If the image contains 800 x 600 pixels, with RGB coloring system, how many megabytes are...
A: Introduction
Q: Take the two numbers from the user and try to multiply both of them using lambda function in python.
A: Write a Python program to input two numbers from the user and multiply both the numbers using the la...
Q: What if You Have More than Two Alternatives? For example, given a numerical test score between O and...
A: ALGORITHM:- 1. Take input from the user for the score. 2. Calculate the grade based upon the score. ...
Q: Why does it seem that ICMPV6 Neighbor Solicitations are transmitted as a multicast rather than a bro...
A: Introduction: When a host wishes to know another host's layer two address, it sends a neighbor solic...
Q: What is the catastrophe recovery process's principal objective?
A: Introduction: Catastrophe recovery/ Disaster recovery: Disasters such as fire, flooding, terrorist a...
Q: Take the two numbers from the user and try to multiply both of them using lambda function in python.
A: Name the expression as multiply It accepts two parameters and then returns multiplication of paramet...
Q: Spring 2021-2022 D. The fringe used by DFS is o Stack o Queue Priority Queue
A: Given question are multiple choice question so we provide detailed explanation below.
Q: Define the concept of a unified memory architecture.
A: The Answer is
Q: Given Prefix Expression: (а) * — + АВCD (b) + — а * ВCD Convert to INFIX!
A: Given Prefix Expression: (a) * -+ A B C D (b) +-a * BCD Given prifix expressions.
Q: Write a program that generates 100 random integers between 100 and 1000 inclusive and displays the n...
A: I have provided PYTHON CODE along with CODE SCREENSHOT and also provided OUTPUT SCREENSHOT...
Q: A user is executing a tracert to a remote device. At what point would a router, s in the path to the...
A: Answer: d. When the value in the TTL field reaches zero
Q: Take a list of String from the user and sort that in list in alphanumerically ascending order. The S...
A: #include<stdio.h>#include<string.h>int main(){ int i,j,count; char str[25][25],temp[...
Q: Define the concept of a unified memory architecture.
A: There are many types of memory architectures present.
Q: SIMPLIFY THESE: 1. STANDARD SUM OF PRODUCT F (A, B, C) = A'B'C + BC' + AC' 2. STANDAR...
A: Solution: 1) The standard sum of product function is, F (A, B, C) = A'B'C+BC'+AC' By...
Q: create a view named major_ customer. it comsists of the customer num, name, balance, credit_limit an...
A: CREATE A VIEW : To create a view, use the create view command, which includes the wordsCREATE VIEW, ...
Q: This variable maintains track of both the number of source-level statements executed and the number ...
A: Introduction: Source-level refers to code that is found in the source code, I believe. Demonstrate e...
Q: Write a complete C++ program that asks the user to input information for at least 10 students. Use s...
A: Answer the above questions are as follows:
Q: What is an operating system and how does it work?
A: Introduction: The operating system is the backbone of every computer or mobile device when it comes ...
Q: a brief discussion on them. ?
A: SNMPv2 stands for " Simple Network Management protocol " with version2 . This protocol is used in ma...
Q: (C PROGRAMMING ONLY) Make a code with the string function of strcmp (with user input)
A: - We need to code for the strcmp function use in C language.
Q: SH client file that a system administrator uses to p
A: Is there a name for the SSH client file that a system administrator uses to pre-configure the public...
Q: Let assume we have a list of numbers contains even and odd numbers , so you n build an algorithm to ...
A: Solution:- # Python program to segregate even and odd elements of array def segregateEvenOdd(arr): ...
Q: When it comes to computer architecture, is there a difference between it and computer organization? ...
A: Yes, Computer architecture is different from Computer Organization. 1. Computer architecture descri...
Q: list and describe eight of the most important computer architecture concepts?
A: The Answer is in Below Steps
Q: When implementing PPP authentication, you have the choice of utilizing either PAP or CHAP as your au...
A: Introduction: Use the encapsulation ppp interface configuration command to make PPP the encapsulatio...
Q: In embedded systems, what exactly is it about virtual memory that makes it so difficult to implement...
A: Introduction: In embedded systems, virtual memory is not employed. Memory management technology that...
Q: Consider a directed acyclic graph G E). We run DFS on G from a E V. This results in a BFS forest wit...
A: a) graph G = (V,E), for any two vertices u and v, exactly one of the following three conditions hold...
Q: #include using namespace std; void car(){ { cout << "Audi R8"; int main() { car("BENZ"); return 0; ...
A: It will give compile time error. as, function Car has NO arguments but during function call ONE para...
Q: When surfing online, you get some strange data on an apparently secure website, and you realize you ...
A: The answer is given below.
Q: Write a program that generates 100 random integers between 100 and 1000 inclusive and displays the n...
A: Program: #include <iostream>using namespace std;int main() { srand((unsigned) time(NULL)); ...
Q: 1. How are TCP/IP Concepts helpful? How did the InfoSec Lab, Capturing and Analyzing Network Traffic...
A: 1) TCP/IP : The TCP/IP convention stack is comprised of four layers, that is datalink layer , networ...
Q: oping, when does it come into play, and how can it be optimized for improved performance?
A: Scope The scope of a variable x in the program region where x is used to refer to its declaration. ...
Q: Suppose arrays A and B are both sorted in increasing order and both contain n elements. What is the ...
A: The answer is given below.
Q: The 80.70.56.0/21 block is assigned to an Internet service provider. The service provider Internet m...
A: Given that. IP address= 80.70.56.0/21 Number of network bits= 21 Number of host bits=32-21= 11 The r...
Q: Write a class called MonetaryCoin that is derived from the Coin class presented in Chapter 5. Store ...
A: Coin class we could define the following data: face, an integer that represents the current face HE...
Q: construct a circuit for the logic F = AC+BD
A: Solution:-
Q: 1. What is Failover-Clustering and why do you think it is so widely used?
A: To define Failover-Clustering.
Q: hat conditions would you argue in favor of building application software in assembly language code r...
A: Lets see the solution.
Step by step
Solved in 2 steps
- Airline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönderThe cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight in kilograms and dividing by the square of your height in meters. Write a program which prompts the user to enter the weight in kgs (integer value) and height in feet and inches (both integers) and then calculates the BMI of the person. Your program first need to convert inches to meters (i.e. inches * 0.0254) and then use the following formula to calculate BMI: weight kilogram / (height_meter)^2 Your program displays the BMI value in two decimal places and the corresponding status as shown in the examples below. Note that one inch is 0.0254 meters and 1 foot is 12 inches. For example: Input Result 62 5 10 89 6 0 45 BMI BMI < 18.5 18.5 s BMI < 25.0 25.0 ≤ BMI < 30.0 30.0 ≤ BMI 7 82 5 Interpretation Underweight Normal Overweight Obese 2 Enter weight (kg): Enter height (feet): Enter height (inches): BMI is 19.61, Normal Enter weight (kg): Enter height (feet): Enter height (inches): BMI is…
- Question 1 Write a program that asks the user to enter the number of passengers in an airplane and the weight of baggage for these passengers. Your program should then print the average weight of all baggage; it should also print the weights in reverse order. Sample run: Enter the number of passengers in the airplane: 8 Enter the weights of 8 baggage: 16 45 60 13 24 29 50 30 The average weight of all baggage is 33.375 The entered weights in reverse order are 30 50 29 24 13 60 45 16A-Write a program to compute the drag force F, (in Newton) When a body swims through fluid, the drag force is given by 1 F₁ =pV²ACD Take: p= 1000 kg/m3 is the density of fluid, V 1.25 (m/s) is the swimming speed, A=0.25 m² is the frontal area of the body, Cp=0.09 is the coefficient of drag. MatlapA parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $1 per hour for each hour or part thereof over four hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format, and should calculate and print the total of yesterday's receipts. The program should use the function calculate Charges to determine the charge for each customer.
- Given an airplane’s acceleration a and take-offspeed v, you can compute the minimum runway length needed for an airplane totake off using the following formula:length =v2/2aWrite a program that prompts the user to enter v in meters/second (m/s) and theacceleration a in meters/second squared (m/s2), then, displays the minimum runwaylength. Here is a sample run: Enter speed and acceleration: 60 3.5The minimum runway length for this airplane is 514.2862. Write an if...else statement that determines whether a variable called points is outside the range of 9 to 51 (exclusive). If the variable is outside this range it should display "Invalid points". Otherwise, it should display “Valid points". 3. Write an if...else statement that determines whether a variable called speed is inside the range of 0 to 200 (inclusive). If the variable is inside this range it should display "Valid Speed". Otherwise, it should display "Invalid Speed".The first 11 prime integers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31. A positive integer between 1 and 1000 (inclusive), other than the first 11 prime integers, is prime if it is not divisible by 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31. Write a program that: Prompts the user to enter a positive integer between 1 and 1000 (inclusive) Outputs whether the number is prime. If the number is not prime, then output all the numbers, from the list of the first 11 prime integers, which divide the number. In C also the output should look like this Enter an integer between 1 and 1000 (inclusive): 6262 is divisible by 2, 31.62 is not prime. ---------------------------------------------------- Enter an integer between 1 and 1000 (inclusive): -1You must enter a number between 1 and 1000 (inclusive). ---------------------------------------------------- Enter an integer between 1 and 1000 (inclusive): 33 is prime.
- Interest on a credit card’s unpaid balance is calculated using the average daily balance. Suppose that netBalance is the balance shown in the bill, payment is the payment made, d1 is the number of days in the billing cycle, and d2 is the number of days payment is made before billing cycle. Then, the average daily balance is: averageDailyBalance = (netBalance * d1 – payment * d2) / d1 If the interest rate per month is, say, 0.0152, then the interest on the unpaid balance is: interest = averageDailyBalance * 0.0152 Instructions Write a program that accepts as input netBalance, d1, payment, d2, and interest rate per month (interestRate). The program outputs the interest. Format your output to two decimal places. Input: 100 30 50 7 9.7 Output: 856.83 Test case 2: Input: 255.76 31 55 3 12.3 output: 3080.38The first 11 prime integers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31. positive integer between 1 and 1000 (inclusive), other than the first 11 prime integers, is prime if it is not divisible by 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31. Write a program that prompts the user to enter a positive integer between 1 and 1000 (inclusive) and that outputs whether the number is prime. If the number is not prime, then output all the numbers, from the list of the first 11 prime integers, which divide the number.Interest on a credit card’s unpaid balance is calculated using the average daily balance. Suppose that netBalance is the balance shown in the bill, payment is the payment made, d1 is the number of days in the billing cycle, and d2 is the number of days payment is made before billing cycle. Then, the average daily balance is: averageDailyBalance = (netBalance * d1 – payment * d2) / d1 If the interest rate per month is, say, 0.0152, then the interest on the unpaid balance is: interest = averageDailyBalance * 0.0152 Write a program that accepts as input netBalance, d1, payment, d2, and interest rate per month (interestRate). The program outputs the interest. Format your output to two decimal places.