Answer:
Consider the language defined by the following regular expression. (x*y | zy*)* 1. Does zyyxz belong to the language?
O. No, because zyy does not belong to x*y nor zy*
2. Does zyyzy belong to the language?
Yes, because both zy and zyy belong to zy*.
Explanation:
A profit of ₹ 1581 is to be divided amongst three partner P,Q and R in ratio 1/3:1/2:1/5.theshareof R will be?
Answer:
R's share = 306
Explanation:
Sum of ratio = 1/3 + 1/2 + 1/5
LCM = 30
Sum of ratio = (10 + 15 + 6) / 30 = 31 /30
Profit to be shared = 1581
P = 1/3 ; Q = 1/2 ; R = 1/5
Share of R :
(Total profit / sum of ratio) * R ratio
[1581 / (31/30)] * 1/5
(1581 / 1 * 30/31) * 1/5
51 * 30 * 1/5
51 * 6 = 306
You are on a team of developers writing a new teacher tool. The students names are stored in a 2D array called “seatingChart”. As part of the tool, a teacher can enter a list of names and the tool well return the number of students in the class found with names that matching provided list. For this problem you will be completing the ClassRoom class in the problem below. Your job is to complete the numberOfStudents found method. This method accepts an array of Strings that contain names and returns the quantity of students with those names. For example:
Assume that a ClassRoom object named “computerScience” has been constructed and the seating chart contains the following names:
“Clarence”, “Florence”, “Ora”
“Bessie”, “Mabel”, “Milton”
“Ora”, “Cornelius”, “Adam”
When the following code executes:
String[] names = {"Clarence", "Ora", "Mr. Underwood"};
int namesFound = computerScience.numberOfStudents(names);
The contents of namesFound is 3 because Clarence is found once, Ora is found twice, and Mr. Underwood is not found at all. The total found would be 3.
Complete the numberOfStudents method
public class ClassRoom
{
private String[][] seatingChart;
//initializes the ClassRoom field seatingChart
public ClassRoom(String[][] s){
seatingChart = s;
}
//Precondition: the array of names will contain at least 1 name that may or may not be in the list
// the seating chart will be populated
//Postcondition: the method returns the number of names found in the seating chart
//TODO: Write the numberOfStudents method
public int numberOfStudents(String[] names){
}
public static void main(String[] args)
{
//DO NOT ENTER CODE HERE
//CHECK THE ACTUAL COLUMN FOR YOUR OUTPUT
System.out.println("Look in the Actual Column to see your results");
}
}
Answer:
Wait what? Some of the words are mashed together...
What steps can be used to open the Custom AutoFilter dialog box? Select any cell in the data range.
Click the _____ tab.
In the ______ group, click Filter.
Next to a column heading, click the AutoFilter drop-down arrow.
Click ______ and click Custom Filter. The Custom AutoFilter dialog box appears for creating custom filers.
Answer:
Data
Sort and Filter
Text Filters
Explanation:
Proof that this answer is correct in the file attached.
A step which can be used to open the Custom AutoFilter dialog box is to click on the data tab.
What is data?Data simply refers to a representation of factual instructions (information) in a formalized manner, especially as a series of binary digits (bits) that are used on computer systems.
The step which can be used to open the Custom AutoFilter dialog box on Microsoft Excel include the following:
Click on the data tab.In the Sort & Filter group, click Filter.Next to a column heading, click the AutoFilter drop-down arrow.Click Text Filters and click Custom Filter.Then, the Custom AutoFilter dialog box would appear for creating custom filers.Read more on Excel spreadsheets here: https://brainly.com/question/4965119
#SPJ2
In this exercise you will debug the code which has been provided in the starter file. The code is intended to do the following:
take a string input and store this in the variable str1
copy this string into another variable str2 using the String constructor
change str1 to the upper-case version of its current contents
print str1 on one line, then str2 on the next
1 /* Lesson 4 Coding Activity Question 2 */
2
3 import java.util.Scanner;
4
5 public class U2_L4_Activity_Two{
6 public static void main(String[] args){
7
8 Scanner = new Scanner(System.in);
9 String str1 = scan.nextLine();
10 String str2 = String(str1);
11 str1 = toUpperCase(str1);
12 System.out.println("str1");
13 System.out.println("str1");
14
15 }
16 }
Answer:
The corrected code is as follows:
import java.util.Scanner;
public class U2_L4_Activity_Two{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String str1 = scan.nextLine();
String str2 = str1;
str1 = str1.toUpperCase();
System.out.println(str1);
System.out.println(str2);
}
}
Explanation:
This corrects the scanner object
Scanner scan = new Scanner(System.in);
This line is correct
String str1 = scan.nextLine();
This copies str1 to str2
String str2 = str1;
This converts str1 to upper case
str1 = str1.toUpperCase();
This prints str1
System.out.println(str1);
This prints str2
System.out.println(str2);
Good information is characterized by certain properties. Explain how you understand these characteristtics of good information. Use examples to better explain your answer.
Answer:
here is your ans
Explanation:
Characteristics of good quality information can be defined as an acronym ACCURATE. These characteristics are interrelated; focus on one automatically leads to focus on other.
Accurate
Information should be fair and free from bias. It should not have any arithmetical and grammatical errors. Information comes directly or in written form likely to be more reliable than it comes from indirectly (from hands to hands) or verbally which can be later retracted.
Complete
Accuracy of information is just not enough. It should also be complete which means facts and figures should not be missing or concealed. Telling the truth but not wholly is of no use.
Cost-beneficial
Information should be analysed for its benefits against the cost of obtaining it. It business context, it is not worthwhile to spend money on information that even cannot recover its costs leading to loss each time that information is obtained. In other contexts, such as hospitals it would be useful to get information even it has no financial benefits due to the nature of the business and expectations of society from it.
User-targeted
Information should be communicated in the style, format, detail and complexity which address the needs of users of the information. Example senior managers need brief reports which enable them to understand the position and performance of the business at a glance, while operational managers need detailed information which enable them to make day to day decisions.
Relevant
Information should be communicated to the right person. It means person which has some control over decisions expected to come out from obtaining the information.
Authoritative
Information should come from reliable source. It depends on qualifications and experience and past performance of the person communicating the information.
Timely
Information should be communicated in time so that receiver of the information has enough time to decide appropriate actions based on the information received. Information which communicates details of the past events earlier in time is of less importance than recently issued information like newspapers. What is timely information depends on situation to situation. Selection of appropriate channel of communication is key skill to achieve.
Easy to Use
Information should be understandable to the users. Style, sentence structure and jargons should be used keeping the receiver in mind. If report is targeted to new-comer in the field, then it should explain technical jargons used in the report.
Python’s pow function returns the result of raising a number to a given power. Define a function expo that performs this task, and state its computational complexity using big-O notation. The first argument of this function is the number, and the second argument is the exponent (nonnegative numbers only). You may use either a loop or a recursive function in your implementation.
Answer:
The function is as follows:
def expo(num,n):
prod= 1
for i in range(n):
prod*=num
return prod
The big-O notation is: O(n)
Explanation:
This defines the function
def expo(num,n):
This initialzes the product to 1
prod= 1
This iteration is perfomed n times
for i in range(n):
The number is multiplied by itself n times
prod*=num
This returns the calculated power
return prod
To calculate the complexity.
The loop is repeated n times.
Each operation has a complexity O(1).
So, in for n number of operations; the complexity is: O(n * 1)
This gives: O(n)
briefly explain intellegence?
Answer:
Intelligence is the ability to think, to learn from experience, to solve problems, and to adapt to new situations. ... Psychologists believe that there is a construct, known as general intelligence , that accounts for the overall differences in intelligence among people.
Answer:
The ability to be knowledgeable and successful in skills as well as school subjects.
Explanation:
What does the following Boolean operators do?
AND function
OR function
NOT function
1. You will need to add data to the tables in your design that matches the data in the supplied Excel documents. If your database design doesn't accommodate a given piece of data you must modify your design and implementation to ensure that all data provided in the spreadsheet can be added. a. You may any other data you wish and as your design requires. If your design is such that the needed data is not supplied in the spreadsheet you will need to simply "mock" up some sample data and add it into your database. b. Important: Your instructor cannot provide you with specific information how to complete this step. Each person's database design will be different and therefore, how data must be entered will be different from person to person.
Answer:
is all about knowing what to do with the data
Explanation:
determine what to do with your data
name 3 supercomputers along with their cost, purpose and the country it is located.
Answer:
The three super computers are
a) Fujitsu Fugak
b) IBM Summit/IBM/Nvidia/Mellanox
c) Sunway TaihuLigh
Explanation:
Three super computers are as follows
a) Fujitsu Fugak - It is located in Kobe, Japan and its costs is ¥130 billion
b) IBM Summit/IBM/Nvidia/Mellanox - It is located in Oak Ridge, U.S. and it costs $325 million
c) Sunway TaihuLigh- It is located in Wuxi, China and it costs US$273 million
How has the history of computers had an impact on the technology we use daily?
In your own words please:)
Answer:
In hospitals, most of the equipments use or are run by computers. Look at space exploration; it was all made possible with the advent of computer technology. In the job sector, many of the jobs require knowledge in computers because they mostly involve the use of computers.
The early computers were not that small as those used today and they were commonly used to help in working out complex calculations in mathematics that proved tedious to be done manually. This is why the first machine was called by some as a calculator and others as a computer because it was used for making calculations.
Hope it helps
Create a Card class that represents a playing card. It should have an int instance variable named rank and a char variable named suit. Give it a constructor with two parameters for initializing the two instance variables and give it a getSuit() method and a getRank() method that return the values of the two instance variables. Then create a CardTester class with a main method that creates five Cards that make up a full house (that is, three of the cards have the same rank and the other two cards have the same rank) and prints out the ranks and suits of the five Cards using the getSuit() and getRank) methods
Answer:
Explanation:
The following code is written in Java. It creates the Card class and then uses it to create a full house and print out the rank and suit of every card in that hand.
class Card {
int rank;
char suit;
public Card(int rank, char suit) {
this.rank = rank;
this.suit = suit;
}
public int getRank() {
return rank;
}
public char getSuit() {
return suit;
}
}
class CardTester {
public static void main(String[] args) {
Card card1 = new Card(3, '♥');
Card card2 = new Card(3, '♠');
Card card3 = new Card(3, '♦');
Card card4 = new Card(2, '♦');
Card card5 = new Card(2, '♣');
System.out.println("Card 1: " + card1.getRank() + " of " + card1.getSuit());
System.out.println("Card 2: " + card2.getRank() + " of " + card2.getSuit());
System.out.println("Card 3: " + card3.getRank() + " of " + card3.getSuit());
System.out.println("Card 4: " + card4.getRank() + " of " + card4.getSuit());
System.out.println("Card 5: " + card5.getRank() + " of " + card5.getSuit());
}
}
Sum of Primes JAVA project
read 2 strings from the command line; each string will contain an integer. let's call those integers, num1 and num2. write a loop that goes from num1 and num2 looking for prime numbers. if a number if prime then store it in an array of integers, pass this array to a method that returns the sum of all the numbers in the array; you will also need to tell this method how many numbers are in the array. output only the sum of primes. you may assume a maximum of not more than 1000 numbers in the array.
*CODE*
import java.util.*;
class SumPrimes {
// go thru the array primes which has size elements
// total the integer values in primes
// return this total
// the first argument is the array of prime numbers
// the second argument is the number of primes in this array
public static int sumArray(first argument, second argument) {
}
// this method takes an integer, n, and determines if it is prime
// returns true if it is and false if it isn't
// a number is prime if it is only evenly divisible by 1 and itself
// 1 is NOT considered prime
static boolean isPrime(int n) {
// Corner case
if (n <= 1)
return false;
// Check from 2 to n-1
for (int i = 2; i < n; i++)
if (n % i == 0)
return false;
return true;
}
public static void main(String[] args) {
// define the constant MAX which represents the largest size of the primes array
int num1, num2, numPrime = 0;
// declare an array of the proper data type and size
// convert 1st command line argument from a string to an integer
num1 = Integer.parseInt(args[0]);
// get num2 from the command line
// loop through all integers from num1 to num2
// store those that are prime in the primes array
// keep track of the number of primes - numPrime
// output the sum of all the primes
System.out.println(sumArray(primes, numPrime));
}
}
Answer:
Explanation:
The following code is written in Java and creates the necessary code so that two int inputs are read and looped through all the numbers between them to find all the primes. These primes are counted and summed. Finally, printing out the sum and the number of primes found to the console.
import java.util.ArrayList;
import java.util.Scanner;
class SumPrimes{
public static void main(final String[] args) {
Scanner in = new Scanner(System.in);
ArrayList<Integer> primes = new ArrayList<>();
int num1, num2, numPrime = 0;
System.out.println("Enter number 1:");
num1 = in.nextInt();
System.out.println("Enter number 2:");
num2 = in.nextInt();
for (int x = num1; x <= num2; x++) {
if (isPrime(x) == true) {
primes.add(x);
numPrime += 1;
}
}
System.out.println("There are " + numPrime + " primes in the array.");
System.out.println("Their sum is " + sumArray(primes));
}
public static int sumArray(ArrayList<Integer> arr) {
int sum = 0;
for (int x: arr) {
sum += x;
}
return sum;
}
static boolean isPrime(int n) {
if (n <= 1)
return false;
for (int i = 2; i < n; i++)
if (n % i == 0)
return false;
return true;
}
}
Edhesive 3.7 code practice
Answer: To hard to answer :)
Explanation: hurts my brain
A disciplined, creative, and effective approach to problem solving is needed for project success. The nine-step approach to problem solving begins with develop a problem statement and the ninth step is determine if the problem has been solved. Which of the steps listed in not a step on the nine-step approach?
A. Gather data and verify the most likely causes.
B. Determine the most popular solution.
C. Revise the project plan.
D. Evaluate the alternative solutions.
Answer: Determine the most popular solution.
Explanation:
Some of the approaches to problem solving that are listed here include:
• Gather data and verify the most likely causes.
• Revise the project plan.
• Evaluate the alternative solutions
To solve a problem, one needs to gather the data and verify the likely causes of the problem. This can be done by asking questions, running test, interviewing people, running tests, reading reports, or analyzing data.
The project plan can also be revised. Likewise, when one comes with different solutions, one should weigh the cost and benefits of each in order to choose the best solution.
Determine the most popular solution isn't a correct option.
1. If Earth's plates are constantly moving, why don't we need to update the locations of -
continents on world maps (such as the one above) all the time?
The Value of Fossil Evidence
Answer:
Because the tectonic plates are moving so slowly in such small incraments that it would take a while before there was any noticable change.
Explanation:
Earth's plates are constantly moving, but we do not need to update the locations because the movement of the plates does not dramatically alter the surface of the Earth's landscape.
What are continents?Any of the numerous enormous landmasses is a continent. Up to seven geographical regions are typically recognized by convention rather than by any precise criterion.
The actions of plate movement take place closer to the Earth's crust, beneath the surface of the earth, and in the lithosphere.
The Earth's plates travel deep within the planet toward the crust, but when they intersect, the result is felt as earthquakes on the surface.
Thus, because plate movement has little impact on the terrain and positioning of the Earth's surface, it is not necessary to update the locations of continents on global maps.
To learn more about earth's plates, refer to the below link:
https://brainly.com/question/16802909
#SPJ2
what are the key differences between ides and website builders ?
Answer:
The key differences are as follows:
IDES:
Are usually installed locallyBuild websites by writing and tweaking the source codesWebsite Builders:
Are usually run from an online serverprovides beginners with an easy way to create websitesBuild websites by selection from a number of preset optionsExplanation:
IDE is short for Integrated Development Environment.
They are predominantly designed to ease the use of a specific programming language. In most cases, IDEs contain tools for editing, testing, and converting the code to its final form as an application.
Other functions that come with it are a web server with a control interface, a database management system with a control interface (in most cases, a relational database that functions off of the webserver), a server-side programming language
Cheers!
Which of these is not a valid form
layout in Microsoft Access?
mips Write a program that asks the user for an integer between 0 and 100 that represents a number of cents. Convert that number of cents to the equivalent number of quarters, dimes, nickels, and pennies. Then output the maximum number of quarters that will fit the amount, then the maximum number of dimes that will fit into what then remains, and so on.
Answer:
Explanation:
The following program was written in Java. It creates a representation of every coin and then asks the user for a number of cents. Finally, it goes dividing and calculating the remainder of the cents with every coin and saving those values into the local variables of the coins. Once that is all calculated it prints out the number of each coin that make up the cents.
import java.util.Scanner;
class changeCentsProgram {
// Initialize Value of Each Coin
final static int QUARTERS = 25;
final static int DIMES = 10;
final static int NICKELS = 5;
public static void main (String[] args) {
int cents, numQuarters,numDimes, numNickels, centsLeft;
// prompt the user for cents
Scanner in = new Scanner(System.in);
System.out.println("Enter total number of cents (positive integer): ");
cents = in.nextInt();
System.out.println();
// calculate total amount of quarter, dimes, nickels, and pennies in the change
centsLeft = cents;
numQuarters = cents/QUARTERS;
centsLeft = centsLeft % QUARTERS;
numDimes = centsLeft/DIMES;
centsLeft = centsLeft % DIMES;
numNickels = centsLeft/NICKELS;
centsLeft = centsLeft % NICKELS;
// display final amount of each coin.
System.out.print("For your total cents of " + cents);
System.out.println(" you have:");
System.out.println("Quarters: " + numQuarters);
System.out.println("Dimes: " + numDimes);
System.out.println("Nickels: " + numNickels);
System.out.println("Pennies: " + centsLeft);
System.out.println();
}
}
what are bananas if they are brown
if banans are Brown there bad I think
what is cyber ethics
Answer:
cyber ethics
Explanation:
code of responsible behavior on the Internet. Just as we are taught to act responsibly in everyday life with lessons such as "Don't take what doesn't belong to you" and "Do not harm others," we must act responsibly in the cyber world.
Describe two different examples of potential conflicts, and explain why these conflicts can have a negative impact on
the project If they are not resolved.
Answer:
A conflict is a situation in which two or more parties with opposing interests collide in their positions when trying to obtain a benefit or satisfy their needs. Thus, for example, if two people want to obtain the same thing, there will be a conflict of interest between those people, since only one of them will be able to satisfy their need.
Thus, two examples of conflict are, on the one hand, the clash of interests over a particular thing (two people want the same thing or position); and on the other, the conflict between two people with different and antagonistic personalities (an extroverted and noisy person against another introverted and reserved).
In all cases, a conflict between two people who are working on the same project could lead to a series of negativities that could affect its outcome.
The type of Al that computers can use to generate and understand human speech is called__________
processing
Answer:
Language or Vocal processing
Explanation:
Language processing in AI is used to understand languages, dialects and phrases, these AI have been trained to understand human language.
You can insert video by clicking video drop-down menu on the ______ tab.
i. HOME ii. DESIGN iii. INSERT
choose the correct answersplease tell me the answer right now
a. All methods in an interface must be _________________ _________________________.
b. All variables in an interface must be __________________ ____________________ _______________.
c. Interfaces cannot be _______________________________________ .
d. Interfaces cannot contain _________________________________ methods.
e. Interfaces are considered to be ___________________ _______________________ classes.
Answer:
Explanation:
a. All methods in an interface must be abstract methods.
b. All variables in an interface must be public, static, and final.
c. Interfaces cannot be instantiated. (meaning that they do not have a constructor and cannot be created as a regular object.)
d. Interfaces cannot contain fields, properties, or defined methods. (Everything needs to be abstract)
e. Interfaces are considered to be reference implementation classes
Since no answer options were provided, these keywords all fit the into the sentence and make the sentence true.
how do you open links in this app
Answer:
Hhhhh
Explanation:
Hhhh
Answer:
Explanation:
Don't open the links there viruses
Suppose, for simplicity, that three main parts of a laptop are CPU, RAM, and hard drive;so if one of theses components fails, the laptop fails. Assume that the life times of CPU, RAM, andhard drive are exponentially distributed with mean 3 years, 2 years, and 5 years, respectively. If thecompany that sells these laptops guarantees the replacement of any laptops that fail in the first year, anda replacement costs $500, what would be the average yearly replacement cost
If the company that sells these laptops guarantees the replacement of any laptops that fail in the first year, and a replacement costs $500, what would be the average yearly replacement cost? Assume that on average the company sells 100,000 laptops a year.
Answer:
$32.2 million
Explanation:
1-e^xo/u
U = mean
P(c) = 0.2834
P(r) = 0.3934
P(h) = 0.1813
P = 0.8581-0.2342+0.0202 = 0.6442
Replacement = 500x100,000x0.6442
= 32.2million dollars
What year did the first hovercraft sail on water
what is this car first to awnser is the brianliest
Answer: Lamborghini
Explanation: Is it yours
what is astronaut favourite key on keyboard?
The astronaut favorite key on keyboard is Space-Bar.
What is space bar?This is known to be a long key that is seen at the lower part of a computer keyboard or typewriter used to type space.
Conclusively, to Space Key is known to be the Astronaut's Favorite Key on the Keyboard due to the fact that an Astronaut often travel to Space and work on satellites and as such they loves the space bar, more as it tells more about the Outer Space.
Learn more about astronaut from
https://brainly.com/question/24496270