Create a public class named: Employee that would get the firstname and lastname of each
employee from the keyboard/user
Create a c# program that Deploy devices using packet tracer
Creat a c# program that Deploy and cable devices using packet tracer
/** @return rear element of queue
* @return null if the queue is empty */
public Object getRearElement()
{
if (isEmpty())
return null;
else
return queue[rear];
}
/** insert theElement at the rear of the queue */
public void enqueue(Object theElement)
{
// Add your code here
}
/** remove an element from the front of the queue
* @return removed element */
public Object dequeue()
{
// Add your code here
}
please complete this java code its urgent
a) /** insert theElement at the rear of the queue */
b) /** remove an element from the front of the queue
* @return removed element */
// Please i need this answer with full proper explonation //
(Gas Mileage) Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several trips by recording miles driven and gallons used for each trip. Develop a C++ program that uses a while statement to input the miles driven and gallons used for each trip. The program should calculate and display the miles per gallon obtained for each trip and print the combined miles per gallon obtained for all tankfuls up to this point.
// I need this answer this proper explonation + full step by step please if any one know //
Q1: (Salary Calculator) Develop a C++ program that uses a while statement to determine the gross pay for each of several employees. The company pays “straight time” for the first 40 hours worked by each employee and pays “time-and-a-half” for all hours worked in excess of 40 hours. You are givenalist of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee’s gross pay.
Enter hours worked (-1 to end): 39
Enter hourly rate of the employee ($00.00): 10.00
Salary is $390.00 Enter hours worked (-1 to end): 40
Enter hourly rate of the employee ($00.00): 10.00
Salary is $400.00
<..............................................................................>
JamEx Limited requires a program to calculate and print the commission received by a salesperson. The program should process an undetermined number of salespersons and appropriately terminate by a predefined input. The commission rate is based on two factors, the amount of sales and the class to which a salesperson belongs. The input will be the salesperson number, sales amount and class. The commission rate will be based on the following criteria:
Class=1
If sales is equal to or less than $1000, the rate is 6 percent.
If sales is greater than $1000 but less than $2000, the rate is 7 percent.
If the sales is $2000 or greater, the rate is 10 percent.
Class=2
If the sales is less than $1000, the rate is 4 percent.
If the sales is $1000 or greater, the rate is 6 percent.
Class=3 The rate is 4.5 percent for all sales amount
Class=any other value
Output an appropriate error message.
*need the answer in the form of a pseudocode and python code
int main()
{
const int N = 8;
string names[] = {"Jack","John","Mary","Mike","Helen","Phill","Sew","Elis"};
char grades[] = {'B','E','A','D','C','F','E','B'};
cout << "Table with grades of students:\n";
for (int i = 0; i < N; i++)
{
cout << names[i] << "\t" << grades[i] << endl;
}
char maxgrade = grades[0];
int n=0;
for (int i = 0; i < N; i++)
{
if(grades[i]<maxgrade)
{
maxgrade = grades[i];
n=i;
}
}
cout << "The best grade is " << grades[n]
<< "\nIt has " << names[n];
}
please understand the code me by comments so please do it.
Implement the following Operator Overloading question for C++ without using any libraries.
A BinaryStore calculator will store bytes “stored in strings” with their addresses, i.e., at each address in the BinaryStore there is a stored Byte. Each address will be 4 characters string and each byte will be 8 characters strings.
Create a class BinaryStore and class Byte that offer following overloaded operators. class offers the following methods:
an overloaded+=operator that will add the address in the list of BinaryStore
an overloaded+ that will add two string bytes for Byte Class
an overloaded- that will subtract two string bytesByte Class
an overloaded||operator that will give the string which is bit by bit logical or of act two string bytes for Byte Class
an overloaded&&operator that will give the string which is bit by bit logical and of act two string bytesfor Byte Class
an overloaded==operator that will give bool value if they are equal or notfor Byte Class
construct uml daigram on point of sale system in java
It is advised to think carefully and identify the classes and relationships of Project and submit a UML diagram. Kindly note that each implemented class must have toString method, equals method and copy constructor.
Minimum Number of Classes: 7
Relationships: Students must have at least one inheritance, one abstract class, interface class, aggregation and composition.