Answer:
c start off with a story
Explanation:
I just took the test
Answer:
c
Explanation:
A new computer virus attacks a folder consisting of 200 files. Each file gets damaged with probability 0.2 independently of other files. What is the probability that fewer than 50 files will get damaged? g
Answer:
0.95345
Explanation:
Given that :
Number of files (n) = 200
Probability of getting damaged (p) = 0.2
q = 1 - p = 1 - 0.2 = 0.8
using normal approximation:
Mean (m) = np = 200 * 0.2 = 40
Standard deviation (s) = √n*p*q= √(200 * 0.2 * 0.8) = 5.6568542
P(X < 50)
X = 50 - 0.5 = 49.5
Find the standardized score :
Z = (x - m) / s
Z = (49.5 - 40) / 5.6568542
Z = 9.5 / 5.6568542
Zscore = 1.6793786
P(Z < 1.6793) = 0.95345 ( using Z probability calculator)
__ is a process of adding details to a model to make it less abstract.
• abstraction
• decomposition
• pattern recognition
• refinement
Answer:refinement
Explanation:
Answer:
refinement
Explanation: just checked
50 POINTS
in Java
A palindrome is a word, phrase, or sequence that reads the same backward as forward, e.g., madam or nurses run.
In this program, ask the user to input some text and print out whether or not that text is a palindrome.
Create the Boolean method isPalindrome which determines if a String is a palindrome, which means it is the same forwards and backwards. It should return a boolean of whether or not it was a palindrome.
Create the method reverse which reverses a String and returns a new reversed String to be checked by isPalindrome.
Both methods should have the signature shown in the starter code.
Sample output:
Type in your text:
madam
Your word is a palindrome!
OR
Type in your text:
hello
Not a palindrome :(
import java.util.Scanner;
public class JavaApplication52 {
public static String reverse(String word){
String newWord = "";
for (int i = (word.length()-1); i >= 0; i--){
newWord += word.charAt(i);
}
return newWord;
}
public static boolean isPalindrome(String word){
if (word.equals(reverse(word))){
return true;
}
else{
return false;
}
}
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Type in your text:");
String text = scan.nextLine();
if (isPalindrome(text) == true){
System.out.println("Your word is a palindrome!");
}
else{
System.out.println("Not a palindrome :(");
}
}
}
I hope this works!
35 POINTS
In Java PLS
This program is the beginning of an automated order machine. You are programming the piece that gets the number of the order from the label sent to you by the ordering machine.
The ordering machine is simulated with user input. It sends a full label, such as “3. Veggie Burger”.
Fill in the missing code
Your task is to get the number out of the string. To do this, you need to isolate the number by using substring. Then use Integer.valueOf, a static method of Integer that takes a String and returns the integer value contained in the String.
The final program should look something like this
1. Hamburger
2. Cheeseburger
3. Veggie Burger
4. Nachos
5. Hot Dog
Enter label:
5. Hot Dog
Customer ordered number 5
This is the code given:
import java.util.Scanner;
public class PickupWindow
{
public static void main(String[] args)
{
// Create scanner object
Scanner input = new Scanner(System.in);
// Display menu
String menu = "1. Hamburger\n2. Cheeseburger\n3. Veggie Burger\n4. Nachos\n5. Hot Dog\n";
System.out.println(menu);
// Get customer order
System.out.println("Enter label: ");
String customerOrder = input.nextLine();
// Use substring to get the first character (the number)
String combo =
// Create an Integer object by using the static
// method Integer.valueOf(someString)
// to turn the string into an Integer
Integer comboNumber =
// Print out what the customer ordered
System.out.println("Customer ordered number "
}
}
Answer:
Complete the program as follows:
1. Replace
String combo =
with
String combo = customerOrder.substring(0);
2. Replace
Integer comboNumber =
with
Integer comboNumber = Integer.parseInt(combo);
Explanation:
Required
Fill in the missing codes
From the code given, there are only two gaps to be filled and they are:
1. String combo =
2. Integer comboNumber =
1. String combo =
The first is to get the first index of customerOrder using substring.
The syntax of this is:
variable.substring(0);
In this case, the syntax will be replaced with:
String combo = customerOrder.substring(0);
Where customerOrder represents the string variables
2. Integer comboNumber =
This is to convert combo from string to integer using parseInt
This is done as follows:
Integer comboNumber = Integer.parseInt(combo);
See attachment for complete code
Please help answer now! First correct answer get branliest! Place the directions in order from first to last to explain how to hide the ribbon from the top of your Excel worksheet.
Move the cursor to the top-right corner
Select the auto-hide ribbon
Click on the up arrow
Answer:
just do bodldld
Explanation:
Answer:
Move the cursor to the top-right corner
Click on the up arrow
Select the auto-hide ribbon
Explanation:
How do you insert text into a presentation?
by clicking in a placeholder and entering text
by clicking in the task pane and entering text
by drawing a text box, clicking in it, and entering text
by selecting Text from the Insert menu
Answer:
Hello your answer is:
clicking in a placeholder and entering text
drawing a text box, clicking in it, and entering text
Explanation:
I did the assignment on edge 2021-2022
Answer: clicking in a placeholder and entering text, and
drawing a text box, clicking in it, and entering text
A swimming pool has a length of 28 feet, a width of 17 feet, and a depth of 6 feet. How much water can the swimming pool hold?
Simon takes apart a computer and looks at the thin green boards inside. What are these?
A. binary boards
B. database boards
C. input devices
D. circuit boards
Answer:
These green boards are circuit boards, these are green in color coz they protect the inner copper lining.