subject
English, 21.04.2020 19:25 Tboogie2037

Write a Java program to do the following:-
1- Write a method void Print(int LastNumber, int numbersPerLine) that receives two integers lastnumber and numbersPerLine. The program should print all the numbers from 1 to lastnumber, numbersperline each line. The last line should contain the remaining numbers.

Ex: if lastNumber=13 and numbersPerLine=5 Ex:if lstNumber=21 and numbersPerLine=5 Output should be: Output should be 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 6 7 8 9 10 11 12 13 11 12 13 14 15 16 17 18 19 20 21

2- Write a method called Multi(int n1,int n2) that receives two integers n1 and n2, the method should print all the numbers that result from multiplying all numbers from 1 to n1 by all numbers from 1 to n2. Ex: if n1=6 and n2=7, the output would be as follows: 1 2 3 4 5 6 7 2 4 6 8 10 12 14 3 9 … .. .. 6 12 18 24 30 36 42

3- Test your Program by invoking all methods

ansver
Answers: 3

Another question on English

question
English, 21.06.2019 19:50
What would happend if organ systems failed to work together
Answers: 2
question
English, 21.06.2019 23:00
Dream variations by langston hughes analysisand “the tropics in new york” by claude mckay both depict a longing for another place. what are the places and what do they represent?
Answers: 3
question
English, 22.06.2019 01:30
Create a well-crafted essay of 1-2 pages outlining a likely theory of king tutankhamun’s death at the age of nineteen. your goal is to convince peers your age that this is the most reasonable theory according to the evidence. incorporate the subjunctive and conditional moods within your writing. use the following rubric to guide your writing. remember to check your spelling (by using a spell checker and also against the original text) to ensure the proper spelling of names and places in king tut’s world. reminder: spell checkers are great, but they’re not always right. think about terms specific to egypt or even tutankhamun’s name. a spell checker won’t know if you’re spelling these correctly, so check with the reading to keep consistent. rubric criterion exceptional capable developing beginning points earned ideas & content main claim supporting details sources are cited clear, focused, interesting ideas with appropriate detail, sources are cited evident main idea with some support which may be general or limited, sources are mentioned main idea may be unclear; supporting detail is vague or off topic, some source information used central idea or theme is not stated; supporting detail may be nonexistent, no sources mentioned organization structure (claim/counterclaim) introduction conclusion strong organization; seamless paragraph transitions; effective and engaging intro and conclusion organization is appropriate but conventional; attempt at introduction and conclusion attempts at organization, inappropriate use of lists or bullets; introduction and conclusion are not developed no introduction or conclusion; no clear organizational framework or transitions voice personality sense of audience appropriate to audience; expressive, engaging, sincere voice is appropriate to topic, but inconsistent or dry voice may be inappropriate; writing may seem mechanical writer’s voice is inappropriate or nonexistent word choice precision effectiveness imagery broad range of descriptive words; creative examples, vivid details and images language is functional and appropriate; descriptions may lack detail or be overdone words may be correct but simplistic; no attempt at detail, description, or examples word choice is limited, words are often misused; supporting detail and examples are nonexistent sentence fluency rhythm, flow variety easy flow and rhythm; good variety in length and structure sentences are appropriate but lack variety and length awkward phrasing and structure, similar patterns and choppy language sentences are incomplete or difficult to follow, language is confusing conventions age appropriate spelling, capitalization, punctuation, grammar strong use of correct conventions; errors are few and minor most writing conventions correct; occasional high profile errors frequent errors; most do not interfere with readability frequent errors interfere with readability
Answers: 1
question
English, 22.06.2019 07:50
What is the difference between theme and universal theme? theme refers to the central insight revealed through an american story, while universal theme refers to a theme revealed through a story of foreign origin. theme refers to a central message that applies to anyone, anywhere, while universal theme is particular to a certain individual, historical context, or culture. theme refers to the central insight revealed through a story, while universal theme refers to a theme that applies to anyone, anywhere. theme and universal theme are two terms that have the same definition.
Answers: 2
You know the right answer?
Write a Java program to do the following:-
1- Write a method void Print(int LastNumber, int n...
Questions
question
Social Studies, 25.11.2021 14:00
question
Mathematics, 25.11.2021 14:00
question
Mathematics, 25.11.2021 14:00
Questions on the website: 13722362