Search

Custom Search

Thursday, November 25, 2010

computer science assignment

Please have someone to write a DETAIL step by step solution with solution and explanation. Thank You
Lab: 
Part A: Video Game Player Program
Step 1: Requirements
Write a program to do the following.  In main declare a Player Name Array and a Score Array.  Declare the size of the arrays to be 100.  In the InputData function input the player name and score into the arrays for an unknown number of players up to 100.  In the DisplayPlayerData function display the name and score of each player.  In the CalculateAverageScore function calculate the average score and return it by value.  In the DisplayBelowAverage function display the name of the player and score for any player who scored below the average.  Do not use global variables.  
Output from Program: 
Enter Player Name (Q to quit): Bob
Enter score for Bob: 3245
Enter Player Name (Q to quit): Sue
Enter score for Sue: 1098
Enter Player Name (Q to quit): Dave
Enter score for Dave: 8219
Enter Player Name (Q to quit): Pat
Enter score for Pat: 3217
Enter Player Name (Q to quit): Q   
Name   Score
Bob        3245
Sue        1098
Dave       8219
Pat        3217 
Average Score: 3944.75 
Players who scored below average   
Name    Score
Bob        3245
Sue        1098
Pat        3217
Press any key to continue . . . 
Step 2: Processing Logic
Using the pseudo code below, write the code that will meet the requirements:  
Main Function   
Declare the player name and score arrays, number of players, and average score.    
Call the InputData function   
Call the DisplayPlayerData function   
Call the CalculateAverageScore function and assign the returned value in average score   
Call the DisplayBelowAverage function  
InputData function    
While the number of players is less than the length of the array        
Prompt for the player's name        
If the user entered Q, break out of the loop        
Prompt the user for the player's score         
Add 1 to the number of players    
End-While 
DisplayPlayerData function    
Display the name and score of each player  
CalculateAverageScore function    
Add up the scores and divide by the number of scores to calculate the average score    
Display the average score    
Return the average score to main 
DisplayBelowAverage function    
Display the names and scores of all players who scored below the average score 
Step 3: Create a new project
Create a new project and name it LAB5A. 
Write your code using the Processing Logic in Part A Step 2.  Make sure you save your program.
Step 4: Compile and Execute
a)    Compile your program.  Eliminate all syntax errors.  
b)    Build your program and verify the results of the program.  Make corrections to the program logic if necessary until the results of the program execution are what you expect. 
Step 5: Print Screen Shots and Program

1.    Capture a screen print of your output [Do a PRINT SCREEN and paste into an MS Word document.]
2.    Copy your code and Paste it into the same MS Word document that contains the screen print of your output.
3.    Save the Word Document as Lab05A_LastName_FirstInitial    
END OF PART A
 
   


Part B: Pig Latin
Step 1: Requirements
Write a program that will input a phrase and convert it to pig latin.  Put each word in a separate element of a string array.  Remove the first letter from each word and concatenate it to the end of the word followed by "ay".         
Sample Output from Program: 
*** You will be prompted to enter a string of  ***
*** words. The string will be converted into   ***
*** Pig Latin and the results displayed.       ***
*** Enter as many strings as you would like.   *** 
Enter a group of words or ENTER to quit: DeVry is a wonderful school 
Original words: DeVry is a wonderful school
New Words: eVryDay siay aay onderfulway choolsay 
Enter a group of words or ENTER to quit: The Cowbows are going to the Superbowl 
Original words: The Cowbows are going to the Superbowl
New Words: heTay owbowsCay reaay oinggay otay hetay uperbowlSay 
Enter a group of words or ENTER to quit: 
Step 2: Processing Logic
Using the pseudo code below, write the code that will meet the requirements.  
Main function    
Display the heading    
While the condition is true            
Prompt the user for group of words or Enter to quit            
Display original words            
Call function pigLatinString( )    
End while 
pigLatinString( ) function    
Declare and initialize string variables len, counter, start, begin, word and newString    
While condition is true            
Call find() and pass a space and start as parameters and return the returned value            
to start            
if start equals to string::npos            
jump outside the loop permanently            
call substr() function            
display the word            
update newString            
increment start by one            
assign start to begin   
End While
Call substr()
Update newString
Return newString 
Step 3: Create a new project
Create a new project and name it LAB5B. 
Write your code using the Processing Logic in Part B Step 2.  Make sure you save your program.
Step 4: Compile and Execute
a)    Compile your program.  Eliminate all syntax errors.  
b)    Build your program and verify the results of the program.  Make corrections to the program logic if necessary until the results of the program execution are what you expect. 
Step 5: Print Screen Shots and Program

1.    Capture a screen print of your output [Do a PRINT SCREEN and paste into an MS Word document.]
2.    Copy your code and Paste it into the same MS Word document that contains the screen print of your output.
3.    Save the Word Document as Lab05B_LastName_FirstInitial    
END OF LAB

computer science assignment

Please have someone to write a DETAIL step by step solution with solution and explanation. Thank You
Lab: 
Part A: Video Game Player Program
Step 1: Requirements
Write a program to do the following.  In main declare a Player Name Array and a Score Array.  Declare the size of the arrays to be 100.  In the InputData function input the player name and score into the arrays for an unknown number of players up to 100.  In the DisplayPlayerData function display the name and score of each player.  In the CalculateAverageScore function calculate the average score and return it by value.  In the DisplayBelowAverage function display the name of the player and score for any player who scored below the average.  Do not use global variables.  
Output from Program: 
Enter Player Name (Q to quit): Bob
Enter score for Bob: 3245
Enter Player Name (Q to quit): Sue
Enter score for Sue: 1098
Enter Player Name (Q to quit): Dave
Enter score for Dave: 8219
Enter Player Name (Q to quit): Pat
Enter score for Pat: 3217
Enter Player Name (Q to quit): Q   
Name   Score
Bob        3245
Sue        1098
Dave       8219
Pat        3217 
Average Score: 3944.75 
Players who scored below average   
Name    Score
Bob        3245
Sue        1098
Pat        3217
Press any key to continue . . . 
Step 2: Processing Logic
Using the pseudo code below, write the code that will meet the requirements:  
Main Function   
Declare the player name and score arrays, number of players, and average score.    
Call the InputData function   
Call the DisplayPlayerData function   
Call the CalculateAverageScore function and assign the returned value in average score   
Call the DisplayBelowAverage function  
InputData function    
While the number of players is less than the length of the array        
Prompt for the player's name        
If the user entered Q, break out of the loop        
Prompt the user for the player's score         
Add 1 to the number of players    
End-While 
DisplayPlayerData function    
Display the name and score of each player  
CalculateAverageScore function    
Add up the scores and divide by the number of scores to calculate the average score    
Display the average score    
Return the average score to main 
DisplayBelowAverage function    
Display the names and scores of all players who scored below the average score 
Step 3: Create a new project
Create a new project and name it LAB5A. 
Write your code using the Processing Logic in Part A Step 2.  Make sure you save your program.
Step 4: Compile and Execute
a)    Compile your program.  Eliminate all syntax errors.  
b)    Build your program and verify the results of the program.  Make corrections to the program logic if necessary until the results of the program execution are what you expect. 
Step 5: Print Screen Shots and Program

1.    Capture a screen print of your output [Do a PRINT SCREEN and paste into an MS Word document.]
2.    Copy your code and Paste it into the same MS Word document that contains the screen print of your output.
3.    Save the Word Document as Lab05A_LastName_FirstInitial    
END OF PART A
 
   


Part B: Pig Latin
Step 1: Requirements
Write a program that will input a phrase and convert it to pig latin.  Put each word in a separate element of a string array.  Remove the first letter from each word and concatenate it to the end of the word followed by "ay".         
Sample Output from Program: 
*** You will be prompted to enter a string of  ***
*** words. The string will be converted into   ***
*** Pig Latin and the results displayed.       ***
*** Enter as many strings as you would like.   *** 
Enter a group of words or ENTER to quit: DeVry is a wonderful school 
Original words: DeVry is a wonderful school
New Words: eVryDay siay aay onderfulway choolsay 
Enter a group of words or ENTER to quit: The Cowbows are going to the Superbowl 
Original words: The Cowbows are going to the Superbowl
New Words: heTay owbowsCay reaay oinggay otay hetay uperbowlSay 
Enter a group of words or ENTER to quit: 
Step 2: Processing Logic
Using the pseudo code below, write the code that will meet the requirements.  
Main function    
Display the heading    
While the condition is true            
Prompt the user for group of words or Enter to quit            
Display original words            
Call function pigLatinString( )    
End while 
pigLatinString( ) function    
Declare and initialize string variables len, counter, start, begin, word and newString    
While condition is true            
Call find() and pass a space and start as parameters and return the returned value            
to start            
if start equals to string::npos            
jump outside the loop permanently            
call substr() function            
display the word            
update newString            
increment start by one            
assign start to begin   
End While
Call substr()
Update newString
Return newString 
Step 3: Create a new project
Create a new project and name it LAB5B. 
Write your code using the Processing Logic in Part B Step 2.  Make sure you save your program.
Step 4: Compile and Execute
a)    Compile your program.  Eliminate all syntax errors.  
b)    Build your program and verify the results of the program.  Make corrections to the program logic if necessary until the results of the program execution are what you expect. 
Step 5: Print Screen Shots and Program

1.    Capture a screen print of your output [Do a PRINT SCREEN and paste into an MS Word document.]
2.    Copy your code and Paste it into the same MS Word document that contains the screen print of your output.
3.    Save the Word Document as Lab05B_LastName_FirstInitial    
END OF LAB

computer science assignment

write to me Pollard Rho's algorithm for factorization on Java "all coding with a result"

computer science assignment

Operating Systems Concepts
CSci 474
Project #2: Threads and semaphores
Due Date: 11:55PM, December 1, 2010
I. Project Organization
This project will study multiple thread programming, using semaphores and POSIX.
You should do the following pieces to complete your project. Each piece is explained below:
• Design 10 points
• Code 25 points
• Output 10 points
• Summary 5 points
Design
List each semaphore with its purpose and initial value. Provide pseudocode for each thread.
Code
Your code should be nicely formatted with plenty of comments. The code should be easy to read,
properly indented, employ good naming standards, good structure, and should correctly implement the
design.
Output
Output will be graded by running your program on the UNIX machines in Lab 244.
Summary
The summary section should discuss your simulation, any difficulties encountered, what was learned,
and results. It should be at least one page.
II. Project Description
You must complete this project based on POSIX.
This project simulates a game through multithreading. The following rules apply:
1. The main thread creates a server thread and two player threads.
2. A player thread is blocked until a server thread is created - the player thread cannot join a game
until the server thread is created.
3. Each game must have exactly two players -- the server thread cannot start the game until two
players join the game.
4. After the game starts, each player thread randomly generates an integer and passes this integer to
the server thread.
5. The server is waiting for randomly generated integers from two players.
6. The player threads wait for the result from the server.
7. The server thread compares integers and notifies two player threads the result (the thread which
generates a larger integer wins). Game ends.
Your output must show all activities in each thread.
For example:
Main thread creates the server thread.
Main thread creates the player thread 1.
Main thread creates the player thread 2.
Server threat starts.
Player thread 2 starts.
Player thread 1 starts.
Player thread 1 joins the game.
Player thread 2 joins the game.
Server thread starts the game.
Player thread 2 passes 123 to the server.
Player thread 1 passes 234 to the server.
Server announces player 1 wins the game.
GAME OVER.
III. Project Guidelines
Submitting
Submit your project on Blackboard. Include in your submission the following files:
1) A Word document for the written pieces of the project
2) Your source files
NO hardcopy submission. Late submission will NOT be accepted.
Cheating
All work must be your own. If cheating is detected, all parties involved will be given a zero for the project
and the penalty will be documented on a form that you must sign. You may be referred to the Dean's
office for further discussion.
Grading
The written portions will be graded subjectively based on completeness and quality. The code will be
graded based on points allocated for each key part of the processing as determined by the instructor. The
output will be graded based on expected results for the runs.

computer science assignment

Operating Systems Concepts
CSci 474
Project #2: Threads and semaphores
Due Date: 11:55PM, December 1, 2010
I. Project Organization
This project will study multiple thread programming, using semaphores and POSIX.
You should do the following pieces to complete your project. Each piece is explained below:
• Design 10 points
• Code 25 points
• Output 10 points
• Summary 5 points
Design
List each semaphore with its purpose and initial value. Provide pseudocode for each thread.
Code
Your code should be nicely formatted with plenty of comments. The code should be easy to read,
properly indented, employ good naming standards, good structure, and should correctly implement the
design.
Output
Output will be graded by running your program on the UNIX machines in Lab 244.
Summary
The summary section should discuss your simulation, any difficulties encountered, what was learned,
and results. It should be at least one page.
II. Project Description
You must complete this project based on POSIX.
This project simulates a game through multithreading. The following rules apply:
1. The main thread creates a server thread and two player threads.
2. A player thread is blocked until a server thread is created - the player thread cannot join a game
until the server thread is created.
3. Each game must have exactly two players -- the server thread cannot start the game until two
players join the game.
4. After the game starts, each player thread randomly generates an integer and passes this integer to
the server thread.
5. The server is waiting for randomly generated integers from two players.
6. The player threads wait for the result from the server.
7. The server thread compares integers and notifies two player threads the result (the thread which
generates a larger integer wins). Game ends.
Your output must show all activities in each thread.
For example:
Main thread creates the server thread.
Main thread creates the player thread 1.
Main thread creates the player thread 2.
Server threat starts.
Player thread 2 starts.
Player thread 1 starts.
Player thread 1 joins the game.
Player thread 2 joins the game.
Server thread starts the game.
Player thread 2 passes 123 to the server.
Player thread 1 passes 234 to the server.
Server announces player 1 wins the game.
GAME OVER.
III. Project Guidelines
Submitting
Submit your project on Blackboard. Include in your submission the following files:
1) A Word document for the written pieces of the project
2) Your source files
NO hardcopy submission. Late submission will NOT be accepted.
Cheating
All work must be your own. If cheating is detected, all parties involved will be given a zero for the project
and the penalty will be documented on a form that you must sign. You may be referred to the Dean's
office for further discussion.
Grading
The written portions will be graded subjectively based on completeness and quality. The code will be
graded based on points allocated for each key part of the processing as determined by the instructor. The
output will be graded based on expected results for the runs.

computer science assignment

Operating Systems Concepts
CSci 474
Project #2: Threads and semaphores
Due Date: 11:55PM, December 1, 2010
I. Project Organization
This project will study multiple thread programming, using semaphores and POSIX.
You should do the following pieces to complete your project. Each piece is explained below:
• Design 10 points
• Code 25 points
• Output 10 points
• Summary 5 points
Design
List each semaphore with its purpose and initial value. Provide pseudocode for each thread.
Code
Your code should be nicely formatted with plenty of comments. The code should be easy to read,
properly indented, employ good naming standards, good structure, and should correctly implement the
design.
Output
Output will be graded by running your program on the UNIX machines in Lab 244.
Summary
The summary section should discuss your simulation, any difficulties encountered, what was learned,
and results. It should be at least one page.
II. Project Description
You must complete this project based on POSIX.
This project simulates a game through multithreading. The following rules apply:
1. The main thread creates a server thread and two player threads.
2. A player thread is blocked until a server thread is created - the player thread cannot join a game
until the server thread is created.
3. Each game must have exactly two players -- the server thread cannot start the game until two
players join the game.
4. After the game starts, each player thread randomly generates an integer and passes this integer to
the server thread.
5. The server is waiting for randomly generated integers from two players.
6. The player threads wait for the result from the server.
7. The server thread compares integers and notifies two player threads the result (the thread which
generates a larger integer wins). Game ends.
Your output must show all activities in each thread.
For example:
Main thread creates the server thread.
Main thread creates the player thread 1.
Main thread creates the player thread 2.
Server threat starts.
Player thread 2 starts.
Player thread 1 starts.
Player thread 1 joins the game.
Player thread 2 joins the game.
Server thread starts the game.
Player thread 2 passes 123 to the server.
Player thread 1 passes 234 to the server.
Server announces player 1 wins the game.
GAME OVER.
III. Project Guidelines
Submitting
Submit your project on Blackboard. Include in your submission the following files:
1) A Word document for the written pieces of the project
2) Your source files
NO hardcopy submission. Late submission will NOT be accepted.
Cheating
All work must be your own. If cheating is detected, all parties involved will be given a zero for the project
and the penalty will be documented on a form that you must sign. You may be referred to the Dean's
office for further discussion.
Grading
The written portions will be graded subjectively based on completeness and quality. The code will be
graded based on points allocated for each key part of the processing as determined by the instructor. The
output will be graded based on expected results for the runs.

case study assignment


Northeastern University (NEU) is now ranked among the top 100 research institutions in the United States.  This was not always the case.  As part of a methodical process and thanks to a significant investment of time, energy and money, the University reengineered its curriculum, improved the quality of its teaching and research faculty, built up its campus facilities, and rebranded itself.   Along the way, the institution could have misdirected its efforts and resources.  Fortunately, Northeastern’s leadership recognized the value of data-driven decision making.  Early on in the remaking of the University, NEU established a decision support system (DSS) to inform planning.    For example, in the early 1990’s, NEU stood firmly in the third tier of ranked U.S. Colleges and Universities, due in no small part to a student retention rate near 35%.  The University was determined to improve on this vital metric (today retention is closer to 85%), but to that end NEU needed to determine what factors/investments might substantial improve student retention rates.  By mining years of student cohort data, the University’s leadership determined those factors that influenced the student’s ability to stay at NEU through graduation.
The enabling information system, (i.e. the University’s first decision support system - DSS) drew on key University transaction systems for its data, including: the Registrar System, the Financial Aid System, the Human Resource System, and the Financial Management System.  Led by a technical team draw from the University’s Information Technology Services (ITS) Unit, a large cross-functional committee of stakeholders, including academic and administrative leaders from across campus, identified the data to be collected by the DSS and devised a common set of definitions, metadata standards and the like to ensure the quality and integrity of the data collection/translation process.  The IT team employed extract–transform-and-load (ETL) tools to draw the data from the aforementioned source systems and to load it into a specially designed data warehouse.  Rather than try to recreate data sets historically, the stakeholder committee agreed to start the DSS process and data collection with the most current body of transaction data, beginning with the Fall term of the 2002-2003 academic year.  The data warehouse now holds nearly nine full academic years of longitudinal data, including 36 data discrete sets as of Summer II term, 2010.
Once the data warehouse was fully deployed and once the automated procedures were in place to extract key data from the school’s various systems of record, the data warehouse was ready for use in decision support.   A team of analysts, working under the general direction of the Senior Vice President for Planning, mined this DSS data source looking for the underlying predictors of student retention and academic performance, tends in course registration and faculty and facilities utilization, demographic shifts in the student body, and many other high-level tactical and strategic issues facing the University’s leadership.  As the process added more academic terms of data to the data warehouse, the opportunities for richer and more focuses analysis became available to the DSS team.
To date the Northeastern University DSS has been used to inform the institutions policies and processes for delivering student services, to direct its building programs choices – especially regarding the construction of new student residents’ halls, and to focus faculty hiring and academic program development.  In turn these decisions have improved overall student satisfaction and retention, and school performance, vaulting NEU into the elite 100.


Question to Address:
1.      What technical components comprised NEU’s decision support system?
2.      Who were the key stakeholders in the process and why were they so important?
3.      To what would you attribute the DSS project’s success and how would you measure and assess outcomes?
4.      Without a DSS, how would NEU inform its decision making?  What are the shortfalls in these alternative approaches to decision making?