1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
d1i1m1o1n [39]
3 years ago
8

Program: ASCII art (Python 3)1) Output this tree. 2) Below the tree (with two blank lines), output this cat. (3 pts) /\ /\ o o =

= --- Hint: A backslash \ in a string acts as an escape character, such as with a newline \n. So, to print an actual backslash, escape that backslash by prepending another backslash. Ex: The following prints a single backslash: System.out.println("\\");

Computers and Technology
1 answer:
Julli [10]3 years ago
8 0

The correct format for the output this tree is shown below:

(1) Output this tree

    ×

  ×××

×××××

×××××××

  ×××

(2) The correct format for the Below the tree is shown below:

Below the tree (with two blank lines), output this cat. (3 pts)

  / \        / \

     o     o

 =           =

   -   -   -

Answer:

Explanation:

We are given an Hint that:

A backslash \ in a string acts as an escape character, such as with a newline \n. So, to print an actual backslash, escape that backslash by prepending another backslash.

An Example : The following prints a single backslash: System.out.println("\\");

The main objective here is to use a Java code to interpret the above  (1) Output this tree and  (2) Below the tree.

So Using a Java code to interpret the Program: ASCII art ; we have:

public class AsciiArt {

  public static void main(String[] args) {

      // TODO Auto-generated method stub

 

      //Draw Tree

    System.out.println(" *");

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

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

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

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

      //output cat

      System.out.println();

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

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

      System.out.println(" = =")

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

  }

OUTPUT:

SEE THE ATTACHED FILE BELOW.

You might be interested in
A tax return preparer, routinely publishes a schedule of the fees she charges her clients. For how long must keep copies of the
Alenkinab [10]

Answer:

It is advised for the tax return preparer to keep the records for 3 years from the date she  filed your for the return or two (2) years from the date she paid the tax

Explanation:

It is advised for the tax return preparer to keep the records for 3 years from the date she  filed your for the return or two (2) years from the date she paid the tax.

This will create enough time for any form of amendment should the case arise within the period of filing this tax. if also creates avenue for claim of credit or refund, or in a case where the IRS want to assess additional tax.

The information above reflects the period of restriction that apply to income tax returns. Unless otherwise stated, the years refer to the period after the return was filed. Returns filed before the due date are treated as filed on the due date.

5 0
3 years ago
Charlie makes pizza at a restaurant. The customers always compliment how great the pizza tastes. But Charlie takes a long time t
Oksi-84 [34.3K]
To get this u must do 8372928+(2728279298)=382627-6382638)()()(7372637 I did it right I’m the test
8 0
3 years ago
Read 2 more answers
Digital subscriber lines: a. are very-high-speed data lines typically leased from long-distance telephone companies. b. operate
nlexa [21]

Answer:

idididkdikdidkdidkdikdidk

Explanation:

7 0
4 years ago
The Home editions of Windows 7 do not include the Local Security Policy or Print Management.
Sergeu [11.5K]

It is true that the Home editions of Windows 7 do not include the Local Security Policy or Print Management.

<h3 /><h3>What is Local Security Policy?</h3>

Local Security Policy is a set of information about the security of the local computer. The Local Security Policy can be found in the Windows operating system. Local security policy information includes:

  • Domains that are trusted to authenticate login attempts.
  • What user accounts are allowed access to the system and how. For example, interactively, over a network, or as a service.
  • Rights and privileges assigned to the account.
  • Security audit policy.

The Local Security Authority (LSA) stores local policy information in a set of LSA policy objects.

Learn more about Local Security Policy brainly.com/question/29670107

#SPJ4

7 0
1 year ago
PLEASE HELP! Please dont answer if your going to guess
meriva

Answer:

r

Explanation:

I literally learned this today when trying to make a python server with an html file:)

6 0
3 years ago
Read 2 more answers
Other questions:
  • The main storage device inside a computer where programs and files are saved is called the
    5·1 answer
  • Like Tess, Brina has a fascinating job! She works as a software engineer with Instagram. She says that Computer Science is a way
    10·2 answers
  • Suppose your friend, who is a small business owner, wants to computerize her business functions such as accounting, payroll, and
    7·1 answer
  • Under the advanced options screen, what startup option should be enabled in order to view what did and did not load during the b
    12·1 answer
  • On what basis can you categorize the generations of computers?
    11·1 answer
  • How to make all cells the same size in excel?
    15·1 answer
  • Which changes should be made to establish and maintain formal writing conventions? Select two options.
    10·1 answer
  • Which statement describes the Direction option for animations and transitions?
    5·2 answers
  • Harry needs to make a presentation on packaging prototypes for a new product. Which presentation software elements can be use to
    9·1 answer
  • How to make classs constructer java.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!