Questions
Topic of Discussion “The implementation of realistic time management plans can improve productivity and the quality...

Topic of Discussion

“The implementation of realistic time management plans can improve productivity and the quality of life”.

As a project manager, discuss the key steps for creating realistic and successful time management plans.

In: Computer Science

Do a walk-through of the following program segments and determine, in each case, the exact output:...

Do a walk-through of the following program segments and determine, in each case, the exact output:

a) int i, j;

for (i = 1; i <= 5; i++)

{

for (j = 1; j <= 5; j++)

cout << setw (3) << i;

cout << endl;

}

b) int i, j;

for (i = 1; i <= 5; i++)

{

for (j = (i + 1; j <= 5; j++)

cout << setw(5) << j;

cout << endl;

c) int i, j;

for (i = 1; i <= 5, i++)

{

for (j = 1; j <= i; j++)

cout << setw(3) << j;

cout << endl;

In: Computer Science

Java Programming: Scan a file and set up 3 different arrays from scanning through the .txt...

Java Programming:

Scan a file and set up 3 different arrays from scanning through the .txt file. you should have 2 string arrays and 1 integer array.

I need help knowing how to read the file so that it puts the correct information into an array. It is all separated by spaces.

.txt file:

S SABQ138 3
A AABQ205 2
S SABQ127 1
A AABQ313 2
S SABQ126 2
A AABQ302 2

In: Computer Science

Java guessing game: For this program you will use Linear Search. - Ask the user to...

Java guessing game:

For this program you will use Linear Search.

- Ask the user to choose between a number from 0 to 2000.

- The user will guess how long the linear search will take in nanoseconds,

- After the user puts in their answer, show the user the difference between the actual answer and their answer.

(Example: The user puts in 5 nanoseconds. The actual time is 11 nanoseconds. The program will show 6 nanoseconds.)

There should be a class for the program to do the Linear Search and a separate tester class for the user questions and answers.

In: Computer Science

Evaluate the different types pf Back-Up which can be performed on Windows Server (2016/2019) and develop...

Evaluate the different types pf Back-Up which can be performed on Windows Server (2016/2019) and develop a back-up strategy for your organization which is a Large Bank in UAE with a branch office in each Emirate.

In: Computer Science

<Using C++ programming.> <Prof said that you use the example given below.> Write a program to...

<Using C++ programming.>

<Prof said that you use the example given below.>


Write a program to find (A*B)*10 + (2*C+D) using class Matrix.

For member functions, use add() and mul().


Add()

-a,b,c are all m*n matrices.

-Add(a,b,c,m,n): cij = aij + bij

-Add(a,m,n,num): cij = aij + num


Mul()

-a is an m*n matrix, b is an n*p matrix, and c is an m*p matrix.

-mul(a,b,c,m,n): (Matrix Multiplication)

-mul(a,m,n,num): aij = aij * num

In: Computer Science

I want to know 'Linked link + queue' and 'Linked link Stack' code in C++ But...

I want to know 'Linked link + queue' and 'Linked link Stack' code in C++

But there is a condition. There shall be the following 'menu':

*****Menu*****

1. Insert into Stack 2. Insert into Queue

3. Delete from Stack 4. Delete from Queue

5. View Content in Stack 6. View Content in Queue

**********************************************

Let me give you a example.

>> 1 30 // Insert 30 into Stack

>>1 58// Insert 58 into Stack

>>1 26 // Insert 26 into Stack

>>3 // Delete from Stack

>>5 // View Content in Stack

Result: 58 30 ( Outputs in LIFO order)

Please help me. I am so curious.

In: Computer Science

Programming with Microsoft Visual Basic 2017: Discuss the ORDER BY clause in the SELECT statement and...

Programming with Microsoft Visual Basic 2017:

Discuss the ORDER BY clause in the SELECT statement and how that can help simplify the data retrieved by the query.

In: Computer Science

A computer manufacturer offers the possibility of purchasing computers via the Internet. The customer can select...

A computer manufacturer offers the possibility of purchasing computers via the Internet. The customer can select a computer on the manufacture’s web page. The computers are classified into servers, desktops and portables. The customer can select a standard configuration or can build a desired configuration online. The configurable components are presented as pick lists of available options. For each new configuration, the system can calculate price. To place an order, the customer must fill out the shipment and payment information. Acceptable payment methods are credit cards and checks. Once the order has been entered, the system sends a confirmation e-mail message to the customer with details of the order. While waiting for the arrival of the computer, the customer can check the order status online at any time. The back end order processing consists of the steps needed to verify the customer’s credentials and payment method, to request the ordered configuration from the warehouse, to print an invoice, and to request the warehouse to ship the computer to the customer. Consider the following extended requirements: The customer uses the manufacturer’s online shopping web page to view the standard configuration of the chosen server, desktop or portable computer. The customer chooses to view the details of the configuration, perhaps with the intention of buying it as it or to build a more suitable configuration. The price for each configuration can be computed at the customer’s request. The customer may choose to order the computer online or may request that the salesperson contact him/her to explain order details, negotiate the price, etc. before the order is actually place. To place the order, the customer must fill out an online form with shipment and invoice address, and with payment details (credit card or cheque). After the customer’s order has been entered into the system, the salesperson sends and electronic request to the warehouse with details of the ordered configuration. The details of the transaction, including an order number and customer account number, are e-mailed to the customer, so that the customer can check the status of the order online. The warehouse obtains the invoice from the salesperson and ships the computer to the customer.

For the above Scenario draw the following UML diagrams

Q1: Identify actors, use-cases also draw use-case diagram with all possible associations?

In: Computer Science

Make a JAVA program: java.applet java.awt java.awt.evet java.swing.JOptionpane decisional structure (IF, ELSE IF), message box, checkbox,...

Make a JAVA program:
java.applet
java.awt
java.awt.evet
java.swing.JOptionpane

decisional structure (IF, ELSE IF), message box, checkbox, number format.
Data entry:
Customer name
Client number
Discount: New Customer 10% Existing Customer 5%
Registration: Daily $ 5 Weekly $ 20 Monthly $ 40 Yearly $ 80
Calculate the registration cost in a function according to the discount and type of registration
It should show the cost and a message box showing the selected alternatives; Result boxes must be visible when the button is pressed and cannot be altered. You must contemplate the different errors, use "try and catch". Create color and apply to shape.
Add button to clear text boxes and variables.

Make a JAVA program decisional structure, message box, matching box, number format.
Entry of Data:
Customer Name
Customer Number
Discount: New Customer 10% Existing Customer 5%
Registration: Daily $5 Weekly $20 Monthly $40 Annual $80
Calculate in a function the cost of registration according to the discount and type of registration
You must display the cost and a message box showing the selected alternatives; the result boxes must be visible when the button is pressed and cannot be altered. You must contemplate the different errors, use " try and catch". Create color and apply to the form.
Add button to clear text boxes and variables.

In: Computer Science

Re-do Problem 1, but now implement the following method: i must use this code :- public...

Re-do Problem 1, but now implement the following method:

i must use this code :-

public static BagInterface intersection (BagInterface bagA, BagInterface bagB)

and here how my java program must work

This method must return a new bag which is the intersection of the two bags: bagA and bagB. An element appears in the intersection of two bags the minimum of the number of times it appears in either. For example, {1,1,2} ∩{1,1,2,2,3}= {1,1,2}. Do not forget to state the big O of your method implementation.

useing netbeans java

In: Computer Science

C++ Programming Chapter 7 Assignment: Assignment #4 – Student Ranking : In this assignment you are...

C++ Programming Chapter 7 Assignment:

Assignment #4 – Student Ranking :

In this assignment you are going to write a program that ask user number of students in a class and their names. Number of students are limited to 100 maximum. Then, it will ask for 3 test scores of each student. The program will calculate the average of test scores for each student and display with their names. Then, it will sort the averages in descending order and display the sorted list with students’ names and ranking.

Follow the Steps Below

  1. Save the project as A4_StudentRanking_yourname.
  2. Use functions to divide your program into manageable pieces. Define three functions: displayList, findAverage, and sort.
    1. Write function prototypes at the top and define the functions after the main function.
  3. findAverage function:
    1. This function will get 4 parameters: array of student names, 2D array of grades from 3 tests of each student, array of averages to fill in, number of students as the arrays size.
    2. You need nested for loop to calculate average of 3 test scores for each student and record it to the array of averages. (You may define array of names and 2D array of grades as constants in the parameter list since you don’t need to make any changes.)
    3. No return value needed; changes will apply on the original array of averages.
  4. displayList function:
    1. This function has 3 parameters: array of student names, array average scores, and the size of the arrays.
    2. The function doesn’t make any changes on the arrays, so define them as constants in the parameter list.
    3. Call the function twice in your program
      1. When averages are calculated
      2. When averages are sorted
  5. sort function:
    1. This function gets 3 parameters: array of students, array of averages, and number of students as the size of the arrays.
    2. Use selection sort algorithm. Sort both arrays based on the average scores in descending order. (You will apply the sort on the array of averages by comparing the scores, but apply the swapping on both arrays. They are parallel arrays. This means they use the same index numbers.)
  6. Define constants as global constants. Do not use any literal in the program, use their identifiers.
  7. Write function prototypes.
  8. Keep variable definitions local.
  9. At the beginning of the program inform user about the program. Display a message stating that they can enter 3 test scores and any number of students limited to 100.
  10. Ask for number of the students to user.
  11. Array of students, test scores, and averages are parallel arrays. This means they store related data in the same subscript.
  12. The array of test scores is a two-dimensional array. First subscript holds number of students and second subscript holds number of test scores.
  13. Validate user input with a while or do-while loop. They shouldn’t exceed the maximum number; also, it can’t be less than 1.
  14. Ask for the student names and their test scores. Use getline function to get the students’ full names. You must use cin.ignore() before using the getline function since you also use cin object.
  15. Call findAverage function.
  16. Call displayList function.
  17. Call sort function.
  18. Call displayList function.
  19. Use comment lines to describe block of code statements in the program.

In: Computer Science

Please Correct this Code. DO NOT, I repeat DO NOT edit the struct definitions and createNode...

Please Correct this Code. DO NOT, I repeat DO NOT edit the struct definitions and createNode Function because our prof said we shouldn't touch that part at all (I also staled that in the code).  You can edit the others as far as it works. The task is to reverse 10 numbers in linked list using recursion. The 10 numbers should be inputted by the user. Please add comments to the edited code.

#include <stdio.h>
#include <stdlib.h>

//TASK: Reverse 10 numbers of linked list using recursion.

//Struct Definitions (DO NOT EDIT THIS PART)
typedef struct node { // (DO NOT EDIT THIS PART)
void* dataPtr; //(DO NOT EDIT THIS PART)
struct node* link; //(DO NOT EDIT THIS PART)
} NODE; // (DO NOT EDIT THIS PART)

//create NODE (DO NOT EDIT THIS PART)
NODE* createNode(void* itemPtr) { //(DO NOT EDIT THIS PART)
NODE* nodePtr; //(DO NOT EDIT THIS PART)
nodePtr = (NODE*) malloc (sizeof (NODE)); //(DO NOT EDIT THIS PART)
nodePtr->dataPtr = itemPtr; //(DO NOT EDIT THIS PART)
nodePtr->link = NULL; //(DO NOT EDIT THIS PART)
return nodePtr; //(DO NOT EDIT THIS PART)
}

struct node* head;
void reverse(NODE* prev, NODE* curr) {
if (!curr){
return;
}
if (!curr->link) {
head=curr;
curr->link=prev;
return;
}
  
reverse(curr, curr->link);
curr->link=prev;
}

void display() {
  
struct node* value;
value = head;
  
while(value!=NULL) {
printf("%d ",value->dataPtr);
value=value->link;
}
printf("\n");
}

int main()
{
NODE* head=NULL;
  int x;
  
printf("Enter 10 numbers to reverse ");
for(int i=0; i<9; i++) {
scanf(" %d ",&x);
}
head=createNode(x);

reverse(NULL, head); //reverse list recursively
  
printf("Reverse Linked List is ");
display();
  

return 0;
}

In: Computer Science

Re-do Problem 2, but now implement the following method: public static void deleteEvenNumbers() This method must...

Re-do Problem 2, but now implement the following method: public static void deleteEvenNumbers() This method must delete all even numbers in the chain pointed to by aList, while preserving the original of the remaining numbers. For example, if aList is this list: 3, 9, 2, 10, 5, 6; the list becomes after calling the method as follows: 3, 9, 5.

useing netbeans

In: Computer Science

We want to make Error detection method, the even parity method. the input is 3bit binary,...

We want to make Error detection method, the even parity method. the input is 3bit binary, output is 1 bit of even parity bit.

if the 3 bit is 111 or 000 it is disable, other else are enable. we have to add this in even parity method.

if it is enable, the output 1 bit of even parity method will show.

if it is disable the output will be 0

(the gate must be maximum 4 bit input, and the number of gates must be at least)

draw the circuits

In: Computer Science