Answer:
The code is given in C++ below
Explanation:
#include <iostream>
using namespace std;
int main()
{
float fv,pv,r,k,n,pmt,totalmoneyinvested;
pv=1000.00;
r=6/100;
k=12; //The value of k should be 12 for monthly installments
n=45;
pmt=250;
totalmoneyinvested=pv+(pmt*12*45); //The total money you invested
fv=pv*(1+r/k)*n*k+pmt*((1+r/k)*n*k-1)*(1+r/k)*r/k;
cout<<"Initial Investment:"<<" $"<<pv;
cout<<"\nRate Of Return:6%";
cout<<"\nLength of Time:"<<n<<"year";
cout<<"\nMonthly Payment:"<<" $"<<pmt;
cout<<"\nFinal Amount:"<<" $"<<fv;
cout<<"\nThe Money You Invested Is $"<<totalmoneyinvested<<" And The Final Amount Is $"<<fv;
return 0;
}
There are three types of traffic in an IP network:
1. Unicast - one-to-one traffic (traffic from one sender to one receiver)
2. Multicast - one to many traffic (one sender and more receivers)
3.Broadcast - every device in the network will receive the packet
So, the broadcast traffic <span>always goes to all devices in a subnet. </span>
Answer:
Explanation:
Following are the Semaphores:
Customers: Counts waiting customers;
Barbers: Number of idle barbers (0 or 1)
mutex: Used for mutual exclusion.
Cutting: Ensures that the barber won’t cut another customer’s hair before the previous customer leaves
Shared data variable:
count_cust: Counts waiting customers. ------------copy of customers. As value of semaphores can’t access directly.
// shared data
semaphore customers = 0; semaphore barbers = 0; semaphore cutting = 0; semaphore mutex = 1;
int count_cust= 0;
void barber() {
while(true) { //shop is always open
wait(customers); //sleep when there are no waiting customers
wait(mutex); //mutex for accessing customers1
count_cust= count_cust-1; //customer left
signal(barbers);
signal(mutex);
cut_hair();
}
}
void customer() {
wait(mutex); //mutex for accessing count_cust
if (count_cust< n) {
count_cust= count_cust+1; //new customer
signal(customers); signal(mutex);
wait(barbers); //wait for available barbers get_haircut();
}
else { //do nothing (leave) when all chairs are used. signal(mutex);
}
}
cut_hair(){ waiting(cutting);
}
get_haircut(){
get hair cut for some time; signal(cutting);
}
Answer: (A) Executive level
Explanation:
The executive level is basically involve with the decision as, the most elevated level officials in senior administration for the most part have titles starting with "head" framing what is regularly known as the C-suite.
The CEO (chief executive officers), CFO ( Chief financial officer and the COO (Chief operation officer), these are the main three traditional officers and these are essentially engaged with the future arranging of association and the organization monetary status.