Answer:
<em>This program is written using c++ programming language</em>
<em>Comments are used to explain difficult lines</em>
<em>See attachment for .cpp source files</em>
<em>Program starts here</em>
#include<iostream>
using namespace std;
int main()
{
// Calculate number of ingredient that makes up 48 cookies
float num_sugar = 1.5/48;
float num_butter =1.0/48;
float num_flour = 2.75/48;
//Declare integer variable to get number of cookies from user
int n;
// Prompt user for number of cookies needed
cout<<"Enter number of cookies: ";
cin>>n;
// Calculate equivalent amount of ingredient
num_sugar *= n;
num_butter *= n;
num_flour *= n;
// Display Result
cout<<"You need "<<num_sugar<<" cups of sugar, "<<num_butter<<" cups of butter, and "<<num_flour<<" cups of flour.";
return 0;
}
//End of Program
Answer:
ambitious rank buddy trust me
Answer:
Packet delay
Explanation:
In measuring the efficiency of a network, one of the many factors to consider is packet delay. Packet delay is the total time taken for a data packet to travel from its source network to its destination. It is sometimes called latency.
High packet delay or latency are caused by, but not limited to, the following:
(i) The distance between the source network and the destination network
(ii) The size of the packet being transferred
(iii) The time taken to forward data - packet switching delay.
Hey!
---------------------------------------------------
Definition:
A "for loop" is something used for repeating things over a list of items. For instance, a list or a dictionary.
Code:
colors = ["red", "green", "blue"]
for x in colors:
print(x)
---------------------------------------------------
Definition:
A "while loop" is is something used for carrying out a set of lines that are true.
Code:
n = 1
while i < 4:
print(n)
n += 1
---------------------------------------------------
Real-Life Example:
A real-life example would if I was a manager or boss for a company say that everyone was off a certain day. Like, if I said everyone was off for Christmas the 25th. If I had 1000 employees that would take a very long time to send an email to everyone. Instead of sending an email to everyone I can program code that uses "for loops" and "while loops" to create a message and send it to everyone.
---------------------------------------------------
Hope This Helped! Good Luck!