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
borishaifa [10]
3 years ago
6

#Question 4: #Use a variable to represent the name of a food. You are then going to print this variable four times. Before you d

o, Print the food out and include some white space characters at the beginning and end and use "\t" and "\n" a least once. Then print the food once so the white space is displayed. Remember, you may not be able to see the white space on the right hand side. Following the food name print, print the name out three additional times (a total of four times), once normally, and one for each of the three stripping functions lstrip(), rstrip(), and strip(). ​
Computers and Technology
1 answer:
Radda [10]3 years ago
6 0

Answer:

see the picture

Explanation:

You might be interested in
Scientists measure an object’s mass in kilograms and its weight in newtons. If you knowthe amount of mass of an object in kilogr
Phoenix [80]

Answer:

public class WeightCalculator {

   

   private static DecimalFormat df2 = new DecimalFormat("#.##");

   

   public static void main(String args[]){

       //create scanner to receive user input

       Scanner in = new Scanner(System.in);

       //alert user to input mass

       System.out. println("Enter the Mass in Kg");

       //collect the input as a string

       String s = in. nextLine();

       //convert string to double and multiply by 9.8

       Double weight = Double.valueOf(s)* 9.8;

       

       //Print out answer formatted to 2 decimal place

       System.out. println("The Weight is " + df2.format(weight) + "N");

       

       //conditional statement to check if weight is less than 100

       if (weight < 100){

           System.out. println("Oops, it is too light");

       }

       //conditional statement to check if weight is more than 500

       if (weight > 500){

           System.out. println("Oops, it is too heavy");

       }            

   }

}

7 0
4 years ago
#Step 1 Get first value from user #Remove the hastag (#) from the front of ONE of the #three lines below, which will allow the p
olga2289 [7]

Answer:

Explanation:

what is the question

6 0
3 years ago
Describe two ways methods that cab be used to help stop hacking
mojhsa [17]

Answer:

Use a firewall

Install antivirus software.

Explanation:

7 0
2 years ago
Cleo received a message from Joline that was sent to her as well as two other coworkers named Sam and Thomas. Cleo
babymother [125]

Answer:

Cleo would choose the option "Forward"

Explanation:

Reply means reply to a single person

Reply All means to reply to the entire thread

Forward means to send the email to another

Copy means to copy the email, but it doesn't send

7 0
3 years ago
Read 2 more answers
Why does my internet keep disconnecting and reconnecting.
3241004551 [841]

Answer:

Hmm maybe because its failing?

Explanation:

i actually dont know but it happens to me sometimes

6 0
2 years ago
Other questions:
  • ________is one color shade gradually progressing to another shade of the same color or one color progressing to another color.
    14·1 answer
  • Which of the following questions will most likely be answered by displaying data on a line graph?
    14·1 answer
  • What is and effective way to display calculation in a word document?
    5·1 answer
  • Suppose in a class of 100 students, there is a homework due every week. The professor wants to encourage students to hand in the
    8·1 answer
  • Infrared, a wireless connection used in the past prior to bluetooth, was limited because it ________.
    10·1 answer
  • “Bins” are the term for data files that have been edited out of digital film True/False
    7·1 answer
  • What is the possible output from system.out.println((int)math.random() * 4)?
    8·1 answer
  • Write an expression whose value is the concatenation of the three strigs name1, name2, and name3, separated by commas
    9·1 answer
  • Which 2 processes are operational processes
    10·1 answer
  • Please help, you don’t have to answer it i just need to know the best types of conversions
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!