JAVA
Write a method that takes a parameter for the number of a month and prints the month's name. You may assume that the actual parameter value
passed to the method is always between 1 and 12 inclusive.
This method must be called monthName() and it must have an integer parameter.
Calling monthName(8) should print August to the screen.
You can call your method in the program's main method so you can test whether it works, but you must remove or comment out the main method
before checking your code for a score

Answers

Answer 1

public class MyClass {

   public static String monthName(int num){

       String arr[] = {"January", "February", "March", "April", "May", "June", "July","August", "September", "October", "November", "December"};

       return arr[num-1];

   }

   public static void main(String args[]) {

     System.out.println(monthName(8));

   }

}

I hope this helps.

Answer 2

Methods are blocks of named statements that can be called from other place in the program

The method in java, where comments are used to explain each line is as follows:

//This defines the method

public static void monthName(int month){

//This initializes the array of months

String months[] = {"January", "February", "March", "April", "May", "June", "July","August", "September", "October", "November", "December"};

//This prints the month name

System.out.print(months[month-1]);     }

Read more about similar programs at:

https://brainly.com/question/22589115


Related Questions

what is a computer vhdvsidegvjks

Answers

Answer:

i'm using a computer to answer this question rn

Explanation:

vhdvsidegvjks

what is main function of processing unit?

Answers

Answer:

to control the operation of all part of the computer.

hope it helps.

Answer:

to control the operations of the computer

Explanation:

hope it's help you have a great day keep smiling be happy stay safe ☺


What does an effect allow you to do in
EarSketch?

Answers

Answer:usbebdos did did I’d did d

Explanation:

Bash six ska over five. I did a sis a and

The coordinates that determine the position of an element in space are expressed as:

A. Different Shapes
B. 1, 2, 3
C. X, Y, Z
D. L, T, P​

Answers

Answer:

xyz

Explanation:

think of it like a graph, you graph on the x, y, and z coordinates

Dr. Wayne is trying to developing techniques to cure Parkinson’s disease by inserting genetic material into patients’ cells to counteract defective genes. This type of treatment is called

.

Answers

I think it called gene therapy

Answer:

gene therapy

Explanation:

It is correct. I just did it

Decision support systems help managers use structured data to identify problems and find solutions to business-related problems. The financial management system is an example of this system.

Answers

Answer:

sorry about this

Explanation:

A career in culinary arts can best be described as working in the __________ industry.
A.
food
B.
clothing
C.
computer
D.
entertainment

Answers

Answer:

A-Food

Explanation:

The answer would be A:Food

if you were any type of fnaf charater who would you be and why?

Answers

Answer:

Foxy

Explanation:

Cause he's cool and he's my favorite.

Someone plz answer my question!!
There are infinite black and white dots on a plane. What is the distance between one black dot and one white dot?​ If you get it right I will give you the crown!!!!!​

Answers

Answer:

infinite I know I got it right so might as well give me brainliest :)

Explanation:

a file that serves as a starting point for a new document

Answers

Answer:

The appropriate response is "Template".

Explanation:

A template would be a document that might open new opportunities for such a new folder. Because once you launch a framework, that's already pre-formatted sometimes in a manner. This same template will indeed presumably have such identification and phone number environment throughout the upper left, a person receiving identify location somewhat below something on the opposite side, a response body location further below, as well as a signature, identify at either the lower part.

create a flowchart to print numbers from 1 to 100
( IF U ANSWER PROPERLY I WILL MARK U AS BRAINLIEST)

Answers

Answer:

brainliest plsss

Explanation:

I think so this is what you had asked!!!!!!

hope it helps

you are a bank loan officer. carter has to come into your office and applied for a loan for a car.you ran his credit report, and his score is 541. What will you say to carter?

Answers

Answer:

Carter score falls within the range of scores, from 300 to 579, considered Very Poor. Score is significantly below the average credit score.

Explanation:

KAPWING Video Editing Software allows you to use existing You Tube Videos in your design.

Answers

Answer:

Yea it should, it depends are you using a phone or a PC? because most of the time internally built in editing software on computers is better.

please help which one is the right symbol?​

Answers

Answer:

second one >

hope it helps.

Why is it a good idea not to change the subject line when replying to a message?
O so that the reply is sent to the original sender
O so that the reply does not bounce back as undeliverable
O so that the reply matches with the sender's original message
O so that the reply does not inadvertently include unintended recipients

Answers

Answer:

the correct answer is C

Explanation: i just did it on edge 2021

Answer:

C. so that the reply matches with the sender’s original message

Explanation:

PLS HELP ;CC
The "Rule of Thirds" is compositional technique that was incorporated into photography from __________ .

a
early photographers who were first painters

b
early camera makers who found it was easy to explain to amateur photographers

c
early photo printers who used it and later it became a common rule

d
early SMPTE standards

Answers

Answer:

a

early photographers who were first painters

Explanation:

The Rule of Thirds is a compositional technique which states that image painting, photograph, graphic design should be divided into nine equally proportioned boxes by creating a grid with two vertical and two horizontal lines. The rule of third helps in making the picture more attractive and balanced

The rule of thirds was first used in landscape paintings by painters as early as 1797.

PLEASE HELP ME !!!!!!!!

Answers

Answer:

This is way to long

Explanation:

What are three ways that functions can be useful when you are writing programs

Answers

Answer:

Reduces the overall complexity of your program

Allows you to easily call a function from different parts of your program after defining it.

Helps break a problem into logical chunks

Explanation:

In a computer language, a function is the set of instructions that are made for reducing the need to repeat a large amount of data by breaking it into small chunks of codes and giving concise readable human names.

They thus help in reducing the complexity in writing and maintaining the program, Hence they help in breaking it into logical chunks. They can be useful in increasing the reusability of the code. Can be used as a good alternative. Perform a single high-level task.

Learn more about the three ways that functions can be useful when.

brainly.com/question/13728820.

please help i will give brainliest if right

Which elements are part of the Outlook interface? Check all that apply.

Ribbon
Quick Access Toolbar
Comments Box
Reading Pane
Formula Bar
Command Groups

Answers

Answer:

Ribbon, Quick Access Toolbar, Reading Pane, Command Groups

Explanation:

I did it on edge 2021

The elements which are part of the Outlook interface include ribbon, quick access toolbar, reading pane, and command groups. Therefore, the correct options are A, B, D, and F.

What is Outlook interface?

Outlook Main Interface is the folder pane. Outlook interface usually displays on the left hand side of the screen, and it helps in the Outlook users to switch to different folders and different views in the operating system such as mails, calendar, people, task, notes and all folders.

Basic features of Outlook interface include email service, email search, flagging, and color coding, along with the preview pane options. The calendar function enables scheduling, viewing, and communicating about the different appointments and meetings.

The main elements of the Outlook window include the ribbon, Quick Access Toolbar, Reading Pane, Command Groups.

Therefore, the correct options are A, B, D, and F.

Learn more about Outlook interface here:

https://brainly.com/question/19018627

#SPJ2

What would be the final step to applying your customized voting butons in Outlook messages?
O Type your new choices in the Text Bar.
O Click on Voting Buttons and choose Custom.
O Open the Voting Buttons menu and choose your customized choices.
O Click Submit and your custom voting choices will appear in the message body.

Answers

Answer:

Open the Voting Buttons menu and choose your customized choices.

Explanation:

Answer:

C

Explanation:

what key do I use to start my presentation

Answers

Answer:

The answer to this question is given below in this explanation section.

Explanation:

Knowing how o start a presentation is crucial if you fail to capture the audience attention right of the bat your entire presentation will flop.Few listeners will stick with you to the end and retain what you have told.

That is mildly unpleasant when you are doing an in house presentation in front of your colleagues.But can become utterly embrassing when you are presenting in front of larger audience presentation to prospective customers.

Let you have most of your presentation slides and polished up you dont check and quick and effective power point presentation design tips.Many ideas are broken into bits sized statements for your slides and complemented with visuals.The best way is to appeal and invoke certain emotions with your audience curiosity,surprise fear or good old amusements.

. Which of the following are container elements?

a. bold b. underline c. italics d. all of these

Answers

It’s c cba to explain

Answer:

I think letter b. underline, but not sure

Use the code above to write a program that when run, draws 1000 points
at random locations on a frame as it runs. For an added challenge, have
the 1000 points be in different, random colors.
Can someone actually write code for this pleaseee (IN PYTHON OR EDHESIVE)

Answers

Answer: This is what worked for me

Explanation:

The program is an illustration of frames in Python:

Frames are part of what makes up a graphic user interface program.

The missing code segment in Python, where comments are used to explain each line is as follows:

#This defines the draw handler method

def draw_handler(canvas):

   #This imports the random module  

   import random

   #This generates a random number between 0 and 1000

   randNum=random.randint(0,1000)

   #This following iteration is repeated

   for r in range (600,600):

        #This sets the rgb color code to the random number

        r = randNum; g = randNum; b = randNum

        #This gets the color code

        randRGBcolor = "RGB(" + str(r) + "," + str(b) + ")"

        #This draws the points

        canvas.draw_point([x, x],(randRGBcolor))

At the end of the program, the 1000 points are displayed on the screen

Read more about similar programs at:

https://brainly.com/question/14068778

How do you describe packet switching in your own words

Answers

Answer:

this is your answer bhaiya

Do the lengths of 10,4 and 5 form a triangle explain why please I’m confused

Answers

Answer:

no

Explanation:

Imagine having sticks of these lengths. Attach the 4 and 5 to both ends of the 10. No way you can have them touch each other, not even when the triangle is flat.

The 4 and 5 add up to 9, that is less than 10.

The Triangle Inequality Theorem states that the sum of any 2 sides of a triangle must be greater than the measure of the third side.

Is this good enought to record and edit in 4k UHD? (Ultra High Definition)

Answers

Answer:

It should be, yes

Explanation:

It is yes in my opinion at least so b is the answer

7.5 Code practice Plz answer ASAP

Answers

def calculate_GPA(grade, weight):

   grades = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

   if weight == 0:

       return grades[grade]

   else:

       return grades[grade] + 1

classes = int(input("How many Classes are you taking? "))

total = 0

for x in range(classes):

   letter = input("Enter your Letter Grade: ")

   user_weight = int(input("Is it weighted? (1 = yes) "))

   grade = calculate_GPA(letter, user_weight)

   total += grade

   print("Your GPA score is: ", grade)

print("Your weighted GPA is a",(total/classes))

I wrote my code in python 3.8. I was able to replicate the output in your picture exactly. If you need me to make any changes, I'll do my best.

The function is an illustration of for loops

For loops are used to perform repetitive operations; just like the while loop

The program in Python, where comments are used to explain each line is as follows:

#This defines the studentGPA function

def studentGPA(grade, weight):

   #This initializes a dictionary for all grades

   allGrade = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

   #This sets the return grade to 0

   retValue = 0

   #If the grade is valid

   if grade in allGrade:

       #If the weight is 0

       if weight == 0:

           #Then score is not graded

           retValue = allGrade[grade]

       #If otherwise

       else:

           #This adds 1 to the return grade

           retValue = allGrade[grade]+1

   #This returns the grade point

   return retValue

#The main begins here    

#This gets the number of classes

klass = int(input("How many Classes are you taking? "))

#This initializes the total grade to 0

total = 0

#This following is repeated for each class

for x in range(klass):

   #This gets input for the letter grade

   letterGrade = input("Enter your Letter Grade: ")

   #This gets input for the weight

   weight = int(input("Is it weighted? (1 = yes) "))

   #This gets the corresponding grade

   grade = studentGPA(letterGrade, weight)

   #This prints the grade point

   print("Your GPA score is: ", grade)

   #This calculates the total grade

   total += grade

#This calculates the GPA

GPA = total/klass

#This prints the GPA

print("Your weighted GPA is a",GPA)

Read more about for loop at:

https://brainly.com/question/12736327

pleasee help meeeeeeeeee I’m stuckk!!!!

Answers

Answer: Charles Babbage

Answer:

a

Explanation:

trust

Amy wants to make an exact replica of a specific area in an image. Which tool Amy will use?

Answers

Answer:

Explanation:

.

What are a few ways to format the text in a mail message in Outlook? Check all that apply.
Attach a file to the message to be opened separately.
Open the Font dialog box to access more detailed options.
Increase or decrease the indent.
Copy and paste text from a Word document
Use the Mini Toolbar to change the font appearance.
Click the Format Painter to paste a saved font format.

Answers

Answer:

The answers are b,c,d,e,f

Explanation:

Other Questions
Why did Adams send negotiators to France during his presidency? Which of the following is NOT a heterogenous mixture:SaladBeef StewCereal in milkVinegar PLS HELP! In paragraph 2, the narrator says, Noah hasn't landed his ark to - *20 pointsintroduce another character in the storyshow that the story is set in the time of the Bibleshow that Tashon enjoys Bible storiesshow that the land has been covered by floodwater Help. It is due today HELLLLLLPPPPPPPP plz need rest Why do you think we still tell tales of Lincoln's commitment to fairness? In paragraph form, describe what the five characteristics of classical civilizations are. How do I work this out Select the correct answer.The Arab oll embargo forced the United States to produce more oil domestically. How did this incident affect Oklahoma's economy?. Oklahoma's economy slowed because the embargo increased the price of oil and sales fell.B. Oklahoma's economy grew because many investors put money into the state's oil industry.Oc. Oklahoma's economy remained unaffected because it had a successful oil industry before the embargo,D. Oklahoma's economy slowed because the state depended on oil for several economic activities. Read the quotation below: A house divided against itself cannot stand.Abraham Lincoln, 1858, repeated from the New TestamentWhich technique is used in the quotation? Bias Propaganda Symbolism Opinion please help meMatch the technology with the appropriate task.1. graphics software2. word processor3. CAD4. laptop5. GPS A company reported average total assets of $1,240,000 in Year 1 and $1,510,000 in Year 2. Its net operating cash flow was $102,920 in Year 1 and $138,920 in Year 2. (1) Calculate its cash flow on total assets ratio for both years. (2) Did its cash flow on total assets improve in Year 2 versus Year 1 What is ghe solution to this equation?02(x - 20) = 44 - x help plsitsduetmrplsplsill give 50 points How many solutions are in this equation3(9v + 2) = 2(10 + 11v Which of the following reagents can be used to distinguish between sodium sulphite and sodium sulphate?(1) iron(II) chloride solution(2) acidified potassium permanganate solution(3) concentrated nitric acidA. (1) onlyB. (2) onlyC. (1) and (3) only D. (2) and (3) onlyplease please help this confused me for so long Number of atoms in 4.5 moles of Au? HC2H3O2 chemical compound? A patient needs a total dose of 50 grams of albumin. The pharmacy has 50 mbottles of 25% Albumin in stock. How many bottles should the pharmacytechnician prepare to provide the required dose? HURRY. Why is transcription said to be unidirectional?