Description
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
Review
Review
Anonymous
This is great! Exactly what I wanted.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
Northern Virginia College Cloud Computing Based Solution Discussion
The ROI of a Cloud Deployment This assignment consists of two (2) sections: a narrative and a ROI Spreadsheet.You must sub ...
Northern Virginia College Cloud Computing Based Solution Discussion
The ROI of a Cloud Deployment This assignment consists of two (2) sections: a narrative and a ROI Spreadsheet.You must submit all sections for the completion of this assignment. Label each file name according to the section of the assignment it is written for. Additionally, you may create and / or assume all necessary assumptions needed for the completion of this assignment.The term paper will consist of a cloud-based solution of your own choosing. Imagine that you are the CIO of a company and you are moving your organization’s locally hosted technology environment to cloud-based models.Section 1: NarrativeWrite a ten to fifteen (10-15) page paper in which you:a.Create a brief (one (1) paragraph) narrative that includes:i.a problem statement.ii.a proposed solution to the problem.iii.the type of solution (private, public, or hybrid cloud and / or all three (3).)b.Determine which cloud environment you are seeking to utilize (Iaas, PaaS, and / or SaaS) and explain why.c.Describe the cloud-based solution you have selected.d.Evaluate why the cloud-based solution you have selected is the best solution for your problem.e.Determine the resources that are required for your cloud deployment.f.Determine the key performance indicators that are being addressed by the cloud-based solution.g.Create a diagram that depicts a visual relationship that supports the narrative using Visio or an equivalent such as Open Project, Dia, or OpenOffice. Note: The graphically depicted solution is not included in the required page length.h.Use at least five (5) quality resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources.Section 1 of your assignment must follow these formatting requirements:Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length.Include charts or diagrams created in Excel, Visio, MS Project, or one of their equivalents such as Open Project, Dia, and OpenOffice. The completed diagrams / charts must be imported into the Word document before the paper is submitted.Section 2: ROI SpreadsheetCreate an Excel spreadsheet that depicts Return on Investment (ROI) calculations that support your plan.
Java codes I only need the codes not the program
1. Find the Errors:The following code contains many errors. The errors
may be syntax, logic, or violations of convent ...
Java codes I only need the codes not the program
1. Find the Errors:The following code contains many errors. The errors
may be syntax, logic, or violations of conventions discussed in class. Copy
this code into DrJava and make any necessary corrections to the code so that it
compiles and produces the required output when run. Also, make sure that all
naming conventions are followed. Copy your corrected code from DrJava into the
appropriate space in Blackboard.
// Class demonstrates the error of using a
random range
// of
(2 - 12) to simulate a 2-dice roll
public class simulateDiceRolls {
public static void main(String[] args) {
Random rand;
int roll1, roll2, sum, singleDice7s = 0,
pairDice7s = 0;
System.println("Simulating 10,000
rolls of the dice");
for (inti = 0; i< 10000;) { // roll the dice 10,000 times
roll1 = rand.nextInt(6) + 1; // Simulate rolling 2 dice
roll2 = rand.nextInt(6) + 1;
sum = roll1 + roll2
if (sum = 7) { // Count the number of 7s
singleDice7s++;
}
roll3 = rand.nextInt( ) + 2;
// Simulate using 1 roll (2 - 12)
if (roll3 == 7) { // Count the number of 7s
pairDice7s+;
}
}
// Show % of 7s for each simulation using: (count/10,000) * 100)
System.out.println(% 1 roll = " +
doublesingleDice7s/100); //16.67%
System.out.printf("% 2 dice =
%d\n" , (double)pairDice7s/100); //
9.09%
}
}
2. Programming
Write a complete program that compares the number of
vowels in names entered by a user. Your program should first ask the user for the number of
names to be entered, and then repeatedly asks the user to enter names until
that number is reached.
Each name entry will be of the form: <first name>
<whitespace> <last name>
Your program should include
a method named countVowels that receives a
single String parameter and returns the number of vowels
found in that String.
When finished, the program should output the name with the most
vowels and the number of vowels in that name. If two names have this
same maximum number of vowels, only the first name entered will be displayed.
3. Programming
Write a complete program that plays a single
game of craps, displays the individual rolls and reports when a game is “LOST”
or “WON” and shows the number of rolls used by the game.
The algorithm is as follows:
Simulate
the roll of 2 dice using a JAVA random number generator.
Record
the sum of this first roll as the game point and print out: Game point:
<point><tab>
(if)
the game point is 7 or 11
print out: Game won in 1 roll
(else)
continue rolling the dice. After each roll, print:
<roll-value><tab>
(if)
a roll is either 7 or 11
print out: Game lost in <roll-count> rolls. Sorry.
(else
if) a roll equal the game point
print out: Game won in <roll-count> rolls. Congratulations!
Otherwise,
repeat step 4
4- Write a static method named favoriteLetter that accepts two parameters: a Scanner from
the console, and afavorite letter represented as a one-letter String. The
method repeatedly prompts the user until two consecutive words are entered that
start with that
letter. The method then prints a message showing the last word typed.
You may assume that the user will
type single-word responses to each prompt. Your code should be case-sensitive,
(if the favorite letter is a, you should not stop prompting if the user
types words that start with a capital A.
The following represents output
from two calls to your method:
(User input is underlined.)
Call
Scanner console = new
Scanner(System.in);
favoriteLetter(console,
"y");
Scanner console = new
Scanner(System.in);
favoriteLetter(console,
"A");
Output
Looking for two "y"
words in a row.
Type a word: hi
Type a word: bye
Type a word: yes
Type a word: what?
Type a word: yellow
Type a word: yippee
"y" is for
"yippee"
Looking for two "A"
words in a row.
Type a word: I
Type a word: love
Type a word: COSC236!
Type a word: AND
Type a word: PROGRAMS
Type a word: are
Type a word: always
Type a word: Absolutely
Type a word: Awesome
"A" is for
"Awesome
5. Programming
Write a static method named countEvenDigits
that accepts an integer as its parameter and returns the number of
even-valued digits in that number. An even-valued digit is either 0, 2, 4, 6,
or 8.
For example, the number 8546587
has four even digits (the two 8s, the 4, and the 6), so the call countEvenDigits(8346387)
should return 4.
You may assume that the value passed
to your method is non-negative. You may NOT use aString
to solve this problem.
7 pages
Open Samm 1
The Open SAMM Assessment tool is an open platform for helping organizations develop and execute a software security plan c ...
Open Samm 1
The Open SAMM Assessment tool is an open platform for helping organizations develop and execute a software security plan customized to the unique ...
American Public IEEE Standards and Security System Design Discussion
Need 500 word response and two cited references A) Discuss and share your thoughts on the evolution of IEEE standards and ...
American Public IEEE Standards and Security System Design Discussion
Need 500 word response and two cited references A) Discuss and share your thoughts on the evolution of IEEE standards and issues that come with securing wireless/mobile devices and or data. You are welcome to discuss best practices and additional elements that help keep data secure discussed in chapters 10 and 11.Need a 3 page essay on topic belowTopic: Discuss the elements of a security system design and provide practical examples in your paper
Similar Content
ISOL 534 University of the Cumberlands Application Security Discussion
discussion centers on how to prevent loss and protecting confidentiality, integrity, and availability of information. Also...
IT 535 Hood Coolege Security Policies Ethics and Law Paper
1. What are "ethical principles" and how do they compare to legal and/or moral and/or religious principles and concepts?
2...
SQL writing queries
1. There is a new CEO at COB204 Company, and she wants to know about employees, particularly those who no longer work at t...
The Various Laws and Regulations in UAE for Digital Data Discussion
Highlight the importance of Ethics and Law for your Business activities. Document the consequences when your business doe...
Virtualization
Assignment 2: Virtualize? Imagine you are a senior systems administrator who has been tasked with considering whether or ...
Security Organizations
here is no single national or international governing body for information security. A large number of national security i...
Related Tags
Book Guides
You Are a Badass
by Jen Sincero
Shattered - Inside Hillary Clintons Doomed Campaign
by Amie Parnes and Jonathan Allen
The Mayor of Casterbridge
by Thomas Hardy
To Kill a Mockingbird
by Harper Lee
Homo Deus
by Yuval Noah Harari
Orphan Train
by Christina Baker Kline
The Elegant Universe
by Brian Greene
Z for Zachariah
by Robert C. O’Brien
Little Women
by Louisa May Alcott
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
Northern Virginia College Cloud Computing Based Solution Discussion
The ROI of a Cloud Deployment This assignment consists of two (2) sections: a narrative and a ROI Spreadsheet.You must sub ...
Northern Virginia College Cloud Computing Based Solution Discussion
The ROI of a Cloud Deployment This assignment consists of two (2) sections: a narrative and a ROI Spreadsheet.You must submit all sections for the completion of this assignment. Label each file name according to the section of the assignment it is written for. Additionally, you may create and / or assume all necessary assumptions needed for the completion of this assignment.The term paper will consist of a cloud-based solution of your own choosing. Imagine that you are the CIO of a company and you are moving your organization’s locally hosted technology environment to cloud-based models.Section 1: NarrativeWrite a ten to fifteen (10-15) page paper in which you:a.Create a brief (one (1) paragraph) narrative that includes:i.a problem statement.ii.a proposed solution to the problem.iii.the type of solution (private, public, or hybrid cloud and / or all three (3).)b.Determine which cloud environment you are seeking to utilize (Iaas, PaaS, and / or SaaS) and explain why.c.Describe the cloud-based solution you have selected.d.Evaluate why the cloud-based solution you have selected is the best solution for your problem.e.Determine the resources that are required for your cloud deployment.f.Determine the key performance indicators that are being addressed by the cloud-based solution.g.Create a diagram that depicts a visual relationship that supports the narrative using Visio or an equivalent such as Open Project, Dia, or OpenOffice. Note: The graphically depicted solution is not included in the required page length.h.Use at least five (5) quality resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources.Section 1 of your assignment must follow these formatting requirements:Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length.Include charts or diagrams created in Excel, Visio, MS Project, or one of their equivalents such as Open Project, Dia, and OpenOffice. The completed diagrams / charts must be imported into the Word document before the paper is submitted.Section 2: ROI SpreadsheetCreate an Excel spreadsheet that depicts Return on Investment (ROI) calculations that support your plan.
Java codes I only need the codes not the program
1. Find the Errors:The following code contains many errors. The errors
may be syntax, logic, or violations of convent ...
Java codes I only need the codes not the program
1. Find the Errors:The following code contains many errors. The errors
may be syntax, logic, or violations of conventions discussed in class. Copy
this code into DrJava and make any necessary corrections to the code so that it
compiles and produces the required output when run. Also, make sure that all
naming conventions are followed. Copy your corrected code from DrJava into the
appropriate space in Blackboard.
// Class demonstrates the error of using a
random range
// of
(2 - 12) to simulate a 2-dice roll
public class simulateDiceRolls {
public static void main(String[] args) {
Random rand;
int roll1, roll2, sum, singleDice7s = 0,
pairDice7s = 0;
System.println("Simulating 10,000
rolls of the dice");
for (inti = 0; i< 10000;) { // roll the dice 10,000 times
roll1 = rand.nextInt(6) + 1; // Simulate rolling 2 dice
roll2 = rand.nextInt(6) + 1;
sum = roll1 + roll2
if (sum = 7) { // Count the number of 7s
singleDice7s++;
}
roll3 = rand.nextInt( ) + 2;
// Simulate using 1 roll (2 - 12)
if (roll3 == 7) { // Count the number of 7s
pairDice7s+;
}
}
// Show % of 7s for each simulation using: (count/10,000) * 100)
System.out.println(% 1 roll = " +
doublesingleDice7s/100); //16.67%
System.out.printf("% 2 dice =
%d\n" , (double)pairDice7s/100); //
9.09%
}
}
2. Programming
Write a complete program that compares the number of
vowels in names entered by a user. Your program should first ask the user for the number of
names to be entered, and then repeatedly asks the user to enter names until
that number is reached.
Each name entry will be of the form: <first name>
<whitespace> <last name>
Your program should include
a method named countVowels that receives a
single String parameter and returns the number of vowels
found in that String.
When finished, the program should output the name with the most
vowels and the number of vowels in that name. If two names have this
same maximum number of vowels, only the first name entered will be displayed.
3. Programming
Write a complete program that plays a single
game of craps, displays the individual rolls and reports when a game is “LOST”
or “WON” and shows the number of rolls used by the game.
The algorithm is as follows:
Simulate
the roll of 2 dice using a JAVA random number generator.
Record
the sum of this first roll as the game point and print out: Game point:
<point><tab>
(if)
the game point is 7 or 11
print out: Game won in 1 roll
(else)
continue rolling the dice. After each roll, print:
<roll-value><tab>
(if)
a roll is either 7 or 11
print out: Game lost in <roll-count> rolls. Sorry.
(else
if) a roll equal the game point
print out: Game won in <roll-count> rolls. Congratulations!
Otherwise,
repeat step 4
4- Write a static method named favoriteLetter that accepts two parameters: a Scanner from
the console, and afavorite letter represented as a one-letter String. The
method repeatedly prompts the user until two consecutive words are entered that
start with that
letter. The method then prints a message showing the last word typed.
You may assume that the user will
type single-word responses to each prompt. Your code should be case-sensitive,
(if the favorite letter is a, you should not stop prompting if the user
types words that start with a capital A.
The following represents output
from two calls to your method:
(User input is underlined.)
Call
Scanner console = new
Scanner(System.in);
favoriteLetter(console,
"y");
Scanner console = new
Scanner(System.in);
favoriteLetter(console,
"A");
Output
Looking for two "y"
words in a row.
Type a word: hi
Type a word: bye
Type a word: yes
Type a word: what?
Type a word: yellow
Type a word: yippee
"y" is for
"yippee"
Looking for two "A"
words in a row.
Type a word: I
Type a word: love
Type a word: COSC236!
Type a word: AND
Type a word: PROGRAMS
Type a word: are
Type a word: always
Type a word: Absolutely
Type a word: Awesome
"A" is for
"Awesome
5. Programming
Write a static method named countEvenDigits
that accepts an integer as its parameter and returns the number of
even-valued digits in that number. An even-valued digit is either 0, 2, 4, 6,
or 8.
For example, the number 8546587
has four even digits (the two 8s, the 4, and the 6), so the call countEvenDigits(8346387)
should return 4.
You may assume that the value passed
to your method is non-negative. You may NOT use aString
to solve this problem.
7 pages
Open Samm 1
The Open SAMM Assessment tool is an open platform for helping organizations develop and execute a software security plan c ...
Open Samm 1
The Open SAMM Assessment tool is an open platform for helping organizations develop and execute a software security plan customized to the unique ...
American Public IEEE Standards and Security System Design Discussion
Need 500 word response and two cited references A) Discuss and share your thoughts on the evolution of IEEE standards and ...
American Public IEEE Standards and Security System Design Discussion
Need 500 word response and two cited references A) Discuss and share your thoughts on the evolution of IEEE standards and issues that come with securing wireless/mobile devices and or data. You are welcome to discuss best practices and additional elements that help keep data secure discussed in chapters 10 and 11.Need a 3 page essay on topic belowTopic: Discuss the elements of a security system design and provide practical examples in your paper
Earn money selling
your Study Documents