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
EastWind [94]
3 years ago
6

Develop an algorithm which incorporates decision making and Boolean logic, create a flowchart, and then develop the code. The al

gorithm could be a classification algorithm, a process for solving a problem, or a few questions which help a user buy a car.
Computers and Technology
1 answer:
kenny6666 [7]3 years ago
3 0

Answer:

public class DecisionMaking{

private boolean decision;

Scanner input = new Scanner(System.in);

public void askQuestions(){

// 1, 2, 3, 4 questions

// take note each time a user answers yes or no

// have a counter for these answers

// ex: if user answers 3 out of 4 questions then recommend a specific car

String userInput = "";

int yesCounter = 0;

int noCounter = 0;

System.out.println("Would you like a car with a hatchback?");

userInput = input.nextLine();

addCounter(userInput);

// ask the next question....and so on.

}

//make method for increasing counters

public void addCounter(String answer){

if(answer.equals("yes") || answer.equals("Yes")){

yesCounter++;

}

else{

noCounter++;

}

public static void main(String[] args){

DecisionMaking obj1 = new DecisionMaking();

// make a questionare where you ask the user different questions about a car

// make 4 questions

obj1.askQuetions();

}

}

Explanation:

You might be interested in
How long will my chromebook last if it is at 30 percent
Marta_Voda [28]

Answer:

You can see an estimated battery life time.

Explanation:

To see it simply put your mouse over the battery icon, don't click it and it should give you the life it has left in hours:minutes format.

5 0
3 years ago
All customers are on a Customer Community License. Universal Containers needs to grant a subset of their customers, known as aff
nadya68 [22]

Answer:

Feed tracking and use customs objects record fields and post them as an update. Feed tracking detects that user follows record and update their view of What follow.

Explanation:

Feed tracking is available in Sales Group, Professional, Enterprise, and Developer.

Custom Object is a set of records that allow you to store additional data in an account record and link the data to contact.

Create a custom object in Salesforce

  • Login in sandbox
  • click the new Custom Object. select create custom Object
  • Enter Book for label
  • Enter Book for plural label
  • Click Save

// Created Custom Object and Custom Filed

  • Click new Select Number for datatype and click Next
  • Enter in the filed label
  • Enter 2 in decimal places
  • Click Next for filed-level security
  • Click Save

3 0
4 years ago
that average july high temperature is 85 degrees fahrenheit in new york, 88 degrees fahrenheit in denver, and 106 degrees fahren
goblinko [34]

Answer:

public class num8 {

   public static void main(String[] args) {

       System.out.println("Average Temperature in New York is 85 degrees fahrenheit");

       System.out.println("Average Temperature in Denver is 88 degrees fahrenheit");

       System.out.println("Average Temperature in Phoenix is 106 degrees fahrenheit");

   // Calculating the new average Temperatures

       System.out.println("The New Average Temperature in New York " +

               "is "+ ((0.02*85)+85 )+ " degrees fahrenheit");

       System.out.println("The New Average Temperature in Denver " +

               "is " +((0.02*88)+88 )+ " degrees fahrenheit");

       System.out.println("The New  Average Temperature in Phoenix " +

               "is "+((0.02*106)+106 )+ " degrees fahrenheit");

   }

}

Explanation:

  1. Using Java first display the previous average temperatures for the three cities as given in the question
  2. Then calculates the new average temperature by multiplying by 0.02, because of a 2 percent increase in the average temperature
  3. Display the new temperature using the System.out,println

8 0
3 years ago
Developers found a "time of check to time of use" (TOCTTOU) vulnerability in their application. The vulnerability made it possib
earnstyle [38]

This vulnerability above is taking advantage of the race condition process in the application.

<h3>What is race condition? </h3>

This race condition is said to be in the critical section or one that is a part of the program and it is a place where shared memory is accessed and it is concurrently worked on or executed by two or more threads.

Hence,  This vulnerability above is taking advantage of the race condition process in the application.

Learn more about race condition from

brainly.com/question/13445523

#SPJ2

5 0
2 years ago
Haniyah drew a beautiful pencil sketch of a scenery. Her computer teacher asked her to convert it into a digital form and post i
Aleksandr-060686 [28]

Scanner.

<em> </em>A <em>scanner</em> is an input device that scans documents such as photographs and pages of text, when a document is scanned, it is converted into a digital format.

4 0
3 years ago
Other questions:
  • What feature is required to send data from a web-connected device (like a point-of-sale system) to Google Analytics?
    14·1 answer
  • All of the following are good reasons to attend a cummunity college except
    10·2 answers
  • What is a file that has an .iso extension? What does this extension indicate?
    8·1 answer
  • From the following list choose all the tasks an operating system performs.
    5·2 answers
  • Marie uses DHTML to create a website for her college. How is DHTML more helpful than HTML?
    13·2 answers
  • What font family is Times New Roman an what font family is Arial?
    9·2 answers
  • How do you change your brainly lvl, it says I'm in collage but I'm in 8th grade :(
    10·2 answers
  • What's the technique of drawing a 3D object with one vanishing point?​
    5·2 answers
  • How do you believe cryptocurrency work shape the next 10 years
    6·1 answer
  • on early ethernet networks, all computers were connected to a single wire, forcing them to take turns on a local area network (l
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!