***** please don't copy and paste and don't use handwriting *****
Q3: Explain how Internet technologies are involved in developing a process in one of the functions of the business? Give an example and evaluate its business value.
Q4:
What are the basic differences between HRM, Intranet and Internet in terms of Domain and Network Communication Scope?
HRM Intranet |
HRM Internet |
|
Domain |
||
Network Communication Scope |
In: Computer Science
For c++, please do not recycle other peoples code as they do not satisfy the requirements.
Write a program for sorting a list of integers in ascending order using the bubble sort algorithm.
Requirements
Implement the following functions:
Here is the content of the file data.txt.
9
8
4
7
2
9
5
6
1
3
Then reimpelment a function called bubble_sort that has the following prototype.
bubble_sort(int *array, int size, pointer to a function)
Pre condition
array - a pointer to an array of size element.
pointer to function - a pointer to a function that compares two
values (depending on sorting in ascending order or descending
order)
Post condition
Sort the array in ascending or descending based on the the pointer
to a function.
Write the main function to perform the following:
In: Computer Science
C++ Programming
Consider an input file that lists test participants in alphabetical order and their scores. Each line has the following format:
LastName FirstName score
Load the input file into an array of structs, knowing there is a maximum of 50 participants. Output to output.txt the participants with the top 5 scores, in decreasing order of scores. Each output line should have the following format:
FirstName,LastName,score
Notes:
Example input file:
Baker Alex 90 Eaves Pat 100 Kay Ivy 100 Lamar Jay 80, O'Conor Ashton 95 Saber Alice 98 Sabin Chris 89 Valdez Daniel 99 Valko Pete 92
Example output file:
Pat,Eaves,100 Ivy,Kay,100 Daniel,Valdez,99 Alice,Saber,98 Ashton,O'Conor,95
#include <iostream>
using namespace std;
struct participant
{
string fname;
string lname;
int score;
};
int main() {
/* Type your code here. */
return 0;
}
In: Computer Science
In this PYTHON 3 program assignment, you will find a text file named WorldSeries.txt. This file contains a chronological list of the World Series' winning teams from 1903 through 2018. The first line in the file is the name of the team that won in 1903, and the last line is the name of the team that won in 2018. (Note the World Series was not played in 1904 and 1994. There are entries in the file indicating this.)
Write a program that reads this file and creates TWO dictionaries. The keys of the first dictionary are the names of the teams, and each key's associated value is the number of times the team has won the World Series. The keys of the second dictionary are the years, and each key's associated value is the name of the team that won that year.
Then display the first dictionary in a sorted one with the team won the most of times the 1st row. A sample looking could be as:
List of World Series champions:
New York Yankees : 26 Times
St. Louis Cardinals : 11 Times
Boston Red Sox : 7 Times
New York Giants : 5 Times
Pittsburgh Pirates : 5 Times
Philadelphia Athletics : 5 Times
Cincinnati Reds : 5 Times
Los Angeles Dodgers : 5 Times
Detroit Tigers : 4 Times
Oakland Athletics : 4 Times
Chicago White Sox : 3 Times
…
The program should then prompt the user to enter a year in the range of 1903 through 2018. It should then display the name of the team that won the World Series that year, and the number of times that team has won the World Series. The program should allow a user to play multiple times. Remind user how to terminate the program.
Tips:
Text file titled: WorldSeries_1903_2018.txt
contents include:
Boston Americans World Series Not Played in 1904 New York Giants Chicago White Sox Chicago Cubs Chicago Cubs Pittsburgh Pirates Philadelphia Athletics Philadelphia Athletics Boston Red Sox Philadelphia Athletics Boston Braves Boston Red Sox Boston Red Sox Chicago White Sox Boston Red Sox Cincinnati Reds Cleveland Indians New York Giants New York Giants New York Yankees Washington Senators Pittsburgh Pirates St. Louis Cardinals New York Yankees New York Yankees Philadelphia Athletics Philadelphia Athletics St. Louis Cardinals New York Yankees New York Giants St. Louis Cardinals Detroit Tigers New York Yankees New York Yankees New York Yankees New York Yankees Cincinnati Reds New York Yankees St. Louis Cardinals New York Yankees St. Louis Cardinals Detroit Tigers St. Louis Cardinals New York Yankees Cleveland Indians New York Yankees New York Yankees New York Yankees New York Yankees New York Yankees New York Giants Brooklyn Dodgers New York Yankees Milwaukee Braves New York Yankees Los Angeles Dodgers Pittsburgh Pirates New York Yankees New York Yankees Los Angeles Dodgers St. Louis Cardinals Los Angeles Dodgers Baltimore Orioles St. Louis Cardinals Detroit Tigers New York Mets Baltimore Orioles Pittsburgh Pirates Oakland Athletics Oakland Athletics Oakland Athletics Cincinnati Reds Cincinnati Reds New York Yankees New York Yankees Pittsburgh Pirates Philadelphia Phillies Los Angeles Dodgers St. Louis Cardinals Baltimore Orioles Detroit Tigers Kansas City Royals New York Mets Minnesota Twins Los Angeles Dodgers Oakland Athletics Cincinnati Reds Minnesota Twins Toronto Blue Jays Toronto Blue Jays World Series Not Played in 1994 Atlanta Braves New York Yankees Florida Marlins New York Yankees New York Yankees New York Yankees Arizona Diamondbacks Anaheim Angels Florida Marlins Boston Red Sox Chicago White Sox St. Louis Cardinals Boston Red Sox Philadelphia Phillies New York Yankees San Francisco Giants St. Louis Cardinals San Francisco Giants Boston Red Sox San Francisco Giants Kansas City Royals Chicago Cubs Houston Astros Boston Red Sox
In: Computer Science
To store the information about a city and its weather forecast, create a struct that holds the city's name (string), population (int), and a forecast array storing 7 string elements representing the city's weather in the next 7 days.
The program will then accept user input to enter the name and population of the city, then it accepts 7 string inputs to store into the forecast array.
Then the program will output the city's name, population, and forecast data.
Ex: If the inputs are:
Houston 2313000 sunny sunny sunny rainy thunderstorm sunny sunny
the function outputs:
Houston Population: 2313000 7 Day Forecast: Day 0: sunny Day 1: sunny Day 2: sunny Day 3: rainy Day 4: thunderstorm Day 5: sunny Day 6: sunny
Your program must name the struct "city" with name, population, and forecast as the corresponding member names!
Your program must define and call this function to output the city information:
in c++
In: Computer Science
A dice has 6 face values: one, two, three, four, five, and six. If you roll a dice, you will see one of them with equal opportunity. Write a java program which rolls a dice 6000 times. The ideal case is that each face value will appear 1000 times. However, your program should give slightly different numbers.
In: Computer Science
Write a program in java which calculates the total price of an item you purchased which includes sales tax. Create a Scanner object to read information from keyboard, Display prompts and get input, perform the calculation and display the Result of the program.
In: Computer Science
What is the result of the command ?
$ who | grep $USER
$ grep \$HOME economics1
$ echo u*>> economics1
$ echo ‘u*’ >> economics1
$ . economicsA
$ set noclobber
$ set -o
$ chmod +x economics2
$ spell < economics1
economic is file name
linux command
In: Computer Science
1. Explain the following:
a) Types Real Time Systems.
b) Design metrics for Real Time Embedded Systems.
2. Explain the main differences between ASIP, FPGA, PLD and ASIC.
3. Define the processor technology and compare between single purpose processor, general purpose proces- sor and application specific processor.
In: Computer Science
4. Identify the key differences between hard real-time, soft real-time and firm real-time systems. Give at least one example of real time tasks corresponding to these three categories. Identify the timing constraints in your tasks and justify why the tasks should be categorized into the categories you have indicated.
5. What is an Embedded and Real Time System?
6. Enumerate some Embedded Computers that are exists from origin of the Embedded Systems.
In: Computer Science
Code in C#
Part 1
Build a Series
class that has the following attributes and behaviors:
Attributes
1.) A name -- this can be any string value (i.e. “Firefly”)
2.) A number of episodes -- this can be any non-negative integer value
3.) An episode length -- this can be a double value, in hours, representing the length of an episode (i.e. 0.5 for a half-hour episode, or 0.37 for a 23 minute episode)
4.) A forKids attribute that holds a boolean value representing whether the show is suitable for kids. A boolean value true means the show is kid-friendly.
Behaviors
1.)Create a method named GetViewingHours that returns the total amount of hours of content for this series. This can be calculated by multiplying the number of episodes by the episode length.
2.) Create a method named PrintDetails that prints to the console the name, number of episodes, and the length of each episode.
Part 2
: In Main(), create an application that allows for the following:
1.) Output a line of text that shows the name of your Streaming Service.
2.) Prompt the user to enter a name of a series, the number of episodes in the series, the length of each episode, and whether or not the series is kid-friendly. For simplicity, assume each episode of the series has the same length.
3.) Keep prompting the user to enter more series’ information until the total viewing hours available is greater than 1000 hours. (This means your channel has ~ 2 years of content if consumed at 1.5 hours a day).
4.) After all series have been entered, print out the details of all kid-friendly series.
5.) After all series have been entered, print the name of the series with the most episodes.
6.)After all series have been entered, print the average length of each series
In: Computer Science
Task 2
We are producing two types of products, product A and product B. Product A is defective if the weight is greater than 10 lbs. Product B is defective if the weight is greater than 15 lbs. For a given product, we know its product_type and its weight. Design a program to screen out defective products. Starting the program with variable definition:
product_type = 'xxx'
weight = xxx
Hint: You need to figure out the product type first, and then check if the product is defective based on the weight. You may use a nested if statement like the following:
if product is A:
if product weight > 10:
the product is defective
else:
if product weight >15:
the product is defective
But you need to translate the English into Python codes.
As a challenge, you may also try a one-step if statement. such as :
if some condition is met:
the product is defective
else:
the product is normal
And the key is the bolded “some condition”.
In: Computer Science
Write the following Java code into Pseudocode
import java.util.*;
public class Main
{ // Searching module
public static void score_search(int s,int score[])
{ // Initialise flag as 0
int flag=0;
// Looping till the end of the array
for(int j=0;j<10;j++)
{ // If the element is found in the array
if(s==score[j])
{ // Update flag to 1
flag=1;
}
}
// In case flag is 1 element is found
if(flag==1)
{
System.out.println("golf score found");
}
// // In case flag is 0 element is not found
else
{
System.out.println("golf score not found");
}
// Modification module
public static int[] modify(int score[],int t)
{ // Initialise new score array
int newscore[]=new int[11];
// Copying the scores to the new array
for(int k=0;k<10;k++)
{
newscore[k]=score[k];
}
// storing the new score at the last position
newscore[10]=t;
// return the new score array
return newscore;
}
// main function
public static void main(String[] args) {
// Declaring the variables
int swap,i,a,b,search,temp;
// Instantiate object of Scanner class
Scanner sc=new Scanner(System.in);
// Declaring the golf score array
int score[]=new int[10];
System.out.print("Enter the golf scores:");
// Asking user to enter the golf scores
for(i=0;i<10;i++)
{
score[i]=sc.nextInt();
}
// Sorting the golf scores in ascending order
// Looping til the end of the array
for(a=0;a<10;a++)
{ // Looping from second element till the end
for(b=a+1;b<10;b++)
{ // In case first score is greater then second
score
// Swap the golf scores
if(score[b]<score[a])
{
swap=score[a];
score[a]=score[b];
score[b]=swap;
}
}
}
System.out.print("Sorted golf
scores:");
// Printing the sorted golf
scores
for(i=0;i<10;i++)
{
System.out.print(score[i]+"
");
}
System.out.println("");
System.out.println("Enter the score
to be searched:");
// Asking user to enter the golf
score to be searched
search=sc.nextInt();
// Calling the Searching
module
score_search(search,score);
System.out.println("Enter the new
score:");
// Asking user to enter the golf
score to be added
temp=sc.nextInt();
// Printing and calling the
Modification module
System.out.println("Modified golf
score:"+Arrays.toString(modify(score,temp)));
}
}
In: Computer Science
What is the CIDR for Each ?? Please Explain.
Demilitarized Zone (DMZ) Network Segment (10.252.1.x)
Internal Servers & Storage Network Segment (10.252.5.x)
Marketing Network Segment (10.252.7.x)
Financial Advisors Network Segment (10.252.2.x)
Human Resources (HR) Network Segment (10.252.9.x)
Information Technology (IT) Network Segment (10.252.3.x)
Shipping Network Segment (10.252.8.x)
Receiving Network Segment (10.252.6.x)
Operations (OPS) Network Segment (10.252.4.x)
In: Computer Science
Please write the answer on a computer not on a paper
I'm a little confused as to what exactly I'm researching and writing about. If someone could break it down and give me a few minor examples so I can structure the essay around it I would really appreciate it:
(Intel 80x86, ARM, MIPS R4000 )Write a two page report on the similarities and differences are of these architectures. Include in your report what you find interesting about the architectures you researched
In: Computer Science