Description
(3.) Nazism in Germany and Communism in the Soviet Union have both been described as “totalitarian” systems of government. How did these systems seek to implement alternative visions of human progress during the mid-twentieth century?
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
Just what I needed. Studypool is a lifesaver!
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
7 pages
Equifax Security Breach Computer Science
To date, the Equifax data breach remains to be one of the most talked-about information security data breaches. Thorough i ...
Equifax Security Breach Computer Science
To date, the Equifax data breach remains to be one of the most talked-about information security data breaches. Thorough investigations revealed that ...
New England College SNMP in Network Security Discussion
explain the different security measures that each version of SNMP uses. What is the different between SNMPv1, v2c and v3? ...
New England College SNMP in Network Security Discussion
explain the different security measures that each version of SNMP uses. What is the different between SNMPv1, v2c and v3? please provide references at end, Thank you.
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.
NTC425 Phoenix Yates Community Hospital HIT and HIE Network Upgrade Project
Resource:Yates Community Hospital HIT and HIE Network Upgrade ProjectYou are part of the Yates Community HIT and HIE Netwo ...
NTC425 Phoenix Yates Community Hospital HIT and HIE Network Upgrade Project
Resource:Yates Community Hospital HIT and HIE Network Upgrade ProjectYou are part of the Yates Community HIT and HIE Network Upgrade Project. You have been tasked with diagraming the current Yates Community HIT network and HIE system so the team has the correct starting point for its work.Read the Yates Community Hospital HIT and HIE Network Upgrade Project document.Create a high-level diagram in Microsoft® Visio® of the Yates Community HIT network.Include the following:The network componentsThe basic data communication path between the componentsHow and where the components interact and exchange informationAnnotations of where the network currently complies with ISO OSI, HL7, and TC215 standards, where it does not, and what changes are needed to enable complianceAnnotations of where additional hardware will be needed to support full compliance with information exchange requirementsAnnotations denoting where additional standards need to be addressed
Intro Blockchain and CrypCurr (Discussion Week 3 - Ethereum)
Chapter 8 introduces governance issues and potential areas in which blockchain technology can help empower citizens. Creat ...
Intro Blockchain and CrypCurr (Discussion Week 3 - Ethereum)
Chapter 8 introduces governance issues and potential areas in which blockchain technology can help empower citizens. Create a new thread, choose one area from the material in chapter 8 in which blockchain technology can enhance citizen engagement, and describe the current problem and how blockchain technology could resolve or improve the current situation. Write your discussion in a way that is accessible by all readers - regardless of their political beliefs. In other words, focus on blockchain, not politics. Then think of three questions you’d like to ask other students and add these to the end of your thread. The questions should be taken from material you read in Chapter 7, 8, or 9. You’re not trying to test each other, but you are trying to start a discussion.You must do this following: As indicated above, choose one area from the material in chapter 8 in which blockchain technology can enhance citizen engagement, and describe the current problem and how blockchain technology could resolve or improve the current situation. Write your discussion in a way that is accessible by all readers - regardless of their political beliefs. In other words, focus on blockchain, not politics. Then think of three questions you’d like to ask other students and add these to the end of your thread. The questions should be taken from material you read in Chapter 7, 8, or 9. You’re not trying to test each other, but you are trying to start a discussion.
Similar Content
Database question
Current Processes and Systems for Affordable Quality ConstructionThe development of a database and its applications is a c...
c++ project
Rework your project to include a class. As explained in class, your project should have its functionalities moved to a cla...
Arkansas State University Role of IT in Organizations Paper
Topic: Role of IT in organizationsFind a current news item (or collection of related items) within the last 2 years that c...
Hefty Hardware Case Study
Read the Hefty Hardware Case Study on pages 76-79 in the textbook. Answer the Discussion Questions at the end of the Case ...
CYS 663 SEU Macintosh Forensics Critical Thinking Paper
Critical Thinking Requirements:
In this assignment, you assume the role of a forensic investigator for the DigiFirm Invest...
KGSM Implications of Blockchain for Peer to Peer Electronic Payments Paper
What are the implications of blockchain for peer-to-peer electronic payments? ...
Cs188 Intro To Ai
...
Identity Theft Edited
A data breach is a cyber-attack where sensitive, personal and protected information has been accessed and revealed unautho...
Quiz 7.
1) Define competitive advantage and competitive disadvantage. Give an example on each. How has competitive advantage chang...
Related Tags
Book Guides
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
7 pages
Equifax Security Breach Computer Science
To date, the Equifax data breach remains to be one of the most talked-about information security data breaches. Thorough i ...
Equifax Security Breach Computer Science
To date, the Equifax data breach remains to be one of the most talked-about information security data breaches. Thorough investigations revealed that ...
New England College SNMP in Network Security Discussion
explain the different security measures that each version of SNMP uses. What is the different between SNMPv1, v2c and v3? ...
New England College SNMP in Network Security Discussion
explain the different security measures that each version of SNMP uses. What is the different between SNMPv1, v2c and v3? please provide references at end, Thank you.
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.
NTC425 Phoenix Yates Community Hospital HIT and HIE Network Upgrade Project
Resource:Yates Community Hospital HIT and HIE Network Upgrade ProjectYou are part of the Yates Community HIT and HIE Netwo ...
NTC425 Phoenix Yates Community Hospital HIT and HIE Network Upgrade Project
Resource:Yates Community Hospital HIT and HIE Network Upgrade ProjectYou are part of the Yates Community HIT and HIE Network Upgrade Project. You have been tasked with diagraming the current Yates Community HIT network and HIE system so the team has the correct starting point for its work.Read the Yates Community Hospital HIT and HIE Network Upgrade Project document.Create a high-level diagram in Microsoft® Visio® of the Yates Community HIT network.Include the following:The network componentsThe basic data communication path between the componentsHow and where the components interact and exchange informationAnnotations of where the network currently complies with ISO OSI, HL7, and TC215 standards, where it does not, and what changes are needed to enable complianceAnnotations of where additional hardware will be needed to support full compliance with information exchange requirementsAnnotations denoting where additional standards need to be addressed
Intro Blockchain and CrypCurr (Discussion Week 3 - Ethereum)
Chapter 8 introduces governance issues and potential areas in which blockchain technology can help empower citizens. Creat ...
Intro Blockchain and CrypCurr (Discussion Week 3 - Ethereum)
Chapter 8 introduces governance issues and potential areas in which blockchain technology can help empower citizens. Create a new thread, choose one area from the material in chapter 8 in which blockchain technology can enhance citizen engagement, and describe the current problem and how blockchain technology could resolve or improve the current situation. Write your discussion in a way that is accessible by all readers - regardless of their political beliefs. In other words, focus on blockchain, not politics. Then think of three questions you’d like to ask other students and add these to the end of your thread. The questions should be taken from material you read in Chapter 7, 8, or 9. You’re not trying to test each other, but you are trying to start a discussion.You must do this following: As indicated above, choose one area from the material in chapter 8 in which blockchain technology can enhance citizen engagement, and describe the current problem and how blockchain technology could resolve or improve the current situation. Write your discussion in a way that is accessible by all readers - regardless of their political beliefs. In other words, focus on blockchain, not politics. Then think of three questions you’d like to ask other students and add these to the end of your thread. The questions should be taken from material you read in Chapter 7, 8, or 9. You’re not trying to test each other, but you are trying to start a discussion.
Earn money selling
your Study Documents