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
kotykmax [81]
1 year ago
9

1. PP 2.1 Create a revised version of the Lincoln program from Chapter 1 to print the quotation

Computers and Technology
1 answer:
ELEN [110]1 year ago
4 0

The revised version of the Lincoln program from Chapter 1 to print the quotation us illustrate below.

<h3>What is a program?</h3>

A computer program is a set of instructions written in a programming language that a computer can execute. Software contains computer programs as well as documentation and other intangible components.

The program will be:

public class Print {

public static void main(String[] args)

{

char ch='"';

System.out.println("A quote by Abraham Lincoln:\n"+ch+"Whatever you are, be a good one."+ch);

//by using char for storing double quote

System.out.println("A quote by Abraham Lincoln:\n"+'"'+"Whatever you are, be a good one."+'"');

//in single quote

System.out.println("A quote by Abraham Lincoln:\n\"Whatever you are, be a good one.\"");

//using \"

}//end of main

}//end of Print class

/******OUTPUT*******

A quote by Abraham Lincoln:

"Whatever you are, be a good one."

A quote by Abraham Lincoln:

"Whatever you are, be a good one."

A quote by Abraham Lincoln:

"Whatever you are, be a good one."

*/

Learn more about programs on:

brainly.com/question/26568485

#SPJ1

You might be interested in
An html element that describes the content of a web page is called a(n):
Marizza181 [45]
I think its <tagname> content right here </tag name>
3 0
3 years ago
PLEASE HELP, TEST MULTIPLE CHOICE QUESTIONS
Dima020 [189]

Answer:

sorry i came for the points idk

Explanation:

8 0
3 years ago
The "odd/even factorial" of a positive integer n is represented as n and is defined non-recursively as: (n)(n-2)(n-4)...(4)(2) i
adoni [48]

Answer:

The function definition to this question can be described as follows:

long oddevenfact(int y) //defining a method oddevenfact

{

//defining conditional statement    

if (y>2) //check value is greater then 2

{

return( oddevenfact(y-2) * (long) y); //return value

}

else //else

{

return((long) y); //return its value

}

}

Explanation:

The description of the above method definition can be described as follows:

  • In the above method definition a long method "oddevenfact" is declared, which accepts an integer variable "y" as its arguments, and return value as long.
  • Inside the method, a conditional statement is used, in if the block, it checks a value, that is value is greater then 2, and inside the block, a recursive function is used, that calculates its factor, and returns its value in long type.  
  • If the condition is not true, it will go to else block and return in long type value.
3 0
3 years ago
Write a program that takes three numbers as input from the user, and prints the largest.
nasty-shy [4]

Answer:

Written in Python:

num1 = int(input("Enter a number: "))

num2 = int(input("Enter a number: "))

num3 = int(input("Enter a number: "))

if(num1 >= num3 and num1 >= num2):

    print("Largest: "+str(num1))

elif(num2 >= num3 and num2 >= num1):

    print("Largest: "+str(num2))

else:

    print("Largest: "+str(num3))

Explanation:

The next three lines prompt user for input of three numbers

<em>num1 = int(input("Enter a number: "))</em>

<em>num2 = int(input("Enter a number: "))</em>

<em>num3 = int(input("Enter a number: "))</em>

This following if condition checks if num1 is the largest

<em>if(num1 >= num3 and num1 >= num2):</em>

<em>     print("Largest: "+str(num1))</em>

This following if condition checks if num2 is the largest

<em>elif(num2 >= num3 and num2 >= num1):</em>

<em>     print("Largest: "+str(num2))</em>

The last condition assumes num3 is the largest if the previous conditions are false

<em>else:</em>

<em>     print("Largest: "+str(num3))</em>

<em></em>

6 0
3 years ago
In observaț orial study, data collected in response to process input changes.
Inga [223]

Answer:

I think it is True.

Explanation:

Hope it's help you ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

3 0
3 years ago
Other questions:
  • On most vehicles, the windshield wipers can be activated by a lever located to the _________ of the steering wheel.
    13·1 answer
  • (PYTHON HOMEWORK)Given the following code snippet, which statement tests to see if all three sets are equal?:
    11·1 answer
  • Design state machines to control the minutes and hours of a standard 24 hour clock. Your clock should include an AM/PM indicator
    11·1 answer
  • Read the excerpt from Act 111, scene iii of Romeo and Juliet. Which is the best paraphrase of this dialogue
    11·1 answer
  • Which of the following could you use to submit work from home?
    15·1 answer
  • My PC won't output any data does anyone have any ideas​
    9·1 answer
  • What are some excuses for not attending online classes ( for students )​
    13·1 answer
  • Implementing HTML best practices and writing code to match the original intentions of each element is known as __________ HTML.
    6·1 answer
  • You are designing an ecommerce web application that will scale to hundreds of thousands of concurrent users. Which database tech
    10·1 answer
  • Show a parse tree and a leftmost derivation for : B = C * (A + B)
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!