Flowchart to meet the requirements of the program

Assignment Help Basic Computer Science
Reference no: EM131588807

Create a Python program as described below and save it in a file named bool. You should use IDLE or similar environment to create your program.

Your assignment is to first develop a conceptual model and document it using either pseudo code or a flowchart to meet the requirements of the program described as follows.

For your assignment you must write a compare function that returns 1 if a > b , 0 if a == b , and -1 if a < b. The user must be prompted for the values of a and b. The compare function must have arguments for a and b.

To demonstrate your compare function, you must call the compare function three times, once for each condition, from within your program and display (using print statement) the return code of the function.

Of course you will make static calls to your function to meet the test requirements. Something like:

print compare(5,2)

print compare(2,5)

print compare(3,3)

Then your program will switch to user input. Something like:

print compare(user_input_A, user_input_B)

Use the following table of values for a and b can be used when calling to test your compare function from within your program:

Don't forget to use comments and make your program readable.

Test values

a

b

5

2

2

5

3

3

Reference no: EM131588807

Questions Cloud

Work in the logistics industry and need a dissertation : Drivers are demotivated and performance and satisfaction is at its low, however the salary for the drivers is very attractive.
Find the quantity that maximizes the total profit : The demand function for product is p=-2q+200 and the total cost per unit for producing q units is c=3q^2+5q+250 , where p= price, and q= quantity demand.
What kind of plant would you expect to makeup that ecosystem : What kind of animals and plants would you expect to make up that ecosystem? Individuals of one species benefit, but the other is not hurt or harmed.
Do you think english should accept fast as an adverb : English prescriptive grammarians have railed against that usage for centuries. "Don't say 'fast'; say 'quickly'!" is one of the oldest of the prescriptive
Flowchart to meet the requirements of the program : Your assignment is to first develop a conceptual model and document it using either pseudo code or a flowchart to meet the requirements of the program described
What are factors that influence the size of human population : What are the factors that influence the size of the human population? How does population size and structure impact a country's economy?
Determine maximum deflection and stress in the bar : The side view of a pry bar is shown in Figure. The cross section of the bar is rectangular with thickriess = in and width (perpendicular to the plane of paper).
Discusses freedom of religion on the state of virginia : discusses freedom of religion in Notes on the State of Virginia. In the following passage, he discusses why it is important and provides evidence
Evaluate the training methods you would use : Choose training and/or development programs to implement in order to keep operations employees loyal to the organization.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd