Questions
Please complete in only C++, using loops Assignment: For this assignment you’ll be designing a program...

Please complete in only C++, using loops

Assignment: For this assignment you’ll be designing a program which can take the input of a decimal number and a numerical base, and convert the decimal number to that base. For example, if given the decimal number seven and the base two, your program should output it as 111, which is how seven is represented in binary. Another example, 8,943 in base 10, is 13,236 in base 9.

You’ll need to perform these operations on the following combinations:

A: 15, base 2.

B: 38, base 16.

C: 54, base 6.

D: 19, base 8.

E: 27, base 3.

In: Computer Science

write a python program, please. Create a program that uses the Gettysburg Address as input and...

write a python program, please.

Create a program that uses the Gettysburg Address as input and outputs a list

of tuples for every two words. For example: [('Four', 'score'),('and',

'seven'), ...].

In: Computer Science

write a C++ Program for matrix operations which include: 1. constructor in the form-- matrix::matrix(int numRows,...

write a C++ Program for matrix operations which include:

1. constructor in the form-- matrix::matrix(int numRows, int numColumns)

2. Implement a setter method of the form: -- void matrix::setElement(int row, int col)

3 Implement a getter method of the form: -- float matrix::getElement(int row, int col)

4. Make a threaded version of the matrix/matrix addition method.

5. Make a threaded version of the matrix/scalar multiplication method.

6. Matrix/matrix addition methods of the form: -- matrix matrix::matrixAdd(matrix inMatrix) // non-threaded version

matrix matrix::matrixAdd_threaded(matrix inMatrix) // threaded version

7. Matrix/scalar multiplication methods of the form: -- matrix matrix::scalarMult(float scalar) // non-threaded version

matrix matrix::scalarMult_threaded(float scalar) // threaded version

8. The vector reduce operation method should be of the form:

float matrix::reduceVec()

The reduce operation must use parallelization with the following algorithm. Use eight threads to compute this. Begin by splitting the vector (a 1xM matrix with one row and M columns) into 8 parts. Compute the sum of those parts and store them. Then, launch eight threads to sum the sums. Do this until you have a single number remaining.

In: Computer Science

What are the four keys groups of issues in software project development? Describe each of the...

  1. What are the four keys groups of issues in software project development? Describe each of the groups with examples

In: Computer Science

Please do not use vectors or any previously posted code Write a C++ program which reads...

Please do not use vectors or any previously posted code

Write a C++ program which reads in a list of process names and integer times from stdin/cin and simulates round-robin CPU scheduling on the list. The input is a list of lines each consisting of a process name and an integer time, e.g.

ProcessA 4

ProcessB 10

Read line by line until an end-of-transmission (^d) is encountered. You should read the list and represent it in a linked list data structure. You should use the alarm system call to schedule a timer interrupt every 3 seconds. The interrupt handler should pick the next process from the process list, write a message saying how much time it has left to execute,

i.e.

ProcessA 4

Then update its time left to execute by subtracting 3 seconds and return it to the end of the queue. If the process had no time left to execute, you should write a message saying this

i.e.

ProcessA Finished

And delete this process from the linked list.

If there are no processes left to execute, write a message saying

No processes left

And terminate your program.

If further information is needed please specifically comment what is needed.

In: Computer Science

Imagine that you are working as manager of the Information Technology Department, ASCS College, King Saud...

Imagine that you are working as manager of the Information Technology Department, ASCS College, King Saud University, Riyadh, Saudi Arabia. Write a business letter (Alternative block format) to Sales Manager, Dell Company situated at the following address

Dell Computer Corporation,
One Dell Way Round Rock,
Texas 78682,
United States of America.

Requesting them to send the price quotation of 100 workstations with the following configuration.

Precision T3630;Tower Workstation; Intel Xeon E-2174G, 4 Core HT, 8MB Cache, 3.8Ghz, 4.7GHz; Windows 10 Pro 64bit English.

In: Computer Science

Using JAVA: This assignment is about aggregation and class collaboration. You will create several Classes that...

Using JAVA:

This assignment is about aggregation and class collaboration.

You will create several Classes that will be part of an overall class named InstrumentDisplay. The classes are FuelGage, Odometer, MilesSinceLastGas, and CruisingRange.

The FuelGage should assume a 15 gallon tank of gasoline and an average consumption of 1 gallon every 28 miles. It should increment in 1 gallon steps when you "add gas to the tank". It should decrement by 1 every 28 miles. It should display its current value.

You should also have a display that shows how many miles traveled since you last added gasoline, MilesSinceLastGas, and a display for the estimated number of miles until you run out of gasoline, the CruisingRange.

The Odometer should keep track of total mileage from 0 to 999,999. After that it turns over back to 0. Make sure your code allows for this rollover.

The overall class is to be named InstrumentDisplay. You may create the various outputs using System.out or JOptionPane. Make sure that account for both filling and emptying the tank. While your odometer will display in 1 mile increments, you should keep track of mileage internally in one tenth of a mile increments for purposes of computing gasoline remaining in the FuelGage and miles in the CruisingRange

Please make sure you comment your code thoroughly.

The code should be nicely formatted and should use proper variables.

In: Computer Science

We have discussed a number of major software development processes (eg Waterfall V-Shape, Spiral, RUP, and...

  1. We have discussed a number of major software development processes (eg Waterfall V-Shape, Spiral, RUP, and Agile) in class. They all have various pros and cons. What are the commons key stages of activities among all these processes? Describe each of these stages with example activities.

Start with a diagram and explain each stage accordingly

In: Computer Science

IN JAVA Minimal Documentation Required (no javadoc) Purpose The purpose of this assignment is to introduce...

IN JAVA

Minimal Documentation Required (no javadoc)

Purpose

The purpose of this assignment is to introduce you to basic operations on a linked list.

Specifics

Design a program that generates a linked list of randomly generated Integer objects. Present a menu at program start that gives the user the following options (most of these options will have corresponding methods in a Linked List class):

1. Create a new list. The size will be specified by the user, make sure a non-negative value is entered. If there is a pre-existing list when this option is chosen, make sure you delete the contents of that list before creating your new list.

2. Sort the list. How you implement this is up to you. You can insert items in the list such that the list is always in sorted order or you can write a sort routine. You may not call a sort routine provided by the Java API.

3. Print the list (to the screen), one number per line.

4. Print the list in reverse order (to the screen), one number per line.

5. Generate a sub-list that contains all the even numbers in the current list. This list should be returned and the contents should be displayed (to the screen), one number per line.

6. Print the contents of every "nth" node in the list. Obtain the "n" from the user, ensure it is greater than 0.

7. Delete node(s) containing an integer value entered by the user. You should report how many were deleted to the user.

8. Delete the contents of the current list.

9. Quit

You may use any linked list implementation you wish (singly linked, doubly linked, dummy head node, circular).

In addition to your LinkedList class, include a driver file called ListTester that will contain the menu and anything else you deem necessary (perhaps a utility to generate random Integers...).

Keep things modular and encapsulate your data properly - do not let anything outside the Linked List class have direct access to any of the nodes.

Do not accept Invalid input of any type from the user and do not let user input crash your program.

PLEASE IMPLEMENT ALL

In: Computer Science

Using java: Write a class called StringAlternateSorting what it does: 1. ask user for one String...

Using java:
Write a class called StringAlternateSorting

  what it does:

  1. ask user for one String (String1) (must be sorted)
  2. ask user for second String (String2) (must be sorted)

  3. Then prints all the characters of two previous Strings, in such a
  way that they are sorted (see examples below).

  4. consider the possibility that strings are of different sizes, one
  or both can be empty, etc.

  5. strings can contain any kind of characters as long as they are sorted

EXAMPLES

% java StringAlternateSorting.java
enter first string: 1357
enter second string: 2468
12345678
% java StringAlternateSorting.java
enter first string: 1
enter second string: 2345678
12345678
% java StringAlternateSorting.java
enter first string: 23456
enter second string: 1
123456
% java StringAlternateSorting.java
enter first string: 12345
enter second string: 9
123459
% java StringAlternateSorting.java
enter first string: 9
enter second string: 12345
123459
% java StringAlternateSorting.java
enter first string: 19
enter second string: 2345
123459
% java StringAlternateSorting.java
enter first string: 2345
enter second string: 19
123459
% java StringAlternateSorting.java
enter first string: 
enter second string: 12345
12345
% java StringAlternateSorting.java
enter first string: 12345
enter second string: 
12345
% java StringAlternateSorting.java
enter first string: acef
enter second string: bdghi
abcdefghi
% java StringAlternateSorting.java
enter first string: 12345
enter second string: 13579
1123345579
% 
  

In: Computer Science

Determine the types of data generated by a forest fire detection system? Describe the alternative approaches...

Determine the types of data generated by a forest fire detection system? Describe the alternative approaches for storing the data. What type of analysis is required for forest fire detection from the data collected?

plz answer this question in elaborated manner

In: Computer Science

Imagine a new kind of flip-flop called a J N flip-flop which has two inputs J...

Imagine a new kind of flip-flop called a J N flip-flop which has two inputs J and N. Input J behaves like the J input of the J K flip-flop, and input N behaves like the complement of the K input of a J K flip-flop (N=K’). Derive the characteristic table and excitation table of the J N flip-flop. Show that a D flip-flop can be constructed from a J N flip-flop by connecting its two inputs (J and N) together.

In: Computer Science

Write a C program that accepts a port number as a command line argument, and starts...

Write a C program that accepts a port number as a command line argument, and starts an HTTP server. This server should constantly accept() connections, read requests of the form:
GET /path HTTP/1.1\r\n\r\n
read the file indicated by /path, and send it over the "connect" file descriptor returned by the call to accept().

In: Computer Science

EXPLAIN ANS PLEASE: PYTHON 1. s = 'abc' print(s[0:] + s[-2:2] + s[:1]) 2. def mirrorOnWheels(s):...

EXPLAIN ANS PLEASE:

PYTHON

1. s = 'abc'
print(s[0:] + s[-2:2] + s[:1])

2. def mirrorOnWheels(s):
prev = 0
for current in range(1, len(s) - 1):
prev = current - 1
next = current + 1
if s[prev] == s[next]:
break
else:
continue
return 0
return prev
s = 'Good decision!'
print(mirrorOnWheels(s))

3. mixture = {1:[1, 2, 0], 2:[2, 0, 1], 0:[0, 1, 2]}

print(mixture[2][2])

4. noOddHeroes = []
heroes = ['superman', 'batman', 'aquaman']
for hero in heroes:
if len(hero) % 2 == 0:
noOddHeroes.append(hero)
print(noOddHeroes)


5. candyOnStick = 'lolli lolli lolli lollipop lollipop'
wordList = candyOnStick.split('i')
d = {}
for word in wordList:
if word not in d:
d[word] = 1
else:
d[word] += 1
print(len(d))

6. def oldMcDonald(farm):
result = 0
for animal in farm:
if animal[0] in farm[animal]:
result += 1
return result
farm = {'cow':'moo', 'duck':'quack', 'cricket':'chirp'}
print(oldMcDonald(farm))

7. def analyzer(fileName):
inputFile = open(fileName)
line = inputFile.readline()
inputFile.close()
return line.count(',')
quotes = open('alice.txt', 'w')
quotes.write('Now, here, you see, it takes all the running\n')
quotes.write('you can do, to keep in the same place.\n')
quotes.close()
print(analyzer('alice.txt'))

In: Computer Science

Instructions Use your solution from Programming Assignment 5 (or use your instructor's solution) to create a...

Instructions

Use your solution from Programming Assignment 5 (or use your instructor's solution) to create a modular Python application. Include a main function (and a top-level scope check),and at least one other non-trivial function (e.g., a function that deals the new card out of the deck). The main function should contain the loop which checks if the user wants to continue.

Include a shebang, and ID header, descriptive comments, and use constants where appropriate.

Sample Output (user input in red):

Welcome to the card dealer!
Here is your first card:
5 of hearts
Would you like another card? (y or n) y
King of hearts
Would you like another card? (y or n) y
Jack of clubs
Would you like another card? (y or n) y
King of spades
Would you like another card? (y or n) n
final hand value = 35
final hand: ['5 of hearts', 'King of hearts', 'Jack of clubs', 'King of spades']

Submission

Attach and submit your Python file to this assignment.

In: Computer Science