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.
Q: Question 5 What is the data type of the variable dates? dates - '12-5-1983', '2-2-2002', 12-4-1994' ...
A: In Python, the tuple is a comma-separated sequence that can be created with or without parentheses.
Q: What Outlook function could you utilise at the medical office every now and then?
A: Introduction: Outlook has the following features:
Q: Q3. Take a screen shot of the screen in command prompt using at least any 5 of various network relat...
A: Networking commands are utilized at the command brief to get network data like the IP address of the...
Q: 4 A combinational circuit is defined by the following three Boolean functions: F1(x,y,z)=x'y'z'+xz F...
A:
Q: write a SOQL Query In which we have to find all the contact whose accountld is not null and Order th...
A: According to the question, we have to write a SOQL Query. In which we have to find all the contact w...
Q: Q-L. What is cact put gf this logic gati? A F=?
A: The Answer is in Below Steps
Q: SOL Assignment Salesforce: In this assignment you have to find the all the account or contact where ...
A: Introduction SOL Assignment Salesforce: In this assignment you have to find the all the account ...
Q: What is the output of the following code: class Car{ public double speed; public String model; publi...
A: Introduction What is the output of the following code:class Car{public double speed;public String mo...
Q: Urite a java program to take three ints, a b c, print true if b is greater than a, and c is greater ...
A: We are going to write a java code which will ask user to enter 3 integers a,b,c and then print "True...
Q: BINARY SEARCH: PYTHON CODE #Binary Search Algorithm def BinarySearch(sampleList, value): low = 1 hig...
A: find the error in code and write correct code in Binary Search using python
Q: Brief information about matlab software
A:
Q: Explain how a cloud storage program differs from typical client storage software in terms of pros an...
A: Cloud storage programs, also known as cloud file storage services, provide large-scale storage in th...
Q: What is OLAP, and what are its main characteristics ? Give two examples of how OLAP can be used in a...
A: OLAP (Online Analytical Processing): It is based on multidimensional data model and it allows manage...
Q: Explain a system call. Include when it would be used, why it would be used, and what the set of the ...
A: What is a system call? and why is is used? Through an operating system (OS), a system call is a way ...
Q: What are the two most important aggregation principles?
A: Introduction: Aggregation is the collecting or combination of smaller concepts or elements in genera...
Q: 32/4 = 8 components (2-bit wide) I need the answer to part two, please If the size of each 4-bit mem...
A: The answer is
Q: Explain any two structures of Operating Systems Services.
A: An operating system will be system programming that oversees PC equipment, programming assets, and o...
Q: OQL Assignment: You are required to construct a SOQL Query in which we must locate all of the contac...
A: The Query is given in next step
Q: Write a program that prompts the user to enter an integer value in an array, and user can also print...
A: I give the code in Java along with output and code screenshot
Q: What is the full form of CPU?
A: Introduction: what is the full form of CPU Every computer has a (CPU). The CPU provides messages to...
Q: Consider the following hypothetical situation: An exception is thrown by a function. What are the th...
A: Introduction: An exception is an occurrence in a program that causes the normal flow of the program ...
Q: What are some of the advantages of using MongoDB in your application?
A: MongoDB MongoDB is an open-source NoSQL document-oriented database. The term NoSQL means Non relat...
Q: Explain how a cloud storage program differs from typical client storage software in terms of pros an...
A: I am a proponent of the ease and value that cloud technology provides, since I now use Google Drive ...
Q: What is the method of arbitration of the PCI bus? Modify the following diagram arbitration, when the...
A: In order to attenuate the latency of access, PCI's arbitration mechanism relies on access instead of...
Q: Who or what, in your opinion, was responsible for the recent security breach involving access contro...
A: What was the impact on the day-to-day operations of the company 1. Monetary effect As referenced ove...
Q: What would happen if database referential integrity was not enforced? What are the most probable err...
A: We are going to understand if we do not enforce referential integrity constraint then what could hap...
Q: analyze the running time, getting that M(n) = Ω(n log(n)) recurrence relation
A: Ω represents the best case time complexity which gives the tightest lower bound of the function. Rec...
Q: ex of a value in the list b) convert an integer list to an string
A: def indexOf(last,num): for j in range(len(last)): if last[j] == num: return j ...
Q: What is Dynamic Memory Allocation and how you execute Dynamic memory allocation?
A: What is Dynamic Memory Allocation? Dynamic memory allocation is a type of memory management in which...
Q: When is it appropriate to nest a subquery within a HAVING clause?
A: answer is
Q: Computer Science Write a program that continuously monitors the keyboard for a keypress and when a k...
A: here we have given a c program that continuously monitors the keyboard for a keypress and when a key...
Q: Use the non-optimized division hardware to perform 11110101 ÷ 01101010. In the input box below, show...
A: Use the non-optimized division hardware to perform 11110101 ÷ 01101010. In the input box below, show...
Q: What characteristics are common when using an NVR?
A: -(NVR) Network video recorders are one of two local storage options for closed-circuit television (...
Q: How to write a program in MARIE that prints all the integers between X and Y (note: X may or may not...
A: ANSWER:-
Q: language over the alphabet Σ = {0,1}: L={ w | w starts with 1 and has odd length, or starts with 0 a...
A:
Q: What do you think is the most difficult component of the autolayout system to implement?
A: According to the information given:- We have to define the most difficult component of the autolayou...
Q: What speeds for data transmission can be achieved using a particular type of cable?
A: The answer is given below.
Q: cle delves into the details of how to program parallel compu
A: Below the How to program parallel computing applications
Q: how cybercrime manifests itself in a number of different ways The development of novel prevention st...
A: Introduction: Computer crime is categorised as follows:Internet Fraud: Over the past several years, ...
Q: Who defines user needs and what does a system require?
A: Introduction: A requirement specification document is created by combining the user's requirements a...
Q: What happens to availability as the mean time between failures (MTTR) approaches zero? Is this a cir...
A: Introduction: MTTR (mean time to repair and restore it to operational state) refers to the time it t...
Q: Enter a Character: A It's a Letter Vowel Try again [y/n]: y Enter a Character: y It's a Letter Conso...
A: Please note Since programming language is not mentioned i preferred Python.
Q: Write a C program to check whether a given number is even or odd. using switch statement
A: A number is decided as even or odd based on the remainder that is obtained when number is divided by...
Q: Write the logic expression that represents the output of the following circuit as a function of its ...
A:
Q: What is the full form of CPU?
A: Computer is an electronic device, and it contains the processer, input and output devices, memory. C...
Q: explain Remote controlled switch circuit using 555timer
A: According to the information given:- We have to explain Remote controlled switch circuit using 555ti...
Q: PLEASE HELP ME ASAP IN WEB PROGRAMMING QUESTION Set up a client session in server.js file using ...
A: client-sessions is connect middleware that implements sessions in encrypted tamper-free cookies. For...
Q: hich of the following options contain only things that should be avoided in a data visualization? ...
A: Lets see the solution.
Q: In your own opinion, does the future need more technology than humans? Discuss your answer. What are...
A: In your own opinion, does the future need more technology than humans? Discuss your answer. What ...
Q: Discuss a problem caused by concurrent processing in an operating system?
A: Introduction: The question is about Discussing a concurrent processing issue in an operating system ...
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Transient PopulationPopulations are affected by the birth and death rate, as well as the number of people who move in and out each year. The birth rate is the percentage increase of the population due to births and the death rate is the percentage decrease of the population due to deaths. Write a program that displays the size of a population for any number of years. The program should ask for the following data: The starting size of a population P The annual birth rate (as a percentage of the population expressed as a fraction in decimal form)B The annual death rate (as a percentage of the population expressed as a fraction in decimal form)D The average annual number of people who have arrived A The average annual number of people who have moved away M The number of years to display nYears Write a function that calculates the size of the population after a year. To calculate the new population after one year, this function should use the formulaN = P + BP - DP + A - Mwhere N is the…The 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.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 16
- 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…A 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.286
- A-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. MatlapThe 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.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.382. 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 monthly payment for a given loan pays the principal and the interest. The monthly interest is computed by multiplying the monthly interest rate and the balance (the remaining principal). The principal paid for the month is therefore the monthly payment minus the monthly interest. Write a program that lets the user enter the loan amount, a number of years and interest rate then displays the amortization schedule for the loan. A sample run is shown below. Welcome to PE5.22 Loan Amortization Program by Mrs. Jackson