Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Input and Selection Structures Directions You will comply with the 4 steps in computational questioning to broaden and design this application. Step One: Decomposition Decomposition

Input and Selection Structures

Directions

You will comply with the 4 steps in computational questioning to broaden and design this application.




Step One: Decomposition

Decomposition includes identifying a trouble and breaking it down into smaller, more workable steps.

Example: A retailer thinks its on line income should be higher. They discover that their customers are not making as many massive purchases on line as compared to within the bodily save. Looking even closer, they become aware of a loss of $two hundred and higher purchases.

Step Two: Pattern Recognition

After the trouble has been damaged down within the decomposition step, additional information is wanted.

Example: The retailer recognizes a sample in on-line income. When the acquisition charge is $200 or more, the shipping expenses are also pretty excessive, making customers less probably to make those purchases on-line. Perhaps an incentive is needed?

Step Three: Algorithmic Design

Here's where the fun (and the challenge) clearly begins. Choose one of the options supplied beneath:

Option 1: Spend More, Get More

You've been employed by way of a store to jot down a software that allows improve on line income. The retailer desires to find out how much money clients want to spend, offer a recommendation, and encourage clients to spend at least $200 by means of offering a free present at this fee factor.

First, you ought to ask the customers how a whole lot money they would like to spend. Then, suggest a product that may be purchased within the quantity entered. Finally, allow the clients realize how an awful lot extra money they need to spend which will acquire a loose present (or allow them to recognize they qualify if their preliminary buy is $two hundred or above).

Option 2: Choose Your Own Adventure

Do you experience being innovative and making up your own eventualities? If you do, then this selection is for you! Come up with any scenario for this undertaking as long as you do the following:

Make it purchasing-associated (this includes shipping, income, accounting, or some thing else that works at once with outlets). Ensure human beings studying your code recognize your state of affairs (Hint: Use plenty of remarks for your code). Follow the requirements defined underneath. Algorithmic Design and Pseudocode

Use the algorithmic layout stage of computational wondering to design a program. Remember that algorithmic layout is wherein you create step-by using-step commands to clear up a hassle. This must begin with pseudocode, then be translated to Python the use of your pseudocode as a manual.

Write your pseudocode wherein indicated beneath. Your pseudocode ought to be written in English (now not Python), ought to indicate a program that is enhancing the retail enterprise, and must:

be written in a series of steps that replicate algorithmic layout print a description of your on-line shop for the consumer to study acquire person input so that it will make a advice reveal proper use of the int(), flow(), and str() functions use right order of operations and suitable math features for calculations encompass at least one nested if-else/elif declaration provide output based on user enter and consequences of calculations

Example of predicted output: The output to your application have to resemble the following screenshot. Your precise consequences will range relying on the alternatives you are making and the input provided.




Pseudocode Hint: Pseudocode for the instance output above began with "Start" (which represented the main feature). The next line of pseudocode study "Store Description" (which later became a print function to tell the consumer approximately the store). Then the pseudocode study "Ask how an awful lot the purchaser desires to spend" (this become the eventual input), and so forth. When you are completed writing your pseudocode, ask your self if a non-programmer might be capable of examine it and recognize what your application goes to do. If the answer is yes?you've got possibly accomplished a wonderful task!

Write your pseudocode here:


Pseudocode to Program Code

Use the Python IDLE constructed into this path to code and run your software. Your code ought to:

Use feedback for internal documentation (which include a heading along with your call, cutting-edge date, and a short description of this system). Remember that you could copy/paste a good deal of your pseudocode for this internal documentation. Follow the Python fashion conventions concerning indentation and the usage of white space for your program. Run efficiently and produce output just like the example above. When you've finished writing your application code, save your paintings by choosing 'Save' in the Python IDLE. When you post your task, it is going to be in two documents:

Your Python code (as a .Py document) This completed project template Step Four: Generalize & Assess

Complete the Post Mortem Review (PMR). Write thoughtful - to three-sentence responses to all the questions within the PMR chart.

Post Mortem Review Question Response What became the reason of your software? How ought to your program be useful inside the real international? What is a trouble you ran into, and how did you repair it? Describe one issue you would do otherwise the subsequent time you write a program. How may want to your software be generalized and useful in other regions Multiple desire questions:

Question 1(Multiple Choice Worth 5 points)

Which of the subsequent statements is real concerning Python libraries?

A-Python libraries are a set of facts systems.

B-Python libraries are a collection of documents.

C-Python libraries are a set of functions.

D- Python libraries are a set of modules.



Question 2(Multiple Choice Worth five points)

When writing Python code, which of the subsequent must be used to feature the mathematics module library?

A- from math import *

b-uploading from math *

c-insert from math *

d-encompass from math *



Question 3(Multiple Choice Worth 5 points)

You visit a internet site with a link to a compressed file and download it correctly. Which Python Standard Library module might you operate to layout this file?

A- html

b-unzip

c-webzip

d- zipimport



Question 4(Multiple Choice Worth five points)

You are developing a sport that runs via a console, allowing you to check the game earlier than creating a person-pleasant interface. Which of the subsequent interfaces could you use to achieve your aim?

A -Command line interface

b-Computer language interface

c- Computer line interface

d- Graphical person interface



Question 5(Multiple Choice Worth 5 factors)

What are textual content-based totally programs?

A- Programs which might be written in a textual content editor

b-Programs that run through a GUI

c-Programs that run via command-line interface

d-Programs that run thru pix

imageimage

A company provides home internet networking services and promises customers to be compensated for a delayed service if the service calls cannot be resolved under an hour. Times for service calls is known to follow a normal distribution with a mean of 60 minutes and standard deviation of 12 minutes. What is the shortest range of service times that includes 60% of all service calls? Answer:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Labor and Employment Law Text and Cases

Authors: David Twomey

15th edition

1133188281, 978-1133711841, 1133711847, 978-1285247632, 978-1133188285

More Books

Students also viewed these Computer Network questions