Questions
suggest two or three possible techniques that can be utilized to minimize or reduce network congestion...

suggest two or three possible techniques that can be utilized to minimize or reduce network congestion and explain why this is an appropriate technique. 250 words

In: Computer Science

(Q)Choose a DBMS that you’d like to use. Provide some evidences to show that you have...

(Q)Choose a DBMS that you’d like to use. Provide some evidences to show that you have some basic knowledge of the software. For instance, use the software to define a name and address database of your business associates, friends, classmates etc. You can use the following relation: (LAST NAME, FIRST NAME, SEX, ADDRESS, POSTCODE, CITY, PHONE). Enter at least five people in your data file. Print/screen shot a copy of the records. There should be no blank records. (20)

please mention which dbms that you used and please give detail explanation in the answer thank you.

In: Computer Science

Hi I started writing this program but is confusing the heck out of me and I...

Hi I started writing this program but is confusing the heck out of me and I don't know if I'm just over thinking it too much. Can anyone help me with this? Write a program in c language: simulates a time clock does nested for loops with one switch statement. Declares variables hours, minutes, seconds as integers. For hours are zero to < 24 however switch when hours are greater than 24 print on new line “25 error” switch when hours are thirteen break switches otherwise by default print on new line “top of the hour!” , For minutes are zero to 60, For seconds are zero to 60 in this loop print on a line hours value separated by a colon character minutes value separated by a colon character seconds value with new line character. Just before ending print on new line “Program finished!” then terminate program.

In: Computer Science

Choose one of the laws & regulations concerning email investigations in digital forensics. What is it?  What...

Choose one of the laws & regulations concerning email investigations in digital forensics. What is it?  What does it cover? How does it relate to digital forensics?  

In: Computer Science

Spoofing email is a common occurrence these days. Have you received a spoofed email? Briefly, describe...

Spoofing email is a common occurrence these days. Have you received a spoofed email? Briefly, describe the email and how did you notice it was not legit? Anything else that was odd concerning the spoofed email?

In: Computer Science

Hi, I am working on an assignment in C-Programming language dealing with LInked lists, in the...

Hi,

I am working on an assignment in C-Programming language dealing with LInked lists,

in the code there is instructions on where to write the code. I do not know how to write Linked Lists.

Has to be in the C-language, Any help is greatly appreciated  

//agelink.c
//maintains list of agents
//uses linked list


#include <stdio.h>
#include <stdlib.h>
#define TRUE 1

void listall(void);
void newname(void);
void delink(void);
void memexit(void);
void wfile(void);

/*********************************************************************
this is the structure to hold a agent information.
prt *ptrnext is a point to link to next prt structure

*********************************************************************/
struct prs
{
   char name[40];
   int agnumb;
   float height;  
   struct prs *ptrnext;
};

struct prs *ptrfirst = NULL;
int n = 0;

/***********************************************************************
main() calls other methods depending on user choice. you do not need the change code here.
**********************************************************************/
void main(void){
  
   while(TRUE) // cycle until user chooses 'q'
   {
       printf("\n'e' enter new agent\n'l' list all agents");
       printf("\n 'd' delete a agent\n'r' read file\n'q' exit: ");
       char option;
       scanf("%c", &option);
       switch(option) //gethche() gets()
       {
           case 'e': newname(); break;
           case 'l': listall(); break;
           case 'd': delink(); break;
           case 'q': memexit(); break;
           default:
               printf("\nEnter only selections listed"); //puts("this is to be print out to screen")
                      
       }//end switch
                  
   }//end while  
  
}// end main();

/**************************************************************
Complete this methods to ask user to enter agent name,
agent number, and agent height to add a new agent to the
linked list.
use scanf() to read from the user inputs
use atoi to convert char to integers.
**************************************************************/
void newname(void){
  
   struct prs *ptrthis; // this is the pointer to new agent.
  
   char numstr[81];
  
   ptrthis = malloc(sizeof(struct prs));
   if(ptrthis==NULL)
   {
       printf("\nCan't reallocate memory");
       return;
   }
   //your code start here


   if(!ptrfirst)
   ptrfirst = ptrthis;
   else
   {
       ptrfirst->ptrnext = ptrthis; // note: you need make the line right to handle additonal link.
   }
  
  
  
}
/**************************************************************
Complete this method to print out all the agent list to screen
**************************************************************/
void listall(void){
  
   struct prs *ptrthis;
  
  
   if(ptrfirst == NULL){
       printf("\nEmpty list");
       perror("error in listall method");
       return ;
   }
  
   ptrthis = ptrfirst;
   // in this do while loop, to print out the list
   do{
  
   }
   while (ptrthis != NULL);

  
  
}
/******************************************************************
//delink()
//delete entry in agent list matching the name from user input

******************************************************************/
void delink(void){
  
   struct prs *ptrthis, *ptrlast; // utility pointer
   char delname[81];
  
   if(ptrfirst == NULL){
       printf("\nEmpty list in delink.\n");
       return;
   }
  
   printf("\nEnter name ot be deleted: ");
  
   scanf("%s",&delname);
  
   ptrthis = ptrfirst;
  
   //implement logica here to search and delete the record matching the name
   // user input from terminal. do not forget to free the memory resouces
   //used by the deleted records using free(void *ptr) method.
  
   do{
      

      
   }while(ptrthis !=NULL);
  
   printf("No such name on list\n");

  
  
}

//fee all memeory and exist;

void memexit(void){

   struct prs *ptrthis, *ptrfree;

   if(ptrfirst == NULL)
       exit(0);
  
   ptrthis = ptrfirst;
   do{
      
       ptrfree = ptrthis;
       ptrthis = ptrthis->ptrnext;
       free(ptrfree);
   }while (ptrthis != NULL);
  
   exit(0);

}

In: Computer Science

I need know how to make A Java supermarket awards coupons depending on how much a...

 I need know how to make A  Java supermarket awards coupons depending on how much a customer spends on

  groceries. For example, if you spend $50, you will get a coupon worth eight percent

  of that amount. The following table shows the percent used to calculate the coupon
i also need comments

  awarded for different amounts spent. Write a program that calculates and prints the

  value of the coupon a person can receive based on groceries purchased.

* - Up to 10 dollars: No coupon
* - From 10 to 60 dollars: 8% coupon
* - From 50 to 150 dollars: 10% coupon
* - From 150 to 210 dollars: 12% coupon
* - More than 210 dollars: 14% coupon

In: Computer Science

Provide an array-based implementation of stack that allows us adding (pushing) items regardless of the capacity....

Provide an array-based implementation of stack that allows us adding (pushing) items regardless of the capacity. That means, when the stack becomes full, it doubles its capacity to be able to hold more items. Specifically, in your implementation start with default capacity 4, when the stack reaches 4 items and you want to add more, make the capacity 8, and so on. Therefore, you can always add items and the stack expands.

Name the class ImprovedStack and implement the following methods in addition to two constructors, one default no-args constructor, and one constructor that sets the initial capacity.

int pop()

void push(int item)

int peek()

int size()

boolean isEmpty()

boolean isFull()

Assume your items are of type int. your file to be submitted to Gradescope should be named ImprovedStack.java.

In: Computer Science

Consider the table below then answer the following questions. Material Density Color Steel 8050 Grey Aluminum...

Consider the table below then answer the following questions.

Material Density Color
Steel 8050 Grey
Aluminum 2710 Grey
Fiberglass 12 White
Wood 485 Brown

(True/False) Material → Density

(True/False) Material → Color

(True/False) Color → Material

In: Computer Science

Consider a set of n boxes with their positions numbered from 1 to n. Initially all...

Consider a set of n boxes with their positions numbered from 1 to n. Initially all the boxes
are CLOSED. These n boxes are subject to modifications over n iterations as follows. At the ith
iterations the boxes at the positions whose ids are multiples of i are flipped, i.e. changed from
CLOSED to OPEN or vice-versa. For example, at iteration 1, boxes at all positions are
flipped, at iteration 2, boxes at positions 2,4,6,etc. are flipped, at iteration 3, boxes at positions 3,6,9, etc.
are flipped.
Propose an algorithm for find out, that after n such iterations how many boxes will be OPEN.
Note that the answer requires only how many boxes, not their positions. Describe the rationale
for the algorithm, give the pseudocode, and its complexity. Grading scheme: (your grade will be
based on whichever class your algorithm falls in)
- For algorithms with complexity O(n2) or higher.
- For algorithms with complexity O(kn), where k is the number of digits of n.
- For algorithms with complexity O(M(k)), where k is the number of digits of n, and M(k) is
the complexity of multiplying two k digit numbers.

In: Computer Science

I need know how to make A Java supermarket awards coupons depending on how much a...

 I need know how to make A  Java supermarket awards coupons depending on how much a customer spends on

  groceries. For example, if you spend $50, you will get a coupon worth eight percent

  of that amount. The following table shows the percent used to calculate the coupon

  awarded for different amounts spent. Write a program that calculates and prints the

  value of the coupon a person can receive based on groceries purchased.

* - Up to 10 dollars: No coupon
* - From 10 to 60 dollars: 8% coupon
* - From 50 to 150 dollars: 10% coupon
* - From 150 to 210 dollars: 12% coupon
* - More than 210 dollars: 14% coupon

In: Computer Science

C++ CLASSES 1. Define a class date that has day, month and year data members. 2....

C++

CLASSES

1. Define a class date that has day, month and year data members.

2. Define a class reservation with following data members:

- An integer counter that generates reservation numbers.

- An integer as a reservation number. The counter is incremented each time a reservation object is created. This value will be assigned as the reservation number.

- Number of beds.

- Reservation date from class date.

3. Define a class rooms with data members:

- Room number

- Number of beds (1 or 2).

- A 2D int array (12 by 30) that show the availability of the room on each day of the year. The rows are the months and columns are days of month. If the room in available on a specific date, the array element value is zero. If the room has been reserved, the array element value has the reservation number.

4. Define a manager class with data member:

- A variable motel_size that indicates the number of rooms of motel.

- An array of pointers to rooms.

- An array of pointers to guests.

Member Functions:

- Function that processes a reservation received as parameter. If unsuccessful the function returns zero. If the reservation is successful (if the a room with requested # of beds is available during the required dates) the function returns reservation number.

- Function that receives reservation number as parameter and outputs the details of reservation.

- Function that receives reservation number and date as parameters and cancels reservation.

- Function that dictates the availability of single and double rooms on a required date.

5. Main function:

Creates manager, and reservation objects. This function calls the manager member function to process reservations.

In: Computer Science

Explain the differences between a replay attack and a Man-in-the-middle attack.

Explain the differences between a replay attack and a Man-in-the-middle attack.

In: Computer Science

Write a python code without using Sympy and Numpy to derive the polynomial 2x2 + 5x...

Write a python code without using Sympy and Numpy to derive the polynomial 2x2 + 5x + 4.

In: Computer Science

In a single Matlab script, plot a sine wave and cosine wave over 2 periods (0...

  1. In a single Matlab script, plot a sine wave and cosine wave over 2 periods (0 to 4π). Checkpoints of the requirements:
    1. Generate your independent variables first; the step size should be no larger than 0.1 so that it has enough samples to get smooth lines. Plot the two waves on the same graph.  
    2. Specify the line color and styles: red dashed line for sine & blue solid line with dot markers for cosine.
    3. Include axis labels and a descriptive title (for example: sin and cos graph).

d. Include a legend

e. Set the x limits from 0 to 4??

answer for e.

In: Computer Science