Your posed questions should be two different choices from:
Create a flowchart to describe an algorithm, using at least one decision structure; or provide a flowchart and request the corresponding Python program. Your responses MUST include at least ONE flowchart and at lease ONE Python program.
Flowchart :To determine whether the given number is even or odd.
Algorithm:
1. start
2. Declare Integer Number
3. Output "Enter any number"
4. Input number
5. if Number%2=0 , then //means if remainder is zero when dividing number by 2
5.1. output"Number is Even"
else
5.2. Output "Number is Odd"
6.stop.
Python code:
print("Enter any number")
number = int(input())
if number % 2 == 0:
print("Given Number is Even")
else:
print("Given Number is odd")
Your posed questions should be two different choices from: Create a flowchart to describe an algorithm,...
For this problem, you should: describe the algorithm using a flowchart and then use Python to implement the algorithm. You must include a.) a picture of your flowchart, b.) a screen shot of your program, and c.) a screen shot of your output. Programming Task: An Arctic helicopter service cannot carry more than 2 passengers and more than 300 pounds in extra weight. Define variables to hold the weight of each of the two passengers. If the combined weight exceeds...
Devise an algorithm to find the two smallest values of a one-dimensional array. The inputs are the array and the number of elements in that array. There are three parts to this problem: I. Write the pseudocode for your algorithm, and include it as a comment in your .py file. 2. Provide a tracing of your algorithm for the array 281s 3. Create a flowchart of your algorithm using e.g. draw.io Save your flowchart in the form lastname.firstname hw3.png If...
The straight-line distance of two points (x1, y1) and (x2, y2) in a Cartesian plane can be calculated by the formula:Your task is to create an algorithm using flowchart to solve this problem. in your algorithm, you need to prompt user to enter the value of x1, x2. y1 and y2.
Provide a comparison of a weak acid and weak base; your choices should be different from those described by other students. Indicate where each acid or base is found or used, and include its Ka or Kb.
This Python program will need to include the following items listed below. You are to customize your program and create the sequence in any order of your choice. Must include Python comments for each of the items shown below. Calculate a Percentage. For example, the discount percentage on a sale item. Use of 3 Constants. To be used for values that will not change throughout the life of the program. A Turtle Graphic Logo. This logo will be used to...
develop (i.e., "make up") an OB case of your own that requires the application of some of the behavioral principles we’ve discussed to real-life situations. It is expected that your case will be substantive in nature and will, by means of the discussion it is intended to generate, provide valuable insight into the effective practice of behavioral concepts. The case you develop need not be particularly long (1/2 to 3/4 of a page, single spaced, will suffice), but it will...
Here's the pizza example layout.Need Help with this program. Java ser interface: Here are the groupings trom the pizza u Size Pepperoni Anchovies Smal edium Large Your Price: Create two classes following the model shown in Chapter 19. Assuming your data form's subject is X (though l expect better names), you need to provide the following classes: 1. XFormFrame, as a subclass of JFrame, responsible for creating and operating the form 2. XFormViewer, your main program responsible for creating the...
Please answer the first two questions mplete your Week 2 required discussion prompt. • In your own words, describe the difference between euthanasia and physician-assisted suicide. • Select an argument for or against either euthanasia or physician-assisted suicide. How would you defend your argument? • In addition to your main response, you must also post substantive responses to at least two of your classmates' posts in this thread. Your response should include elements such as follow up questions, further exploration...
C++ visual studio program...Write your own version of a class template that will create a dynamic stack of any data type. The pop function must return a bool; it should return a false if it was not able to pop an item off the stack. Otherwise it returns true. The parameter to the pop function is passed by reference and should be the item on the list if it was able to pop something. Create a driver program (main) that...
1a.) List at least three questions that should be asked to guide the decision to use a complementary therapy. Identify an ethical principle that might influence a nurse to counsel a client against using a specific CAM (complementary and alternative medicine). 1b.) Identify one step in the decision-making model you might want to use to help your client decide about using CAM. Provide a rationale for your choice. 1c.) Identify and describe briefly how assessment of health status affect optimism...