Questions
Write a function that takes a list of integers as input and returns a list with...

Write a function that takes a list of integers as input and returns a list with only the even numbers in descending order (Largest to smallest)

Example: Input list: [1,6,3,8,2,5] List returned: [8, 6, 2]

Do not use any special or built in functions like append, reverse etc.

In: Computer Science

Open Source Software provides a means of re-using software. All of the following are true of...

Open Source Software provides a means of re-using software. All of the following are true of Open Source Software except:

A.

The developer of the open source software does not own the code and thus cannot put restrictions on how it is used by others.

B.

Volunteers participate in the further development of the system.

C.

In an open-source development, the source code of a software system is made publicly available.

D.

Any contributor to an open source development may fix bugs and add new features to a system

E.

Open Source software can have several licensing methods such as GPL, LGPL, and BSD.

In: Computer Science

Program using java Take user input and give corresponding output. A user is considering different options...

Program using java

Take user input and give corresponding output.

A user is considering different options of operating air conditioning.

Depending on room temperature (here, room temperature is given by user), this program should give different instructions.

There are three scenarios.

- If temperature is above 90, the program should output “cooling”.

-If the temperature is below 70, the program should output “heating”.

-Otherwise, the program should output “stopped”.

For example, if user enters “95”, this is how the program should look like:

Please enter room temperature: 95

Air conditioning is cooling.

In: Computer Science

You are offered with a partial specification of a 4x5 2-D array. The partial specification is...

  1. You are offered with a partial specification of a 4x5 2-D array. The partial specification is shown as follows. (Only the first row and the first column are specified.)

-1   -2   -3   -4   -5

-6

-11

-16

You are required to write a C program to perform two tasks.

  1. First, to write a sequence of C codes to generate the values for the unspecified elements in the 4x5 2-D array. The array is called A. The row index is denoted by i, and column index is denoted by j. i, j starts from 0. Namely, for first row, i = 0. For first column, j = 0. The values of the unspecified elements are defined as

A[i][j] = A[i-1][j]*A[i][j-1] for i > 0 and for j > 0.

After all elements in the 4x5 2-D array are fully specified, print out the content of the entire 4x5 2-D array according to the format shown below.

In: Computer Science

Explore jobs related to your area of study in relationship to the Information Technology field. Pick...


Explore jobs related to your area of study in relationship to the Information Technology field. Pick an architecture category from computer, information, network, software, technology, and security architecture. Select three positions which would indicate a career path.

Complete a 2-3-page paper with an abstract and conclusion (plus cover sheet and reference page) that discusses the job duties and skills necessary for the position in the current job market. You should include the requirements such as experience, education, certifications, along with salary ranges. This can be illustrated in a table of the positions with criteria for an easy visual comparison.

Discuss related professional organizations, career development resources and other methods to stay current in the position with changes to technology and progress through the career path.

Specific questions or items to address:

You need to discuss the job duties and skills necessary for the position in the current job market. You should include the requirements such as experience, education, certifications, along with salary ranges. This can be illustrated in a table of the positions with criteria for an easy visual comparison.

Discuss related professional organizations, career development resources and other methods to stay current in the position with changes to technology and progress through the career path.

In: Computer Science

2. Caches are commonly implemented in SRAM, and the cache layout impacts the total amount of...

2. Caches are commonly implemented in SRAM, and the cache layout impacts
the total amount of SRAM required to implement the cache. For the following
two problems, assume the caches are byte addressable and addresses and
data words are both 32 bits.


a. How many total bits are required to implement a 128 KiB direct-mapped
cache with 4-word blocks? [25 points]


b. How many total bits are required to implement a 128 KiB direct-mapped
cache with 32-word blocks? [25 points]

In: Computer Science

Writing method in Java Given a string, return the sum of the numbers appearing in the...

Writing method in Java

Given a string, return the sum of the numbers appearing in the string, ignoring all other characters. A number is a series of 1 or more digit chars in a row. (Note: Character.isDigit(char) tests if a char is one of the chars '0', '1', .. '9'. Integer.parseInt(string) converts a string to an int.)


sumNumbers("abc123xyz") → 123
sumNumbers("aa11b33") → 44
sumNumbers("7 11") → 18

In: Computer Science

What is a deadlock in SQL Server transaction processing? Are they preventable, if so how?

What is a deadlock in SQL Server transaction processing? Are they preventable, if so how?

In: Computer Science

MATLAB QUESTION HOW TO FOLLOW TO EACH STEPS PLEASE GIVE TO EXPLAIN EACH SECTION THANKS! %...

MATLAB QUESTION

HOW TO FOLLOW TO EACH STEPS PLEASE GIVE TO EXPLAIN EACH SECTION THANKS!

% Section 1

clear variables;
close all;
clc;

% Use the "Run Section" button as you complete this script

% Given the matrix A and the vector B

A = [ 1 -4 2
-2 3 3
5 2 1];

b = [ -2
3
5];

% Calculate the product of A x B in the space below (grade = 10 points)


% Calculate the product of inverse(A) x B in the space below (10 points)


% Calculate c = the numeric value in the second row and
% first column of matrix [A] in the space below (10 points)

%% Section 2

clear variables;
close all;
clc;

% Create a variable x = range of 10 numbers
% between -pi and pi (radians) (grade = 10 points)

% Set y = sin(x) in the space below (10 points)


% Set z = x * sin(x) in the space below (10 points)
% HINT: You will need the .* for this operation instead of *

% Plot y and z versus x between the "hold on" and "hold off" commands
% Label the x and y axes properly and use appropriate units (10 points)
% use xlabel('Angle (Radians)')
% use ylabel('sin(x) and x sin(x)')
% Plot y using a blue line with circular markers (10 points)
% On the same plot, include z using a red line with triangular margers
% (1 point)
% use legend('sin(x)','x sin(x)') (10 points)
hold on

hold off


% After completing your script, click the "PUBLISH" tab
% Click the button in the "PUBLISH" tab, which is labeled Publish  

In: Computer Science

Explain the difference between the CPU and I/O cycles that make up a program. Can a...

  1. Explain the difference between the CPU and I/O cycles that make up a program.
  2. Can a process run during an I/O cycle?
  3. Explain how the Process Control Block (PCB) is used to manage a process within the system.

In: Computer Science

4. Space-multiplexed sharing is the division of a resource into two or more distinct units and...

4. Space-multiplexed sharing is the division of a resource into two or more distinct units and then the allocation of the individual units to processes. Time-multiplexed sharing is when one process can use the entire resource for a period of time and then another process uses it at a later time. Identify the following as either space-multiplexed sharing or time-multiplexed sharing. Can the usage of some resources be both space-multiplexed sharing and time-multiplexed sharing depending on the resource is used?

a. The land in a residential subdivision

b. A personal computer

c. A whiteboard in a classroom

d. A bench seat on a bus

e. A single-user file in UNIX

f. A printer on a timesharing system

g. The heap in the C/C++ runtime system

In: Computer Science

Exercise 2. Automate the boring stuff, page 77, Input Validation. Add try and except statements to...

Exercise 2. Automate the boring stuff, page 77, Input Validation. Add try and except statements to the previous project to detect whether the user types in a noninteger string. Normally, the int() function will raise a ValueError error if it is passed a noninteger string, as in int('puppy'). In the except clause, print a message to the user saying they must enter an integer.

THis is the previous project

#function definition
def collatzSequence(number):
#
    if number % 2 == 0:
        print((number) // 2)
        return number // 2

    else:
        nextNumber = 3*(number)+1
        print(nextNumber)
        return nextNumber

n = input("Please input an integer: ")
while n != 1:
    n = collatzSequence(int(n))

In: Computer Science

Implement and test a TaskList application in Java that will allow a client to manage information...

Implement and test a TaskList application in Java that will allow a client to manage information about daily tasks.  A task has a task name, is scheduled on a specific day of the week and can have a comment attached to it. Together, the task name and day uniquely identify a task. There may be tasks with the same name scheduled for different days of the week. The application should allow the client to start with an empty TaskList and then manage it by adding, deleting, searching and displaying information about tasks from the TaskList according to the specifications below.

Your application should offer the client a menu with the following operations:

                0. Exit.

1. Add a task.

                2. Delete a task on a specified day.

                3. Delete a specified task.

                4. Print content of TaskList.

                5. Search day for tasks.

Here is the specification of the functionality of the TaskList application:  

1. Add a task: Adds information about a task to the TaskList. Requests the following input from the client: day, task name, and comment. If there is already a task with this name scheduled for that week day, the task cannot be added and the user should be notified of this fact.

2. Delete a task on a specified day:  Deletes a specified task on a specified day from the TaskList. Requests the following input from the client: task name and day. The user should be notified if there is no task with that name scheduled for that day in the TaskList.

3. Delete a specified task. Deletes a specified task from any day it may appear in the TaskList. Requests the following input from the client: task name. The user should be notified if there is no task with that name in the TaskList.

4. Display content of TaskList: Displays information about all tasks in the TaskList. Requests the following input from the client: None. For each task in the TaskList, displays task name, day it is scheduled on and comment attached to it.

5. Search day for tasks: Displays information about the tasks registered for a specified day. Requests the following input from the client: day.

Hint:  Make sure that you use object oriented design in your solution. In future applications the TaskList class may be used in an application used to manage several clients’ task lists. You should be able to extend your design without changes to the TaskList.

In: Computer Science

You are an apple farmer who sell apples by the boxes. Each box contains 6 Apples....

You are an apple farmer who sell apples by the boxes. Each box contains 6 Apples. You have 30 boxes of apples. Price of each box is $20. Using cout object as studied in the class and by use of algorithm(s), display following in the format as written below:

1. Total number of apples in all boxes are ______________
2. Total apples will be sold for $_____________________

Upload your assignment here.

using python and no copy from other assingment and it has to be only pseduco

In: Computer Science

Discuss some factors that must be considered in determining the process maximum capacity in a multiprogramming...

Discuss some factors that must be considered in determining the process maximum capacity in a multiprogramming environment.

In: Computer Science