happiness certain songs bring joy to certain people
50 PTS
in Java
Write a program with a method called passwordCheck to return if the string is a valid password. The method should have the signature shown in the starter code.
The password must be at least 8 characters long and may only consist of letters and digits. To pass the autograder, you will need to print the boolean return value from the passwordCheck method.
Hint: Consider creating a String that contains all the letters in the alphabet and a String that contains all digits. If the password has a character that isn’t in one of those Strings, then it’s an illegitimate password!
import java.util.Scanner;
public class JavaApplication46 {
public static boolean passwordCheck(String pass){
String alphanum = "abcdefghijklmnopqrstuvwxyz1234567890";
boolean legit = true;
if (pass.length()>= 8){
for(int i = 0; i < pass.length(); i++){
if (alphanum.indexOf(pass.charAt(i)) != -1 && legit != false){
legit = true;
}
else{
legit = false;
}
}
}
else{
legit = false;
}
return legit;
}
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter a password: ");
String password = scan.next();
System.out.println(passwordCheck(password));
}
}
I hope this helps!
Select all the lines that have a slope of 5/2
Answer:
Add a picture, then ask the question again.
Pls Hurry!!
What is the missing line of code?
>>> sentence = "Programming is fun!"
>>> _____
'gra'
sentence[2:5]
sentence[3:5]
sentence[3:6]
sentence[2:6]
Answer:
The answer is [3:6]
Explanation:
At first i thought it would be sentence[3:5], but when i put my theory to the test, it was actually sentence[3:6].
hope i helped
Answer:
the answer is [3:6]
Explanation:
Seneca has just applied conditional formatting and realizes that she has made a mistake. Which action should she take to fix the mistake?
A) Clear the rule she created by going to the Conditional Formatting Rules Manager dialog box and deleting the rule.
B) Clear all rules that have been applied to the worksheet or selected range by clicking the Clear Rules button.
C) Use the Undo button or Ctrl+Z.
D) Right-click the area where the conditional formatting rule has been applied, and select Clear Rule from the menu list.
Answer:
its b
Explanation:
on edg
Answer:
b
Explanation:
can anyone answer this
Answer:
I dont see the question
Explanation:
Which of the following expressions shows the correct amount of sales tax for the computer at Store A? Select all that apply.
6%($1,200)
0.6($1,200)
0.06($1,200)
One-sixth($1,200)
StartFraction 3 over 50 EndFraction($1,200)
Answer:
6%($1,200) 0.06($1,200) 3/50($1,200)
Explanation:
hope this helps sorry if i am wrong
have a nice day
Answer:
a,c,e
Explanation:
it just makes sense U^U
The sales of last 6 months are stored in a list,
as follows
list1 = (12500, 35000, 12000, 40000, 55000,
60000]
How can you calculate the average sales?
list1 = [12500, 35000, 12000, 40000, 55000,60000]
print(sum(list1)/len(list1))
We take the sum of all the elements in the list and divide the sum by the quantity of the elements. You can put however many elements in this list and you'll always get the average using the algorithm above.
The meaning of docile can be determined by the... context clue. synonym atonym or explanation
Answer:
Synonym
Explanation:
I'm pretty sure it's either synonym or explanation, but if there isn't an explanation, it's almost always synonym... so... synonym is correct.
Answer:
it is explanation
Explanation:
trust me
Order the steps for accessing the junk email options in Outlook 2016
Select Junk Email Options
Click the Junk button
Select a message
Choose one of the protection levels
Locate the Delete group on the ribbon
Answer:
To access the the junk email options in Outlook 2016, follow the following steps.
1. Click the Junk Button
This will take you to the Junk messages that you have.
2. Select a message
Select a junk message from the list.
3. Locate the Delete group on the ribbon
The Junk email options is located in the 'Delete' group on the ribbon in the Home tab.
4. Select Junk Email Options
Click on the Junk email options button and a popup window will appear.
5. Choose one of the protection levels
Select the protection level you want from the various options listed including low, high, automatic etc.
Answer:
select a message, locate the Delete group on the ribbon, click the junk button, select junk email options, choose one of the protection levels.
Explanation:
Justify the use of an e-diary in the organisation of the meeting.
Answer:
It can be used to easily organize stuff
Explanation: It can be easily used to organize meetings & write important stuff, and you will also never run out of pages, which is better than having no diary.
While an image is still being editing, it is best to save it as a PDF. Group of answer choices True False
Answer:
f
Explanation:
The ability to understand a person's needs or intentions in the workplace is demonstrating
personnel
perception
speaking
listening
Answer:
perception i do believe is the answer
Need answer Asap!!!! Which file type is the best choice if the image will be made into a billboard?
Answer:
A .psd file
Explanation:
Adobe photoshop files are always going to be same and there is no compression. Even better .ai files are saved into equations so you can't alter or dumb it down.
1.What is the measurement unit of clock speed of computer
Answer:
Hertz (Hz)
Explanation:
Prepare a profile on major universities in the country Nepal
Answer:
Formal higher learning in Nepal began with the establishment of Tri-Chandra College in 1918, the first college in the country. Until 1985, Tribhuvan University (TU) was the only university in the country. The second university to be founded was Mahendra Sanskrit University. The inception of this university was soon followed by Kathmandu University in 1990, and Purbanchal and Pokhara Universities in 1995 and 1996, respectively. Many schools and colleges are run privately but none of the universities in Nepal are private.
This list includes all notable universities and colleges/campuses in Nepal. Entries are organised by courses offered, and listed in alphabetical order. Some entries that provide multiple courses may be duplicated in each of the relevant categories.
There are fourteen universities in Nepal. They are: Khwopa University (Proposed)
Agriculture and Forestry University in Chitwan
Far-western University in Kanchanpur
Gandaki University in Tanahun
Kathmandu University in Dhulikhel
Lumbini Bouddha University
Madan Bhandari University of Science and Technology
Manmohan Technical University in Biratnagar
Mid Western University in Birendranagar
Nepal Open University[1][2] in Lalitpur
Nepal Sanskrit University
Pokhara University in Pokhara
Purbanchal University in Biratnagar
Rajarshi Janak University in Janakpurdham
Tribhuvan University in Kirtipur
The university that will be profiled in their case is the Agriculture and Forestry University, Chitwan, Nepal.
The Agriculture and Forestry University, Chitwan, Nepal offers undergraduate, graduate, and PhD programs in agricultural sciences.
The university has several faculties such as the faculty of agriculture and animal sciences, fisheries, and aquaculture.
Learn more about universities on:
https://brainly.com/question/25853486
Question 1 (10 points)
When using MLA format your font type and font size should be what?
Question 1 options:
Rockwell 12
Calisto 11
Times New Roman 11
Times New Roman 12
Question 2 (10 points)
What tab would you go to to add citations to your paper so you can include your source information?
Question 2 options:
Insert
Design
View
References
Question 3 (10 points)
What tab do you go to to put a header on your paper
Question 3 options:
References
Insert
Layout
Home
Question 4 (10 points)
When the same word is used in multiple locations or a word is used that was not quite appropriate, a thesaurus can be used to look up a (n) ____________ or word similar in meaning.
Question 4 options:
Synonym
Homonym
Antonym
Metronym
Question 5 (10 points)
In Word you can force a page break
Question 5 options:
By positioning your cursor at the appropriate place and pressing the F1 key
By hitting the enter key twice really fast
By clicking the Insert Tab and selecting Page Break in the ribbon
By changing the font size of your document
Question 6 (10 points)
In your ruler there are two triangles. The triangle on top that points down is called
Question 6 options:
First Line Indent
Hanging Indent
Tab
Left Indent
Question 7 (10 points)
Which would you choose to save a document with a new name?
Question 7 options:
Press Ctrl+S
Click File, Save
Click Tools, Options, Save
Click File, Save As
Question 8 (10 points)
To put a ruler on your screen to help you with spacing and alignment on your paper you would go to this tab
Question 8 options:
Insert
References
Design
View
Question 9 (10 points)
User can use ______ commands to search for and correct words in a document
Question 9 options:
Copy and Paste
Find and Replace
Header and Footer
Print and Print preview
Question 10 (10 points)
What tab do you go to for the spelling and grammar check?
Question 10 options:
Home
Review
Insert
File
Answer:
Find and replace header and footer
How do information systems help organizations?
Answer:
Information systems assist in disseminating information by allowing managers and other organization leaders to store data in folders and documents that can be seamlessly shared with the appropriate employees.
Explanation:
PLEASE HELP!!
Computer networks allow computers to send information to each other. What is the term used to describe the basic unit of data passed from one computer to another?
message
package
packet
transmission
Answer:
Paquete de red o paquete de datos es cada uno de los bloques en que se divide la información para enviar, en el nivel de red. Por debajo del nivel de red se habla de trama de red, aunque el concepto es análogo. En todo sistema de comunicaciones resulta interesante dividir, la información a enviar, en bloques de un tamaño máximo conocido. Esto simplifica el control de la comunicación, las comprobaciones de errores, la gestión de los equipos de encaminamiento (routers), etcétera.
Al igual que las tramas, los paquetes pueden estar formados por una cabecera, una parte de datos y una cola. En la cabecera estarán los campos que pueda necesitar el protocolo de nivel de red; en la cola, si la hubiere, se ubica normalmente algún mecanismo de comprobación de errores.
Explanation:spero teyaudee
Answer:
Packet
Explanation:
A data packet is the precisely formatted unit of data that travels from one computer to another.
(Confirmed on EDGE)
I hope this helped!
Good luck <3
please respond not with answer but with comment.
Answer:.I used to play it but now I don’t;—;
Explanation:
Which kind of a person will you be if you prove to be accountable for your actions?
Answer: You would be a person of integrity.
Explanation: Look up Integrity for details.
Umm, my computer is being rlly wierd and not letting me give brainliest to someone, anybody know what to do???
Answer:
just restart it and when the computer is done restarting then repeat the process once more. This is what i did and it made a huge difference.
Explanation:
This resets the main hard drive and the reboots the system entirely. It helps clear out bugs and fixes any and all small issues.
a.
Define a computer with its proper meaning.
Answer:
Computer
Explanation:
a programmable electronic device designed to accept data, perform prescribed mathematical and logical operations at high speed, and display the results of these operations.
Answer:
computer
Explanation:
An electronic machine that processes, stores data, and does calculations.
how to take a pic with a cumputer
Answer:
Ctrl+Shift+4
Explanation:
Answer:
Use Snip+Sketch on your taskbar
It looks like this~
the contents in cells are A1 through A6 are 6,3,4,7,9 and 7. What function would return the answer 6?
Explanation:
hsidjdujdn I have been trying the new year with everything else was there to
Can someone answer the first question for me please I will give brainliest
Answer:
wired because if its wireless the the CONNECTION could break up and people would make people mad and it will be a better result in the long run
Someone plz im begging for ur help plzz??
Answer:
woah what subject is this-
Explanation:
PLEASE HURRY!!
Look at the image below
Answer:
Second part:
answer = multiply(8, 2)
First part:
def multiply(numA, numB):
return numA * numB
Third part:
print(answer)
Explanation:
When creating a function, we always start with def function_name(): so the code for the first line is:
def multiply(numA, numB):
return numA * numB ( * symbol refers to multiplication)
We are now left with two pieces of code: answer = multiply(8, 2) and print(answer). Since we need to always define a variable before using it, answer = multiply(8, 2) will come before print(answer).
Resulting Code:
def multiply(numA, numB): <- first part
return numA * numB
answer = multiply(8, 2) <- second part
print(answer) <- third part
Hope this helps :)
ABC IF U HAVE A LEGENDARY PET ON ADOPT ME OR ANYTHING COOL!! <3
Answer:
ABC PLEASE
Explanation:
Answer:
ABC i have mega owl and neon cow and mega frost <3
Which of the following ideas would not be appropriate for an essay
comparing two dog breeds?
A. Terriers are feisty and smart, which can cause headaches for their
owners.
B. My dog Sally would play fetch for hours.
C. With a couple of exceptions, terriers are smaller than retrievers.
O D. Broadly speaking, retrievers are docile and friendly.
Answer:
B.
Explanation:
The following ideas would not be appropriate for an essay comparing two dog breeds: My dog Sally would play fetch for hours. Thus option (B) is correct.
What is an essay?An essay is defined as a brief formal piece of writing and an essay deals with a particular subject. It is generally written to try to influence the reader using selected research evidence.
In general, an academic essay has three parts:
An introduction part ,that provides the reader an idea of what they are about to learn and presents an argument in the form of a thesis statement
A body part, or middle section, that provides evidence used to prove and persuade the reader to accept the writer's particular point of view
A conclusion that summarizes the content and findings of the essay.
The following ideas would not be appropriate for an essay comparing two dog breeds: My dog Sally would play fetch for hours. Therefore, option (B) is correct
Learn more about an essay here:
https://brainly.com/question/20426054
#SPJ5
Complete the sentence.
A _______ error might appear when you are attempting to view a secure web page
Answer:
An internal server error