Questions
Java Class Create a class with a main method. Write code including a loop that will...

Java Class

Create a class with a main method. Write code including a loop that will display the first n positive odd integers and compute and display their sum. Read the value for n from the user and display the result to the screen.

In: Computer Science

Jerry plans on registering for five classes this semester: English Composition, Physics, Physics Lab, Java, and...

Jerry plans on registering for five classes this semester: English Composition, Physics, Physics Lab, Java, and Music Appreciation. However, he is not sure if these classes are being offered this semester or if there will be timing conflicts. Also, two of the classes, Physics and Physics Lab, must be taken together during the same semester. Therefore, if he can register for only one of them, he will not take either class. If, for any reason, he cannot register for a class, he will identify and register for a different class to take its place and that fits his time schedule. Use a decision table that shows all rules to represent this logic.

In: Computer Science

Use a diagram to describe a home network, include all connections and nodes, all wired and...

Use a diagram to describe a home network, include all connections and nodes, all wired and wireless connected devices.

In: Computer Science

An Armstrong number is an integer such that the sum of the cubes of its digits...

An Armstrong number is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371.

Write a C function to print all Armstrong numbers between a given interval. Then write a C program to keep reading two integers and print all Armstrong numbers between these two integers by calling that function.

In: Computer Science

Ex : Each of the following questions is about event processing. Mark T if the question...

Ex : Each of the following questions is about event processing. Mark T if the question is valid, otherwise F.
(1) Subclasses of EventObject on components handle special types of events such as action, window, component, mouse, and key events ( )
(2) Source objects activate events, event-related objects handle events, and event-related objects are called risers ( )
(3) For all event types, the riser interface is usually named XListener for Xevent (except for MouseMotionListener) ( )
(4) e.getSource() may be used to determine if the source object is a button, check box, or radio button ( )
(5) Since the riser class is not shared by other applications, it is appropriate to be defined inside the frame as an internal class ( )
(6) Since all methods within the riser interface are abstract and require implementation of all methods, classes called adapters are provided for convenience ( )

Please solve the problem. and Please Let me explain the process.

Thank you:)

In: Computer Science

Draw or describe the memory space for a process. What happens in the New state? List...

  1. Draw or describe the memory space for a process.
  2. What happens in the New state?
  3. List three general categories of information in a process control block.
  4. Why are two modes (user and kernel) needed?

Please show all work and thought process

In: Computer Science

Using Pass-by-Reference for Out Parameters Write a single function that counts the number of positive, negative...

Using Pass-by-Reference for Out Parameters Write a single function that counts the number of positive, negative and zero values in an integer array. Return the number of positive values, the number of negative values and the number of zero values. Use pass-by-reference to use parameters as “out parameter”: these are variables passed by reference into a function with the purpose of holding the result of the function after it terminates. Your function should have the following declaration: void countPosNegZero(int array[], int numElements, int &positive, int &negative, int &zero); where array is the array with the values, numElements is the number of elements in the array, positive will hold the number of positive values in the array, negative will hold the number of negative values in the array and zero will hold the number of zero values in the array. Add a test-main function that tests your program with several different arrays (use the rand() method to create arrays with random values ranging over negative and positive values).

c++

In: Computer Science

(a) Find a canonical cover for the FDs of the following table. (b) Put the table...

(a) Find a canonical cover for the FDs of the following table. (b) Put the table into 3NF.

T(A, B, C, D, E)

B --> CD

CD --> A

BC --> A

CD --> E

B --> E

In: Computer Science

do the following SQL programming tasks: Use the CREATE TABLE statement to build the sample table...

do the following SQL programming tasks:

  • Use the CREATE TABLE statement to build the sample table (MODULE)
  • Use the INSERT INTO statement to populate it - use either the data in the image or your own
  • Write an SQL query to display the whole populated table
  • Write an SQL query to display certain combinations of columns (use your imagination)
  • Write an SQL query to extract certain combinations of columns and rows (imagination again!)

In: Computer Science

hi, can you draw me a cloud using turtle from python. please send me the codes

hi, can you draw me a cloud using turtle from python.

please send me the codes

In: Computer Science

What is the difference between port preservation and port forwarding? Can you explain it in plain...

What is the difference between port preservation and port forwarding? Can you explain it in plain language?

Thank you so much.

In: Computer Science

How can I create a hexadecimal number in c code from a specific array. For example...

How can I create a hexadecimal number in c code from a specific array. For example I have a[4]={2,5,7,4}; and I want to create this number : 0x004725 by adding 1 number at a time using << operation. Thank you!

In: Computer Science

2.7 Implement an environment for a nxm rectangular room, where each square has a 5% chance...

2.7 Implement an environment for a nxm rectangular room, where each square has a 5% chance
of containing dirt, and n and m are chosen at random from the range 8 to 15, inclusive.


2.8 Design and implement a pure reflex agent for the environment of previous problem 2.7, ignoring
the requirement of returning home, and measure its performance. Explain why it is impossible
to have a reflex agent that returns homeland shuts itself off. Speculate on what the best possible
reflex agent could do. What prevents a reflex agent from doing very well?


2.9 Design and implement several agents with internal state. Measure their performance. How
close do they come to the ideal agent for this environment?


2.10 Calculate the size of the table for a table-lookup agent in the domain of problem 2.7 .
Explain your calculation. You need not fill in the entries for the table.


2.11 Experiment with changing the shape and dirt placement of the room, and with adding
furniture. Measure your agents in these new environments. Discuss how their performance
might be improved to handle more complex geographies.

In: Computer Science

By adding bar codes to trucks, utility meters, heart monitors, vending machines, and other equipment they...

  1. By adding bar codes to trucks, utility meters, heart monitors, vending machines, and other equipment they sell, companies can track and manage their products remotely.

True/False

  1. IoT combined with big data analytics can help manufacturers improve the efficiency of their machinery and minimize energy consumption, which often is the manufacturing industry’s second-biggest expense.

True/False

  1. Big data are what high-volume, mostly text data are called.

True/False

  1. Big data tend to be unstructured and less time-sensitive than traditional (or small) data.

True/False

  1. Enterprises use real-time data from tweets and sensors to gain insight into their customers’ interests and preference.

True/False

  1. Big data analytics has increased the demand for data scientists.

True/False

  1. From an IT perspective, the mobile devices form the core; the cloud forms the endpoints; and social networks create the connections between the cloud and mobiles.

True/False

  1. At LinkedIn, data analytics lead to a significant increase in the number of connections members created with other members.

True/False

  1. Cloud computing can often make it difficult to deploy tools that can scale on demand to serve a growing number of users.

True/False

  1. In the simplest terms, a process consists of activities that convert inputs into outputs by doing work.

True/False

  1. Designing an effective process can be complex because you need a deep understanding of the inputs and outputs, how things can go wrong, and how to prevent things from going wrong.  

True/False

  1. Elapsed time is the time required to complete a given process.

True/False

  1. Informal processes are needed for the situations involving safety, security, or compliance.

True/False

  1. An effective informal business process documents who will perform the tasks; what materials to use; and where, how, and when the tasks are to be performed.

True/False

  1. Because a company’s success depends on the efficiency of its business processes, even small improvements in key processes can have a significant payoff.

True/False

  1. Methods and efforts to simply automate existing processes are referred to a business process reengineering, or BPR.

True/False

  1. Having a competitive edge means possessing an advantage over your competition.

True/False

In: Computer Science

linux Now use the date command and use redirection to APPEND today's date to the INSERTHERE...

linux

Now use the date command and use redirection to APPEND today's date to the INSERTHERE file created (you want to append to the end of the file, not overwrite your name). What command did you use to do this?

In: Computer Science