Explanation:
I think it's d.
Hope this help
Write a program Gas.java that computes and displays the price a person will pay for gas at the gas station. The program takes three command-line arguments: two double arguments referring to the price per gallon, and the number of gallons of gas, and one boolean argument referring to whether the person pays cash or credit (true for cash, false for credit). If the person pays with a credit card, there is an extra charge of 10% of the total price. Gas is never free. A person stopping to buy gas will always buy some amount of gas. Print the error message "Illegal input" if any of the double inputs is zero or negative, and end the program.
Answer:
double price, number, total;
boolean payment;
Scanner input = new Scanner(System.in);
System.out.print("Enter Amount of Gas: ");
price = input.nextDouble();
I've added the full source file as an attachment.
Where I used comments to explain difficult line
Explanation:
Which statement is true about asking questions while reading?
It is a system that keeps readers from understanding a text's purpose.
O It is a strategy that readers use only when reading textbooks.
O It is a system that strong readers do not use.
O It is a strategy that helps people be active readers.
Answer:
It is a strategy that helps people be active readers.
Explanation: Poggers m8
Answer:
D
Explanation:
In one or two short paragraphs, explain a few different ways you could get more involved in your own community. Think about the issues that concern you and how you could get involved to have an effect on those concerns.
Answer:
Ways people get more involved in your community are by stoping to help when and where you're needed. It's a simple way to make your community better and help to create the kind of vibe that makes people feel safe and happy. If you see someone in need of assistance, come to their aid instead of averting your eyes. Do for others what you'd want them to do for you if you were in their situation. Support your local economy. Healthy communities have healthy local economies. People work together to help each other make a living and thrive. You can help improve the health of your local economy in many different ways, from changing your shopping habits to starting a business of your own.
Recycle and compost. Many communities are experiencing problems with landfills that are getting too full. Producing too much trash pollutes the environment, and that's not good for your community's long-term health. You can do your part to help improve the situation by recycling and composting as much of your waste as possible.Save energy and water. Using excessive electricity and water strains community resources.Saving energy and water is good for the planet as well as your local environment. Do your best to conserve energy and water and it will become an investment in your community's long-term health. By doing some of these simple things you can be involved and help the community you live in.
Explanation:
Hope this helps
Answer:
Answers will vary but should include some specific examples with common elements such as:
organizing a food drive or fundraiser to benefit a local charity
volunteering at a home for the elderly
donating clothes or other goods
getting a school sports team involved in a local service project
finding an organization where you can volunteer with your parents
Explanation:
PLATO
Choose the best answer to complete the sentence.
A transferable skill can be applied:
in a variety of situations and roles.
in only one setting or situation.
in every situation.
Answer:
First is A
Explanation:
Second is B,C,F
What are the two reasons we analyze algorithms?
Answer:
the most straightforward reason for analyzing an algorithm is too discover its characteristics in order to evaluate its suitability for various applications or compare it with other algorithms for the same application
What are some ways to enter and edit data in a worksheet? Check all that apply.
right-clicking the cell
zooming in on the cell
selecting the cell
selecting the cell and clicking the formula bar
clicking to select the cell and typing
Answer:
selecting the cell
selecting the cell, clicking the formula bar
double-clicking the cell
Explanation:
Because I watched a video
Answer:
C). selecting the cell
D). selecting the cell and clicking the formula bar
E). clicking to select the cell and typing
Explanation:
I just did the Instruction on EDGE2022 and it's 200% correct!
Also, heart and rate if you found this answer helpful!! :) (P.S It makes me feel good to know I helped someone today!!)
When dealing with perspective, _____ lines are used or implied.
Answer:
I'm pretty sure the answer is vanishing lines.
Explanation:
IT professionals should help to protect users’ personal information, such as bank account information or Social Security numbers, to prevent
A.software piracy.
B.identity theft.
C.moonlighting.
D.corporate espionage.
Answer:
B
Explanation:
Answer:
b
Explanation:
What does Tristan need to do to add a row at the bottom of the table shown?
He needs to put the insertion point at the end of 8.8 and press the Tab key.
He needs to put the insertion point at the end of 8.8 and press the Enter key.
He needs to put the insertion point at the end of freezers and press the Tab key.
He needs to put the insertion point at the end of freezers and press the Enter key.
Answer:
He needs to put the insertion point at the end of 8.8 and press the Tab key.
Explanation:
Answer:
A
Explanation:
Select all that apply.
In the File tab, you can:
send documents as e-
mail attachments
post documents as blogs
export documents as PDF/XPS
record document macros
Answer:
send documents as e-mail attachments
post documents as blogs
export documents as PDF/XPS
how dependent are we on technology?
very independent : ) we use it for everything
when four consecutive numbers are added the sum is 46 find the integers plss anyone help me
Answer:
The integers are 10,11,12,13
Explanation:
At first form an equation,
Let,
x = first number
x + x+1 + x+2 + x+3 = 46
Now solve the equation and youll get the answer,
x=10
For the other numbers,
x+1=11
x+2 = 12
x+3 = 13
This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arrow dimensions are defined by user specified arrow base height, arrow base width, and arrow head width.(1) Modify the given program to use a loop to output an arrow base of height arrowBaseHeight. (1 pt)(2) Modify the given program to use a loop to output an arrow base of width arrowBaseWidth. Use a nested loop in which the inner loop draws the *’s, and the outer loop iterates a number of times equal to the height of the arrow base. (1 pt)(3) Modify the given program to use a loop to output an arrow head of width arrowHeadWidth. Use a nested loop in which the inner loop draws the *’s, and the outer loop iterates a number of times equal to the height of the arrow head. (2 pts)(4) Modify the given program to only accept an arrow head width that is larger than the arrow base width. Use a loop to continue prompting the user for an arrow head width until the value is larger than the arrow b
Answer:
Here is the JAVA program:
import java.util.Scanner; // to get input from user
public class DrawHalfArrow{ // start of the class half arrow
public static void main(String[] args) { // starts of main() function body
Scanner scnr = new Scanner(System.in); //reads input
int arrowBaseHeight = 0; // stores the height of arrow base
int arrowBaseWidth = 0; // holds width of arrow base
int arrowHeadWidth = 0; // contains the width of arrow head
// prompts the user to enter arrow base height, width and arrow head width
System.out.println("Enter arrow base height: ");
arrowBaseHeight = scnr.nextInt(); // scans and reads the input as int
System.out.println("Enter arrow base width: ");
arrowBaseWidth = scnr.nextInt();
/* while loop to continue asking user for an arrow head width until the value entered is greater than the value of arrow base width */
while (arrowHeadWidth <= arrowBaseWidth) {
System.out.println("Enter arrow head width: ");
arrowHeadWidth = scnr.nextInt(); }
//start of the nested loop
//outer loop iterates a number of times equal to the height of the arrow base
for (int i = 0; i < arrowBaseHeight; i++) {
//inner loop prints the stars asterisks
for (int j = 0; j <arrowBaseWidth; j++) {
System.out.print("*"); } //displays stars
System.out.println(); }
//temporary variable to hold arrowhead width value
int k = arrowHeadWidth;
//outer loop to iterate no of times equal to the height of the arrow head
for (int i = 1; i <= arrowHeadWidth; i++)
{ for(int j = k; j > 0; j--) {//inner loop to print stars
System.out.print("*"); } //displays stars
k = k - 1;
System.out.println(); } } } // continues to add more asterisks for new line
Explanation:
The program asks to enter the height of the arrow base, width of the arrow base and the width of arrow head. When asking to enter the width of the arrow head, a condition is checked that the arrow head width arrowHeadWidth should be less than or equal to width of arrow base arrowBaseWidth. The while loop keeps iterating until the user enters the arrow head width larger than the value of arrow base width.
The loop is used to output an arrow base of height arrowBaseHeight. So point (1) is satisfied.
The nested loop is being used which as a whole outputs an arrow base of width arrowBaseWidth. The inner loop draws the stars and forms the base width of the arrow, and the outer loop iterates a number of times equal to the height of the arrow. So (2) is satisfied.
A temporary variable k is used to hold the original value of arrowHeadWidth so that it keeps safe when modification is done.
The last nested loop is used to output an arrow head of width arrowHeadWidth. The inner loop forms the arrow head and prints the stars needed to form an arrow head. So (3) is satisfied.
The value of temporary variable k is decreased by 1 so the next time it enters the nested for loop it will be one asterisk lesser.
The screenshot of output is attached.
What is constructive criticism?
Advice and possible solutions intended to help or improve something
Information given to others as a way to make them feel unintelligent
Reports about decreasing profits
Statements and no possible solutions aimed at showing problem areas
Answer:
Constructive cristsism is a helpful way of giving feedback that provides specific, actionable suggestions. Or, its a nice way of criticizing someone and telling them what to do better
Answer:
Advice and possible solutions intended to help or improve something
Explanation:
I took the test and Got it Correct!
What is the output?
password = "sdf# 356"
>>> password. isalnum()
The output is False because the string password contains #.
Answer:
The answer is False.
Explanation:
The answer is false becasue it has other characters than letters and numbers.
Have a great day, I hope this helped.
What are some positive ways to build your online reputation? (Choose all that apply)
Build a brand for yourself.
Constantly promote a product you're selling.
Avoid revealing personal fights and problems.
Pay for views and likes on your content.
Answer:my best answer is to be nice and use manners
Explanation:
chhincvjucnvbeojnvjbbnjovnvbbnvjbcnojnv definitly dont do that
The line represents a visible line that represents features that can be seen
in the current view.
Continuous Thick Line
Pictorial Sketch Types
Aligned Section View
Chain Thin Line
The continuous thick line represents a sample that depicts features seen in the current view, which can be used to represent apparent contours and boundaries.
In this, the scribbled lines are used to generate contours and edges that are not visible from the outside.This line type is utilized in site plans for apparent outlines, general detailing, existing structures, and landscaping.Therefore, the answer is "continuous thick line".
Learn more about the line here:
brainly.com/question/26196994
As per the statement, the line represents the visible part of the features that can be seen in the current views as the line is a continuous thick line. Thus the option A is correct.
Which line represents a visible feature of current view.?The visible lines are those that make up most of the visible part of the features and are noted for the summary lines and refer to the specific views.
A continuous line can be easily seen and is visible for very far and hence this line is a sorrowing the side of the matter. It can be used to outline the object and is has a medium weight. Hence the visibility of the line is lone factor of the continuality and thickness.
Find out more information about the line represented.
brainly.com/question/12242745.
Which of the following behaviors is considered ethical?
A. copying another user’s password without permission
B. hacking software to test and improve its efficiency
C. using a limited access public computer to watch movies
D. deleting other user’s files from a public computer
Answer:
answer is c. using a limited access public computer to watch movies
Answer:
using a limited access public computer to watch movies
Explanation:
It is the only one that will not get you in big trouble
________________are programs that designed to help users to be more productive with their personal tasks
Answer:
Application software
Application software consists of programs designed to make users more productive and/or assist them with personal tasks
Explanation:
Which shape is used as a start or end?
a paralleogram
a rounded rectangle
a rectangle
a diamond
Answer:
rounded rectangle
Explanation:
I jus looked it up lol
is cheque money? give reason
Answer:
Cheque is not money. cheque is a paper instructing the bank to pay a specific amount from the person's account to the person in whose name the cheque has been drawn. The facility of cheque against demand deposits makes it possible to directly settle the payments without the use of withdrawal.
Explanation:
which hardware device is it most important to an experienced computer professional to install
Answer:
RAM
Explanation:
In the test
Answer:
RAM
Explanation:
I'm doing the unit test.
BRAINLIEST!!!!!!
I nEeD your HeLp
Answer:
[tex]option \:1 . \: is \: cd \\ option \:2. \: is \: hard \: disk \: drive \\ primary \: memory \: is \: \: a \: memory \: dirctly \\ \: accessed \: by \: the \: cmp \\ why \: secondary \: is \: not \: directly \: accessed[/tex]
[tex]\boxed{1.)}\;Your\;answer\;is\;indeed\;cd.\\\\\\\boxed{1's\;explanation...\;>See\;Below<}\\\\\\An\;SSS\;device\;is\;a\;Solid-state \;storage \;device.\;It\;collects\;storage.\;Therefore,\;your\\\;answer\;is\;B,\;cd.[/tex]
[tex]\boxed{-----------------------------------}[/tex]
[tex]\boxed{2.)}\;Your \;answer\; is\; HDD.\\\\\\\boxed{2's \;Explanation...}\\\\\\A\;HDD\;is\;a\;drive\;located\;inside\;of\;a\;computer.\;Therefore,\;your\;answer\;is\;B.\\\\\\\boxed{------------------------------------}\\\\\\\boxed{Hope\;it\;helps!}\\\\\\\huge\boxed{Thanks,razorple.}[/tex]
What is the singular of Data?
What are alphanumeric characters?
Answer:
1. Datum
2. Alphanumericals are a combination of alphabetical and numerical characters
Explanation:
Magsulat ng ilang mga paalala sa paggawa ng proyektong Series Circuit
1._______________________________________________
2.______________________________________________
3.______________________________________________
4.______________________________________________
5.______________________________________________
PLEASE HELP ME
Answer:
mag ingat,dapat d basa ang kamay,ayusin ang posive at negative na hindi maghalo,kong may electric tape mas safe..
Explanation:
yun yung tips ko kasi nakagawa na kami non ay yop 1 yung samin
Which of the following statements are true regarding models? Select 3 options.
Models help you understand a complex situation by including all of the details.
In a model, the general characteristics are separated from the details.
Models help communicate a design.
Models help predict how a specific solution will respond.
Models represent the system or problem at a detailed implementation level.
Answer:
Models help predict how a specific solution will respond
In a model, the general characteristics are separated from the details
Models help communicate a design
Explanation:
I got 100% and I want to help you
A laptop computer is smaller than desktop computer. True or false
Answer:
true
Explanation:
Answer:
true
Explanation:
laptop... sits on ya lap
desktop... sits on the desk
Write an if/else statement that adds 1 to the variable minors if the variable age is less than 18, adds 1 to the variable adults if age is 18 through 64 and adds 1 to the variable seniors if age is 65 or older.
if (age < 18) {
minors = minors + 1;
} else if (age > 17 && age < 65) {
adults = adults + 1;
} else {
seniors = seniors + 1;
}
Answer:
See Explanation
Explanation:
The answer you attached to the question is correct and it does not need any additional input.
However, I'll explain each line for you
This line checks if age is less than 18
if (age < 18) {
This line increases minors by 1
minors = minors + 1;
}
This line checks if age is between 18 and 64
else if (age > 17 && age < 65) {
This line increases adult by 1
adults = adults + 1;
}
This line checks if age is greater than 18
else {
This line increases seniors by 1
seniors = seniors + 1;
}
Which statement best illustrates the relationship between three different
elements of the circular flow of products?
O A. Households pay wages to businesses, which can then set up
product markets.
O B. Product markets offer labor to businesses, which creates jobs for
households.
O C. Businesses create goods for product markets, which sell them
directly to households.
O D. Resource markets sell goods to product markets, which sell the
goods to businesses
Answer:
C
Explanation:
GDP can be represented by the circular flow diagram as a flow of income going in one direction and expenditures on goods, services, and resources going in the opposite direction. In this diagram, households buy goods and services from businesses and businesses buy resources from households.
So this is not exactly a question but I can’t find the answer anywhere else. Also if you answer this, please do, I will give you brainliest.
What does the blue circle with the i in it mean on EBay?
Answer: Well, in transit means "in the process of being transported" according to Merriam Webster, so I would think that would mean that it is being shipped from China over to America (Or wherever you may live) currently. Hope this helped!
Explanation: