Java Eclipse homework. I need help coding this

Project Folder: Lesson 03
package: challenge3B
Class: ChallengeProject3B

Complete the code challenge below.

(You will need to use escape sequences to print the \ and “ characters )

Write a program that displays the following:

1. Write code that displays your name inside a box on the console screen, like this:

+-----------------+

­­| Your Name |

+-----------------+

2. Write code that prints a face, using text characters, hopefully better looking than this one:

//////

| o o |

(| ^ |)

| \_/ |

-------

3. Write code that prints a tree:

/\

/ \

/ \

/ \

--------------

“ “

“ “

“ “

Answers

Answer 1

public class ChallengeProject3B{

   public static void main(String [] args){

       System.out.println("+-----------------+");

       System.out.println("|   YOURNAME      |");

       System.out.println("+-----------------+");

       System.out.println("\n//////");

       System.out.println("| o o|");

       System.out.println("|\\_/|");

       System.out.println("-----");

       System.out.println("\n/\\");

       System.out.println("/\\");

       System.out.println("/\\");

       System.out.println("/\\");

       System.out.println("--------------");

   }

}

I hope this helps!


Related Questions

Which IEEE standards define Wi-Fi technology?

network standards

802.11 standards

111.82 standards

fidelity standards

Answers

Answer:

802.11 standards

the answer is:

b. 802.11 standards

How would an assignee enter details, such as mileage and billing information, for a task?

Create a new task, and enter the details.
Open the status report, and enter the details.
In the main task window, click the Details button.
Within the assigned task window, scroll to the bottom.

Answers

Answer:

It's C

Explanation:

On edg

Answer:

C is correct

Explanation:

I got it on edg

Shana works for a company that makes industrial kitchen equipment that is sold to cafeterias and restaurants. She helps the company’s sales representatives create presentations for clients. They regularly use a custom PowerPoint template to craft their pitches. The sales reps have asked for a slide that will allow them to add a diagram showing the benefits of the equipment they sell.

What steps should Shana take to meet the needs of the company’s sales representatives?

Insert a slide for a diagram each time a sales rep needs to create a new presentation.
In the template’s Slide Master tab, use Master Layout to pick a placeholder for a diagram.
In the template’s Slide Master tab, select Insert Layout, name the layout, and insert a placeholder.
Save a brand-new presentation using the template, select Insert, and choose Charts from the Illustrations command group.

Answers

Answer:

Its C on edg

Explanation:

100%

Answer:

c

Explanation:

Consider the GBN protocol with a sender window size of 4 and a sequence number range of 1,024. Suppose that at time t, the next in-order packet that the receiver is expecting has a sequence number of k. Assume that the medium does not reorder messages. Answer the following questions: What are the possible sets of sequence numbers inside the sender’s window at time t? Justify your answer. What are all possible values of the ACK field in all possible messages currently propagating back to the sender at time t? Justify your answer.

Answers

Answer:

Follows are the solution to this question:

Explanation:

In point a:

N = Size of window = 4

Sequence Number Set = 1,024

Case No. 1:

Presume the receiver is k, and all k-1 packets were known. A window for the sender would be within the range of [k, k+N-1] Numbers in order

Case No. 2:

If the sender's window occurs within the set of sequence numbers [k-N, k-1]. The sender's window would be in the context of the sequence numbers [k-N, k-1]. Consequently, its potential sets of sequence numbers within the transmitter window are in the range [k-N: k] at time t.

In point b:

In the area for an acknowledgment (ACK) would be [k-N, k-1], in which the sender sent less ACK to all k-N packets than the n-N-1 ACK. Therefore, in all communications, both possible values of the ACK field currently vary between k-N-1 and k-1.

What is Naptha used for?

Answers

Answer:

Naphtha is used to dilute heavy crude oil to reduce its viscosity and enable/facilitate transport; undiluted heavy crude cannot normally be transported by pipeline, and may also be difficult to pump onto oil tankers. Other common dilutants include natural-gas condensate, and light crude.

Answer:

Naphtha is used for laundry soaps and clearing fluids

High Hopes^^

Barry-

What is the appropriate guidelines to create and manage files

Answers

Answer:

1. Do not copyright

2. Nothing illegal

3.Do not put personal info

Explanation:

The CPU is located on what part of the computer?

the motherboard

the system bus

the random access memory

the hard drive

Answers

Answer:

the motherboard

Explanation:

The answer for this question is the first one.

You can copy and paste ________ from excel to powerpoint

Answers

Answer: data

Explanation:

Your answer is:data

Kim frequently saves her PowerPoint files in a different format. So, she decides to add a command for this action to the Quick Access Toolbar. Complete the steps to follow for this task.

1. Select a drop-down menu at the top of the screen.

2. Choose
from the Customize Quick Access Toolbar list.

3. A Quick Access Toolbar dialog box opens.

4. In the
section, select
.

5. Choose Save As Other Format.

6. Click the
button, and click OK.

Answers

Answer:

More Commands, Choose Commands from, All commands, Add

Explanation:

Correct on Edg

More Commands, Choose Commands from, All commands.

What is Commands?

One form of statement that tells someone what to do is a command. Additional sentence types include inquiries, exclamations, and declarations.

Usually, but not always, command phrases begin with an imperative (bossy) verb because they demand that the subject take an action.

Children should first learn about and be able to recognize the word classes noun, verb, adjective, and adverb before being taught commands. They can start working on instructions and the usage of imperative verbs after they are familiar with these.

Therefore, More Commands, Choose Commands from, All commands.

To learn more about Commands, refer to the link:

https://brainly.com/question/30319932

#SPJ3

What is the name of the file in which this
program is stored: public class myProgram
A. myProgram.class
B. myProgram.java
C. myProgram.jgrasp
D. myProgram.doc

Answers

Answer:

B

Explanation:

i’m an information technology  student and as I remember we used this  name

What output is produced by
this code?
System.out.print("Computing\nisInfun");
A. Computing is fun
B. Computing\nis\nfun
C.
Computing
is
fun
D. This code will not produce any output, it contains an error.

Answers

Answer:

The answer to this question is given below in the explanation section. the correct option is C.

Explanation:

This is Java code statement:

System.out.print("Computing\nisInfun");

The output of this code statement is

Computing

isInfun

However, it is noted that the C option is not written correctly, but it is guessed that it will match to option C.

This Java code statement first prints "Computing" and then on the next line it will print "isInfun" because after the word "Computing" there is a line terminator i.e. \n. when \n will appear, the compiler prints the remaining text in the statement on the next line.

Bluetooth's pan are also known as______.​

Answers

Answer:

personal area network..??

Explanation:

Gloria is adding footers to a PowerPoint template for students to use in a literature class. Each student must choose an author and make a presentation about their life and work. She wants the first slide in each presentation to show only the author’s name and photo. On subsequent slides, she wants to include a footer with a date and time that changes depending on the actual date of each presentation.

To insert the footer according to her plan, what must Gloria click in the Header & Footer dialog box?

Fixed
Preview
Slide number
Don’t show on title slide

Answers

Answer:

Its D

Explanation:

On edg

Answer: don’t show on title slide

Explanation:

Write your code to define and use two functions. The Get User Values function reads in num Values integers from the input and assigns to user Values. The Output Ints Less Than Or Equal To Threshold function outputs all integers in user Values that are less than or equal to maxVal. num Values indicates the number of integers in user Values. void Get User Values(int user Values[], int num Values) void Output Ints Less Than Or Equal To Threshold (int user Values[], int maxVal, int num Values)

Answers

Answer:

#include <iostream>

#include <vector>

using namespace std;

/* Define your function here */

vector<int> GetUserValues(vector<int>& userValues, int numValues) {

  int tmp = 0;

  vector<int> newVec;

 

  for(int i = 0; i < numValues; i++) {

     cin >> tmp;

     newVec.push_back(tmp);

     

  }

 

  return newVec;

}

void OutputIntsLessThanOrEqualToThreshold(vector<int> userValues, int upperThreshold) {

  for (int i = 0; i < userValues.size(); ++i) {

     if(userValues.at(i) < upperThreshold) {

          cout << userValues.at(i) << " ";

     }

  }

 

  cout << endl;

}

int main() {

  vector<int> userValues;

  int upperThreshold;

  int numValues;

 

  cin >> numValues;

  userValues = GetUserValues(userValues, numValues);

  cin >> upperThreshold;

  OutputIntsLessThanOrEqualToThreshold(userValues, upperThreshold);

  return 0;

}

Explanation:

Perhaps their is a better way to code this, but I couldn't figure out what to do with the pointer in the first function.

Please help I upped the points and please don't answer if you don't have the answer..

3. Describe two of your long-term financial goals, and explain why these goals are important to you. List three steps that might help you accomplish this goal. (4-6 sentences. 2.0 points)

4. Describe and example of common financial resource, and example, and a debt. These can be examples from your own life or from other people you know or can imagine. (3-6 sentences. 3.0 points)

Answers

Answer:

3. Paying for my daughter to attend college and building a life outside of struggle. These goals must be accomplished by me finishing school, going onto college and maybe even starting my own business. I must set an appropriate example for my daughter to learn from someone who she believes in. Starting a family business to pass down to generations will be an excellent way to start financially planning now ahead of time.

4. Living in a family of mines, common financial resource is either government assisted or public security.An expense that I cannot escape now is the caring for of my daughter which will vary as she get older. Lastly a debt would be the over spending of credit cards with no money to pay it back as the interest rates climb.

Explanation:

After modifying a numbered list in her presentation, Su notices the numbers and the text are too close to each other. She knows she can solve this issue by using the hanging indent marker. Unfortunately, the ruler is not visible in her PowerPoint workspace.

Which tab and command group should she use to access the ruler? (View, Show or Insert, Add-ins or Home, Paragraph)
After selecting the numbered list, in which direction should she drag the hanging indent marker to increase the space between the numbers and the text? (upward or downward or to the left or to the right)

Answers

Answer:

1. View, show

2. to the right

Explanation:

On edg

Answer:

1) View, Show

2) to the right

Explanation:

Submit your design an informative computer safety brochure for a specific cybercrime that targets an audience of your choice.

Answers

USE SOCRACTIC IT WOULD DEFINITELY HELP ANSWER THIS QUESTION Try it

Which tasks can Kim complete using the Customize Ribbon dialog box? Check all that apply.

Rename existing ribbon tabs.
Rearrange ribbon commands.
Add a new main tab to the ribbon.
Add commands to existing groups.
Create new PowerPoint commands.
Add a new contextual tab to the ribbon.

Answers

Answer:

Its A, B, C, and F

Explanation:

On edg

Rename existing ribbon tabs, Rearrange ribbon commands, Add commands to existing groups and Add a new contextual tab to the ribbon.

What is PowerPoint presentation?

A PowerPoint presentation is a type of visual aid that creates a slideshow of information that can be presented to an audience using Microsoft PowerPoint software.

It is typically made up of a series of slides that include text, images, charts, graphs, and other multimedia elements to convey information to the audience.

Kim can complete the following tasks by using the Customize Ribbon dialog box:

Existing ribbon tabs can be renamed.Rearrange the commands on the ribbon.To existing groups, add commands.To the ribbon, add a new contextual tab.

Thus, Kim cannot use the Customize Ribbon dialog box to add new PowerPoint commands or a new main tab to the ribbon.

For more details regarding presentation ,visit:

https://brainly.com/question/14498361

#SPJ7

Brian needs to assign a macro to a button on the ribbon. Where should he go to achieve this goal?
Record Macro dialog box
Macros dialog box
Insert tab, Insert Macro icon
Customize the Ribbon area of the Word Options dialog box

Answers

Answer: A. Record Macro dialog box.

Explanation:

Answer: a

Explanation:

If you are wanting to change programs, when do you need to make this request?
a.To change programs, you must contact your advisor or counselor and complete the change of program application during an open application window.
b.You can change at any time; just email your advisor regarding the change.
c.You can never change programs.
d.You do not need to notify anyone. You just need to start taking courses for the desired program.

Answers

Answer:

If your discussing colleges and degrees, you cant take courses your not autorized to take.

So if you have one major and wish to change to another then you need to discuss with a student advisor or counseler so they can make the changes. They will also discuss which classes are necessary for your program of choosing, making sure all your requirements are completed.

Explanation:

In this lab you are asked to declare two variables of type integer: userNum and x. The user should input should be stored using scanf statements. Then you are asked to divide the value for userNum by x three times(three different operations). Each time you do the division, assign the value to userNum overwriting the previous value and print it out using a print statement. Do this three times. In this case there is only one new line print statement at the end.
#include
int main(void) {
int x;
int userNum;
scanf("%d %d" , &userNum, &x);
userNum = (double)userNum / x;
printf("%d " , userNum);
userNum = (double)userNum / x;
printf("%d " , userNum);
userNum = (double)userNum / (double)x;
printf("%lf\n" , (double)userNum);
return 0;
}
my input is 100 2
my output is 50 25 12.000
8 months ago

Answers

Answer:

See Explanation

Explanation:

Your program is correct and it follows the correct sequence; however, the reason you keep getting integer result is because the question requires that you declare both variables as integer.

The only modification required in your program is to change change #include to #include <stdio.h> for the program to be free of error.

Passivity can harm relationships because those who are passive
a. Have open relationships with others
b. Tend to store up hurt feelings, leading to resentment
C. Typically have excessive self-esteem
d. Are free from self doubt and worry

Answers

Answer:

B. Tend to store up hurt feelings, leading to resentment

Explanation:

May I have brainliest please? :)

Passivity can injure relationships because those who are passive that can tend to store up hurt impressions, leading to resentment.

What is the Passivity?

passiveness or Passivity is defined as Only the feeling of repository visitors that pass before his paintings get down me more than this charlatan, and they may have a hunch that they are being duped, but they are unable to accept the information of their eyes.

Passivity can ruin relationships because passive people prefer to hold on to upset sentiments, which can develop to resentment.

Therefore, option b is correct.

Learn more about the Passivity, refer to:

https://brainly.com/question/20924905

#SPJ2

easy points
Cats or dogs? :D

Answers

Cats are better than dogs

Which tool did Adnan use to modify the image?

rotation handle
left sizing handle
top sizing handle
corner sizing handle

Answers

Answer:

D

Explanation:

Answer:

corner sizing handle

Explanation:

You are allowed to use up to 5 images from one artist or photographer without
violating Copyright laws

Answers

If it’s a true or false question, then I think it’s false because I’m pretty sure you have to give credit.

Write both an iterative and recursive solution for the factorial
problem.

Answers

Answer:

Explanation:

Recursive:

C++ program to find factorial of given number  

#include <iostream>  

using namespace std;  

unsigned int factorial(unsigned int n)  

{  

   if (n == 0)  

       return 1;  

   return n * factorial(n - 1);  

}  

 

// Driver code  

int main()  

{  

   int num = 5;  

   cout << "Factorial of "

        << num << " is " << factorial(num) << endl;  

   return 0;

Iterative:

// C++ program for factorial of a number  

#include <iostream>  

using namespace std;  

 

unsigned int factorial(unsigned int n)  

{  

   int res = 1, i;  

   for (i = 2; i <= n; i++)  

       res *= i;  

   return res;  

}  

 

// Driver code  

int main()  

{  

   int num = 5;  

   cout << "Factorial of "

        << num << " is "

        << factorial(num) << endl;  

   return 0;  

}

RAM
Clear sel
19. Which computer memory is used for storing programs and data
currently being processed by the CPU?
Mass memory
RAM
O Neo-volatile memory

Answers

Answer:

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

Explanation:

The correct answer is RAM.

RAM is used for storing programs and data currently being processed by the CPU.  So, the data in the RAM, can be easily accessible and processed by the CPU more fastly.

While Mass memory and neo volatile memory is not correct options. because these types of memory can stores a large amount of data but CPU fetch data from these memories into RAM. and, RAM can only be used by the CPU when performing operations.

What is a backdoor?
A. A different sign-in page to log into a computer
B. An unrecognized entry into a computer or system
C. A fake version of software to access a computer system
D. An administrative login feature of computer software

Answers

B. Generally backdoors are logins/access to something without permission and without admins knowing.

Which filter allows you to impart a stamping or raising effect in an image?

A. Stylize filter
B. Noise filter
C. Sharpen filter
D. Blur filter
E. Texture filter

Answers

Answer:

A. Stylize filter

Explanation:

I took the test on edmentum your welcome.

Answer:

Is B because noisse feltrr✔️

Steven wrote an algorithm for his coding class that explains how he makes a cake. Which is the correct sequence of steps that he used?

Mix the ingredients, put into the oven, preheat the oven
Preheat the oven, mix the ingredients, put into oven
Preheat the oven, put into the oven, mix the ingredients
Put into the oven, mix the ingredients, preheat the oven


WILL GIVE ALOT OF POINTS "29" TOTAL

Answers

Answer:

Preheat the oven, mix the ingredients, put into oven.

Answer:

Preheat oven, mix the ingredients, put into oven

Explanation:

basically its B

:)

Other Questions
(Help please its a multiple choice)En classe, ondes verbes reguliersparlesO etudieJenpas mon frere a la sortie du lycee.O attendsO entendPaul et toi, vousun livre a discuterO regardentO choisissezLa classe et moi nous ____ dans un bus RentrezMontonsTu ne ___ pas avec Joue Chantes Canille et Martin ____ leurs baskets au gymnase Apporte Laissent Lcole ___ une nouvelle bibliothque ConstruitDemandes Ils___ (aller) se promener en ville cet aprs-midi Allent Vont Jai pass_____la soire travailler.A. TouteB. Tous C. Toutes D. Tout Please Help Me ASAP!!! Simplify and show work 5x - (6 - x) Lizzie invested $2,000 into an account that earned 5% interest per year. When shecashed out the investment, it was worth a total of $2,205.Create an equation (using the word bank) that describes Lizzie's investment based on t,the number of years she kept the account open.Word Bank:1.050.05$2.205$205t$2,000 Subtract using the number line.57(17) Will give major points! and brainliest answer! to someone who gives a good answer! In which hemispheres is the state of Georgia located?Northern and Western hemispheresSouthern and Eastern hemispheresNorthern and Eastern hemispheresSouthern and Western hemispheres Financial Statements of a Manufacturing Firm The following events took place for Focault Inc. during July 20Y2, the first month of operations as a producer of road bikes: Purchased $598,700 of materials Used $514,900 of direct materials in production Incurred $444,000 of direct labor wages Applied factory overhead at a rate of 70% of direct labor cost Transferred $1,218,900 of work in process to finished goods Sold goods with a cost of $1,185,400 Sold goods for $2,121,900 Incurred $509,700 of selling expenses Incurred $189,700 of administrative expenses a. Prepare the July income statement for Focault. Assume that Focault uses the perpetual inventory method. Focault Inc. Income Statement For the Month Ended July 31, 20Y2 $ $ Selling and administrative expenses: $ Total selling and administrative expenses $ b. Determine the inventory balances at the end of the first month of operations. Materials inventory, July 31 $ Work in process inventory, July 31 $ Finished goods inventory, July 31 $ Six out of 40 is equivalent to Let f (x) = 1 - 2x + 3x3 and g(x) = 6 + 7x?. For f (x) g(x), what is the coefficient of the x term?.-14B.4C.7D.21E.18 Evaluate 3/41/2A.3/8B.4/6C.2/12D.1/6 Absolute value |3x-4|= |3x-5| If a countrys total fertility rate is measured at one, what does this number most likely indicate about the countries population? A. The countrys population is aging.B. The countries population is growing.C. The countries birth rate is far higher than the countries death rateD. The countries population is becoming younger on average. 7% decrease on a 6500 car.he pays 12 every month 6x10^5 is how many times as large as 3x10^3? cite three real life situations where quadratic equations are illustrated. Formulate quadratic equations out of these situations then describe each. Write the equation of the line fully simplified slope-intercept form.HELP ME PLEASE What were the efforts of progressives like Ida Tarbell, Jane Addams, and Alice Paul designed to do. The preserved remains or traces of an organism are known as a/an *ESS 1-51 pointrocksnaturefossilsantiques