Answer:
The code will be:
#include <stdio.h>
#include <stdlib.h>
main () {
double weight, shippingCharge, rate, segments;
int distance;
printf("Enter the weight: \n");
scanf("%lf", &weight);
printf("Enter the distance: \n");
scanf("%i", &distance);
if (weight <= 10) {
printf("Rate is $3.00 \n");
rate = 3;
} else {
printf("Rate is $5.00 \n");
rate = 5;
}
if (distance % 500 == 0) {
segments = distance / 500;
} else {
segments = distance / 500 + 1;
}
shippingCharge = rate * segments;
if (distance >1000) {
shippingCharge = shippingCharge + 10;
}
printf("Your shipping charge is $%lf\n", shippingCharge);
system ("pause");
}
Answer:
The correct answer is True.
Explanation:
The feedback control system implies that to make a feedback, there must first be an error, otherwise there will be nothing to correct.
This system works so that there is an output that is controlled through a signal.
This signal will be feedback and it will signal an error which will be detected by a controller that will allow entry into the system.
In basic words, this system processes signals, samples them in the form of an output, and re-enters them feedback to detect the error signal.
Answer:
Steps:
1. Create a text file that contains blade diameter (in feet), wind velocity (in mph) and the approximate electricity generated for the year
2. load the data file for example, in matlab, use ('fileame.txt') to load the file
3. create variables from each column of your data
for example, in matlab,
x=t{1}
y=t{2}
4. plot the wind velocity and electricity generated.
plot(x, y)
5. Label the individual axis and name the graph title.
title('Graph of wind velocity vs approximate electricity generated for the year')
xlabel('wind velocity')
ylabel('approximate electricity generated for the year')
The number of trays that should be prepared if the owner wants a service level of at least 95% is; 7 trays
<h3>How to utilize z-score statistics?</h3>
We are given;
Mean; μ = 15
Standard Deviation; σ = 5
We are told that the distribution of demand score is a bell shaped distribution that is a normal distribution.
Formula for z-score is;
z = (x' - μ)/σ
We want to find the value of x such that the probability is 0.95;
P(X > x) = P(z > (x - 15)/5) = 0.95
⇒ 1 - P(z ≤ (x - 15)/5) = 0.95
Thus;
P(z ≤ (x - 15)/5) = 1 - 0.95
P(z ≤ (x - 15)/5) = 0.05
The value of z from the z-table of 0.05 is -1.645
Thus;
(x - 15)/5 = -1.645
x ≈ 7
Complete Question is;
A bakery wants to determine how many trays of doughnuts it should prepare each day. Demand is normal with a mean of 15 trays and standard deviation of 5 trays. If the owner wants a service level of at least 95%, how many trays should he prepare (rounded to the nearest whole tray)? Assume doughnuts have no salvage value after the day is complete. 6 5 4 7 unable to determine with the above information.
Read more about Z-score at; brainly.com/question/25638875
#SPJ1
I’m sure the answer is correct and it is below
“ A catapult works because energy can be converted from one type to another and transferred from one object to another. ... This energy is stored in the launching device as potential, or stored, energy. The catapult you are about to make uses elastic potential energy stored in a wooden stick as you bend it.”