Questions
On your own words, define different types of Computer Networks and Network Topology and discuss how...

On your own words, define different types of Computer Networks and Network Topology and discuss how it work.

In: Computer Science

Write a C program that reads an integer value. Assume it is the number of a...

Write a C program that reads an integer value. Assume it is the number of a month of the year; print out the name of that month (Hint: months need to be captured in an array).

In: Computer Science

Python Programming Exercise Scenario: Write a program that asks the user to enter scores the number...

Python Programming Exercise Scenario:

Write a program that asks the user to enter scores the number is based on what the user wants to enter. The program will display a letter grade and associated message for each score, based on the table below, and the average score. The program will not contain any repeated code and have a minimum of two functions besides Main.

Score                Letter Grade             Message

90 – 100                       A                     Excellent work

89 – 80                         B                     Nice job

79 – 70                         C                     Not bad

69 – 60                         D                     Room for improvement

Below 60                      F                      Go back and review

In: Computer Science

How would you make the shell script MyScript.sh a standalone executable (i.e. avoid to use source)?

How would you make the shell script MyScript.sh a standalone executable (i.e. avoid to use source)?

In: Computer Science

Define a problem with user input, user output, While Statement and some mathematical computation. Write the...

Define a problem with user input, user output, While Statement and some mathematical computation. Write the pseudocode, code and display output.

In: Computer Science

Develop a flowchart for ONE of the processes below and discuss the non-value added activities, bottlenecks,...

Develop a flowchart for ONE of the processes below and discuss the non-value added activities, bottlenecks, duplication or delays. Make recommendations to improve the process.

  • Registration for classes
  • Financial aid or loan application
  • Making an auto purchase
  • Making a purchase on Internet
  • Registration to a hospital
  • Organize an event or a party

In: Computer Science

Find article about (Implementing DHCP) Included with the summary must be a source notation providing the...

Find article about (Implementing DHCP)

Included with the summary must be a source notation providing the following information:

-Name of the Article

-Author

-Source information (Publication Name, URL, Article publish date)

In: Computer Science

Write a function int strlen(char s1[]) which returns the length of the char array s1.

Write a function int strlen(char s1[]) which returns the length of the char array s1.

In: Computer Science

Problem Title : Magical Cave Lili, a great magician, has a mission to enter a cave...

Problem Title : Magical Cave

Lili, a great magician, has a mission to enter a cave to get treasure inside. The cave only has 1 path without branches. But the cave is not safe because there are some traps inside that can reduce Lili’s life points. But in addition to traps, the cave also has potions that can increase Lili’s life points. Before entering the cave, Lili casts magic that can reveal all the traps and potions inside the cave. But before entering the cave, Lili must prepare her life points first because in the cave because Lili cannot use her magic to add life points or destroy the traps. What is the minimum life point that Lili must prepare so that her life point is always positive during the trip inside the cave.

Note: if Lili's point drops to 0 or negative before entering and during the trip inside the cave, then Lili is declared dead.

Format Input

There are T test cases. Each testcase contains an integer N which represents the length of the cave. On the next line there are N numbers represents the value of trap and potion. Traps are marked with numbers that are negative and potions are marked with numbers that are positive.

Format Output

Output T line with format “Case #X: ”, where X represents the testcase number and Y represents the initial life points that Lili has to prepare.

Constraints

  • 1 ≤ T ≤ 100
  • 1 ≤ N ≤ 5000
  • −108 ≤ Ai ≤ 108, which Ai is the value of each traps and potions.

Sample Input & Output (standard input & output)

2
5
1 2 -3 4 -5
Case #1: 2
5
-1 -1 -1 -2 9
Case #2: 6

Explanation
In case 1, the minimum life points that Lili must prepare is 2. With a simulation like the following.
At position 1, Lili’s life point increased by 1 to 3.
At position 2, Lili’s life point increased by 2 to 5.
At position 3, Lili’s life point is reduced by 3 to 2.
At position 4, Lili’s life point increased to 4 to 6.
At position 5, Lili’s life point is reduced by 5 to 1.
In each position Lili’s life points are Positive so the answer is Valid. if the initial life
prepared by Lili is 1, then Lili will die in fifth position with a life point of 0.

In: Computer Science

Java question: Write a method printCombinationR(int[] array, int r) that generates and prints all possible combinations...

Java question: Write a method printCombinationR(int[] array, int r) that generates and prints all possible combinations of r elements in array of size n,. For example, if input array is {1, 2, 3, 4} and r is 2, then output should be {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4} and {3, 4}.

I kind of know how to write this with DFS with four or five formal parameters, however I don't know how to solve it after the formal parameters are restricted by only using (int[] array, int r).

In: Computer Science

Write the script in python to carry out the z- normalization on "Salary", if the Mean...

Write the script in python to carry out the z- normalization on "Salary", if the Mean is 79.6 and standard deviation is 14.4152. Assume the data is read from a csv file titled "Comp_sal_2014.csv".

In: Computer Science

When logged in as the root user, how often would you do the command rm -rf...

When logged in as the root user, how often would you do the command rm -rf / ?

In: Computer Science

Discuss the types of distribution transparency as they may benefit to various business contexts. Provide illustrative...

Discuss the types of distribution transparency as they may benefit to various business contexts. Provide illustrative examples.

Database Management Question

In: Computer Science

What are the major drawbacks of static allocation? How does a hybrid allocation scheme consisting of...

What are the major drawbacks of static allocation? How does a hybrid allocation scheme consisting of static allocation, stack-based allocation, and heap based allocation solve the problem

In: Computer Science

0,101 x 22 to Scientific notation

0,101 x 22 to Scientific notation

In: Computer Science