Write the pseudocode to this flowchart.

Write The Pseudocode To This Flowchart.

Answers

Answer 1

Answer:

I don't understand

Explanation:


Related Questions

Fun with Characters
Complete the checkCharacter() method which has 2 parameters: A String, and a specified index (int). The method checks the character at the specified index of the String parameter and returns a String based on the type of character at that location indicating if the character is a letter, digit, whitespace, or unknown character.

Ex: The method calls below with the given arguments will return the following Strings:
checkCharacter("happy birthday", 2) returns "Character 'p' is a letter"
checkCharacter("happy birthday", 5) returns "Character ' ' is a white space"
checkCharacter("happy birthday 2 you", 15) returns "Character '2' is a digit"
checkCharacter("happy birthday!", 14) returns "Character '!' is unknown"


CODE:
public class LabProgram {
public static String checkCharacter(String inputString, int index){
/* Type your code here. */
}

public static void main(String[] args) {
System.out.println(checkCharacter("happy birthday", 2));
System.out.println(checkCharacter("happy birthday", 5));
System.out.println(checkCharacter("happy birthday 2 you", 15));
System.out.println(checkCharacter("happy birthday!", 14));
}
}

Answers

The program is an illustration of conditional statements.

Conditional statements are statements whose execution is dependent on the truth value of the condition.

The checkCharacter() method in Java, where comments are used to explain each line is as follows:

//This defines the checkCharacter() method

public static String checkCharacter(String inputString, int index){

  //This checks if the character at the index, is a digit

  if(Character.isDigit(inputString.charAt(index))){

      //If yes, it returns "Digit"  

      return "Character "+inputString.charAt(index)+" is a digit";

  }

  //This checks if the character at the index, is a letter

  else if(Character.isLetter(inputString.charAt(index))){

      //If yes, it returns "letter"

      return "Character "+inputString.charAt(index)+" is a Letter";

  }

  //This checks if the character at the index, is a white space

  else if(inputString.charAt(index) ==' '){

      //If yes, it returns "white space"

      return "Character "+inputString.charAt(index)+" is a white space";

  }

  #If all the above conditions are false

   else{

      //If yes, it returns "unknown character"

      return "Character "+inputString.charAt(index)+" is an unknown character";

  }

}

The string to return depends on the character at the index.

Read more about similar programs at:

https://brainly.com/question/25127567

What is the major difference between categories and tags?

Categories are external and tags are internal.
Tags use URLs and categories do not.
Categories use URLs and tags do not.
Categories are internal and tags are external.

Answers

Answer:

tags use url's and categories do not

Explanation:

sorry it took to long but i found something, hope this helps

A color image uses 16bits to represent a pixel. What is the maximum number of different colors that can be represented?

Answers

Answer: A color image uses 16 bits to represent a pixel. What is the maximum number of different colors that can be represented? With 16 bits, we can represent up to 2^16 different colors. Assume six devices are arranged in a mesh topology.

Explanation:

The terms 16-bit picture, high color image, and 32K color image are all used to describe images that have 16 bits per pixel.

What is a pixel?

The smallest addressable element in a raster image or the smallest point in an all points addressable display device is known as a pixel (abbreviated as px), pel, or picture element in digital imaging.

The smallest component in most digital display systems that can be changed by software are pixels.

Photos with 16 bits per pixel are referred to as 16-bit pictures, high color images, and 32K color images.

The number of distinct colors that can be represented by 16 bits, where there are 5 bits for each of the red, green, and blue values and the 16th bit can be the alpha bit, is around 32 thousand.

Thus, the maximum number of different colors that can be represented is 32 thousand.

For more details regarding pixel, visit:

https://brainly.com/question/15189307

#SPJ2

Write a program that prompt the user to enter a bank balance. The balance entered by the user is read into a variable named balance. The program then prompts the user to enter the amount to be deposited. The amount entered by the user is read into a variable named deposit. The program that calculates the new balance, which is the present balance plus the deposit. The program then displays the new balance.

Answers

Answer:

ertyuiopoijuhgfdsa hiyoufun tresdfghytrefgytredfg

Explanation:

look for the words

9. In a program with 25% loads, 10% stores, 11% branches, 2% jumps, 52% R-type. The standard CPI for each instruction type is 2 cycles loads, 2 cycles stores, 1 cycle branches, 2 cycles jumps, 1 cycle R-type. The branches have a misprediction penalty of an additional 2 cycles when it misses, which happens 30% of the time. Loads create a RAW hazard 20% of the time adding in an extra cycle to the execution time. What is the average CPI for this program on this processor

Answers

Answer:

2.6

Explanation:

beth chooses fresh vegetables every time she does marketing. she pares and cuts right away these vegetable considering that they are fresh. the moment she serves the appetizer, she washes the plate and uses it without drying. what statement best describes the situation inside teh box

Answers

Answer:

spell correctly "teh=the

Explanation:

beth chooses fresh vegetables every time she does marketing. she pares and cuts right away these vegetable considering that they are fresh. the moment she serves the appetizer, she washes the plate and uses it without drying. what statement best describes the situation inside teh box

Q4. In what phase(s) of flight do most accidents occur? Why?

Answers

Answer:

Boeing research shows that takeoff and landing are statistically more dangerous than any other part of a flight. 49% of all fatal accidents happen during the final descent and landing phases of the average flight, while 14% of all fatal accidents happen during takeoff and initial climb.

Explanation:

hope it helps you

essay on computer memory and how is it related to computer?​

Answers

Answer:

grvty f th rthnng fr t nd srch

Explanation:

ts bcs y dnt hv brn

Computer memory is where all systems and files are stored including the OS. memory is a key part of any computer because without it a computer would not be able to store any information including its root file systems and basic functions ie; package manager, boot loader, and file systems. Not an essay but maybe a helpful start, good luck homie

the diffrence between relational data base system (RDBMS) and HDFS

Answers

Answer:

The key difference between RDBMS and Hadoop is that the RDBMS stores structured data while the Hadoop stores structured, semi-structured, and unstructured data. The RDBMS is a database management system based on the relational model

Does media contribute to the mental wellness of society?​

Answers

Answer:

However, multiple studies have found a strong link between heavy social media and an increased risk for depression, anxiety, loneliness, self-harm, and even suicidal thoughts. Social media may promote negative experiences such as: Inadequacy about your life or appearance.

How ever multiple studies show that

Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month 2 and year 2000, the program should display that February 2000 has 29

Answers

Answer:

5

Explanation:

becauss it is impossible to actually di

limitations of systems analysis and design​

Answers

Answer:

Explanation:

Although System analysis offers an extensive range of benefits it might also have some disadvantages. One of the main disadvantages which is mostly overlooked is the risk of too much analysing which may be costly and time consuming. It is therefore part of the analyst's job to find the right balance.

Your worksheet contains a price in cell A5 and many formulas refer to that price how would you refer to that price in the formula

Answers

Answer:

$A$5

Explanation:

The A$5 would allow the row part of the reference to stay in place but would allow the column to change.

What does '$' mean in Excel formula?

An absolute reference in Excel exists as a cell address with the dollar symbol ($) in the row or column coordinates, like $A$1. The dollar sign specifies the connection to a given cell so that it stays unchanged no matter where the formula moves.

The A$5 would permit the row position of the authority to remain in place but would permit the column to modify. The location of the $ before either the row or column or both exists what specifies what component stands frozen. Therefore, the correct answer is option b) $A$5.

Complete question:

Your worksheet contains a price in cell A5, and many formulas refer to that price. How would you refer to that price in the formulas?

a. A5

b. $A$5

c. $A5

d. A$5

To learn more about Excel formula

https://brainly.com/question/26276255

#SPJ2

How do I get fix the code to make it input 3 values and get the correct output
-------------------------------------------------------------
12.20 LAB: Driving costs - functions

Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('{:.2f}'.format(your_value))

Ex: If the input is:

20.0
3.1599

the output is:

1.58
7.90
63.20

Your program must define and call the following driving_cost() function. Given input parameters driven_miles, miles_per_gallon, and dollars_per_gallon, the function returns the dollar cost to drive those miles.

Ex: If the function is called with:

50 20.0 3.1599

the function returns:

7.89975

def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon)

Your program should call the function three times to determine the gas cost for 10 miles, 50 miles, and 400 miles.
---------------------------------------------------
I need help for this part
Ex: If the function is called with:

50 20.0 3.1599

how do I get it to input the three to get the output of 7.89975?
-------------------------------------
My code:

# Define your function here.
def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon):
return (driven_miles/miles_per_gallon) * dollars_per_gallon

if __name__ == '__main__':
# Type your code here.

# Miles per gallon from input
miles_per_gallon = float(input())

#Dollars per gallon from input
dollars_per_gallon = float(input())


# Display the results as output

print('{:.2f}'.format(driving_cost(10, miles_per_gallon,dollars_per_gallon)))
print('{:.2f}'.format(driving_cost(50, miles_per_gallon,dollars_per_gallon)))
print('{:.2f}'.format(driving_cost(400, miles_per_gallon,dollars_per_gallon)))

Answers

Answer:Change your logic to:

for (int i = 0; i < 4; i++) {

System.out.println("Please input a number between zero to 3");

// use input and don't advance the scanner every time

int input = sc.nextInt();

if (input == 0) {

System.out.println("You have selected " + right);

}

if (input == 1) {

System.out.println("You have selected " + left);

}

// so on and so forth

}

By using sc.nextInt() four times, you are looking for the next token of the input which isn't there. So fetch the input for each run of the for-loop and it will work as expected.

Explanation:

Given the following code, what logic would you need to include to print all even values stored within the array:

int[] myArray = {1,2,38,4,54,6,7,8,9,10};

for (int i = 0; i < myArray.length; i++) {
//your code goes here
}
NOTE: Your response should be just the missing logic--not the entire problem set.

Answers

The missing logic whigh would allow all the even numbers stored within the array to be printed is if(myArray[i]%2 == 0)

Even numbers are divisible by 2, and hence, will leave no remainder when divided by 2.

Using the modulo operator, each iterated value in the array should be checked if it has a remainder of 0, when divided by 2.

Hence, if the remainder is 0, then the value is even and the value should be printed.

Learn more : https://brainly.com/question/17330574

Traffic cop in cloud computing

Answers

Answer:

ufydtgzdfgfghkugyfjghjkhkgfj,hd,fhgjhgh

Explanation:

gufykgjhkjhjglhkcgjhvjbhkjlk;ljkhjghfgjhkjl,/..mnbjvhbmn,mnbv

Other Questions
__________ show more lateralization than __________. which virtues help us to realize peace Class 8 moral education The area of a soccer field is 5 000m' and it is 50m wide. i. Find the length of the field. ii. Find the perimeter of the field. which goal motivated the civil rights movement? Choose exactly two answers that are correct.Ending segregation by eliminating "Jim Crow" laws.Abolishing slavery and all forms of forced labor.Keeping whit students from attending black schools.Protecting the equality and full citizenship of African Americans. Brian makes a valiant effort to use as much of each animal as he can. Aside from using the moose as a source of food, what else has he made out of the moose? A. A scarf B. A pair of socks C. A comforter D. A coat what was the purpose of the virginia house of burgesses Will give 20 points 1. Busca en el libro de los hechos de los Apstoles sobre las primeras comunidades y comenta2. Cmo fue el proceso por el que surgieron todas las prcticas de la oracin y celebracin? 3. Cules son los ritmos litrgicos? explica cada uno de ellos4. Tu participas de la liturgia o has participado en cules? Comenta 5. conoces los tres primeros sacramentos de la iniciacin cristiana? Explica cada una de ellas.6. Investiga las cualidades de san Martin de Porres y escribe Cul de ellas te gustara imitar?es de reli hay ayuda Use the distributive property to write an expression equivalent to 8(35).Drag and drop the appropriate number into each box. I need help with the question below 1.1.10 Discuss: School's In!DiscussionFrench II Sem 2Points Possible:20Name:Date:Part 1: Possible questions to ask other students:1. If you were in France, what grade would you be in?2. What subjects are you studying this year?3. Which subjects do you like or dislike so far? To what degree (a lot, a little)?4. What do you think about the French school system? Do you think you'd like to study there? Why or why not?5. What time do you normally begin your studies?6. What time do you normally complete your studies?7. Do you start and end your studies on a specific date every year? What date is that?8. At lunchtime, do you eat with your family or do you have a different arrangement?Part 2: Possible things to tell the other students about yourself:1. What grade you are in2. What your favorite subjects are3. What subjects you really dislike4. What you do at lunchtime5. How much time you take for your lunch break6. How much time you spend studying every day7. What time you start your studies on a typical day8. Who normally teaches you and whether different people work with you on different subjects Copper 11 oxide and charcoal are black solids . How would you distinguish between the two solids Which is faster, CL3 memory or CL5 memory? Please help 20 points Triangle ABC was dilated using the rule Dy,5/4 Why is it difficult to define the boundaries of a functional region? (5 points)A. Geographers cannot measure the culture of people in a functional region.B. Functional regions depend on peoples mental images of places.C. Many different characteristics define functional regions.D. Functional regions radiate out from a defined center.E. Different populations will have different viewpoints on the boundaries of the region. (100 points cause i need the answer quick) Evaluate27 4/3 Identify the kind of sample that is describedThe student government association at a certain college chooses three classes, at random, being taught during a given semesterand samples all students in those classes to ask about a new grading policy. The position-time graph for two drivers (A and B) are shown in the figure below. Which of the following statements is correct?a. The two drivers are for sure moving in parallel directionsb. Driver B is moving faster than driver A.c. Driver A is moving faster than driver B.d. The two drivers are moving at the same speed A car was traveling on a straight road at a constant speed of 50 kilometers per hour. Over the next two minutes, the car came to travel 80 kilometers an hour. Which of the following is true?