Premium Essay

Selection Structures

In: Computers and Technology

Submitted By gnaih
Words 467
Pages 2
* One way if Statements – a single alternative (IF-THEN structure) * Two way if Statements – a dual alternative (IF-THEN-ELSE structure) * Multiple way Statements – a multi alternative structure (CASE structure) and make a comparison between them

D3.2 a. Write a program to read three integers and determine the smallest value. b. Write a similar program for ten integers.(for this version it is necessary just the algorithm and pseudocode)

Even the problem is very simple, please try to put in evidence the steps necessary for program development cycle (page 26 from book Prelude to Programming: Concepts and Design) 1. Analyze the problem 2. Design the program to solve the problem 3. Code the program 4. Test the program

1. Analyze the problem
Provide your analysis for the following problem statement:
Read three integers and determine the smallest value 1.1. Your analysis should be clearly written and demonstrate your thought process and steps used to analyze the problem. 1.2. Be sure to include what is the required output? 1.3. What is the necessary input and how you will obtain the required output from the given input? 1.4. Also, include your variable names and definitions. 1.5. Be sure to describe the necessary formulas and sample calculations that might be needed.

2. Design the program to solve the problem
Provide your program design for the program you analyzed that read three integers and determine the smallest value. 3.1. Be sure to describe the fundamental tasks needed to solve the problem so you can use a modular design. 3.2. Provide Hierarchy chart for the computer price calculator (see figure 2.4 page 85).

3. Code the program 4.3. Provide pseudocode of your overall design that includes the Main module and...

Similar Documents

Free Essay

Selection Structure

...Selection Structure Paper Natty Martinez PRG/211 December 23, 2013 Jennifer Sethman Selection Structure Paper It is important to be able to fix a problem in the workplace especially if it will help out the company or workplace. One way to fix the problem in the City of Harlingen is to be able to make a program that will let each department input their comments and reviews. This will make it easier on other departments to be able to see the plans and what the other department has made changes to or commented about to see if it was approved or not. The purpose of the structure that will be needed for the City of Harlingen in order for the employees to have a better communication is to be able to explain the process of solving the problem and developing the program in terms of the programming development cycle. The purpose of this structure would be to have all the employees in the City of Harlingen to be able to communicate through a program that will let them see the comments and reviews of their colleagues. The employees from each department will be able to make any changes needed within the program. The program will have a section in which the different departments will be able to write their comments. These sections will be readily available to each department. Each department will be able to have access to what other departments commented on and make the appropriate changes if needed. Being able to have access from each department will help other......

Words: 739 - Pages: 3

Premium Essay

Selection Structure

...Carlisle IT Part Number Selection Structure Phillip Reynolds PRG/211 Novermber 5, 2012 Jack Warner Carlisle IT Selection Structure in Part Selection Module In order to create a successful program the importance of the analysis and design stages of the program development cycle cannot be overstated. After an in depth look at the problem and analysis of the problem it has led to the first stages of product design. The project is on schedule and an example of the programs functions and use of control structures will be introduced as we discuss the program updates. Part Number Input Module One of the major functions of the program will not only be footage production, which will be discussed in later program development reports but also part number tracking. Tracking what part number is ran within each run will provide a historical database for analysis providing improved inventory control procedures. The data will be tracked as currently tracked on paper but stored digitally into a database. This process can be realized within the program by the utilization of control structures and iteration control structures. Control Structures As discussed within (Venit & Drake, 2011) a selection control structure gives a computer the ability to take a defensive stance against incorrect data, which forces users to enter valid data as the input. Selection control structures additionally offer users the ability to make a decision within a...

Words: 1191 - Pages: 5

Free Essay

Information System Briefing

...risks due to potential loss of funding” (Wager, Lee, & Glaser, 2009, para. 9). Implementing a new software system will benefit the Mobile Mammography Van greatly. This paper is intended to identify the process for selecting and acquiring an information system, explain how the organizations goals drive the selection process, and identify the roles each organization’s stakeholders play in the selection process. Selecting and Acquiring an Information System When an organization is selecting and acquiring a new information system there is a great deal of planning and steps they must take to implement the system properly. The first step is to establish a project steering committee. “This committee’s primary function is to plan, organize, coordinate, and manage all aspects of the acquisition process” (Wager, et. al., 2009, pg. 150). After the committee has been formed the project goals should be outlines along with the scope of the project and committee. Many questions will need to be discussed during this step. For example, the committee will need to determine the methods, processes, communication techniques, resources, and type of system that will be used through the selection and acquisition process. Once project goals and the scope of the project are defined the next step is to screen the marketplace and review vendor profiles. “Concurrently with the...

Words: 985 - Pages: 4

Free Essay


...Part1: Introduction. The approach I used in unit 5 was a generic design which is flexible in nature with a basic layout planned so it can be easily molded, or modified to fulfill a variety of needs or applications. The wireframe associated with the design is shown without a supporting structure. The associated structure will be dictated by its application and placement. Part 2: Non-Speech Sounds. Non-speech sounds are a part of our life that we have been exposed to from our youngest days until the present. Over time we learned to understand what they represented and understand more as we were exposed to them. Many key us to an action or event that occurred or is occurring around us even if we can’t or don’t see what sound is in response to. Our ability to interpret non-speech sounds and its connection to vision is a trait that can be effectively used in designing a kiosk. Sound can be employed as a vehicle to attract us to a kiosk, or draw attention to a product or service. While the sound may not directly provide information, it can used to create an interest in a product or service and draw us to it. A certain amount of care is needed in the selection of the sound that is being used to attract customers. Its purpose is to create interest and to support it, but not to take control of the presentation of the product. The same formula can be applied when we are using a kiosk. As well as sounds that may be used to enhance the......

Words: 917 - Pages: 4

Free Essay

Selection Paper

...Selection Structure Paper Given the following task: Selection Structure Paper, Use the Part 1: Programming Solution Proposal you developed in Week Two and select one section of the proposal that requires a selection structure. Write a 2- to 3-page paper describing the purpose of that structure and write the pseudocode for that structure. Examine any iteration control structure. If the program you described in Week Two does not lend itself well to the inclusion of a selection structure, create a new example of a selection structure. Create a Visual Logic flowchart that parallels this pseudocode. Test the flowchart to make sure that it executes properly and produces correct results. Submit the paper and the Visual Logic file. Format your paper consistent with APA guidelines. The process of selection is a way for the computer to interact with the user and to be able to understand how to make choices based on the user’s point of view or interest. Selection can be understood by computers by transforming such selections into algebraic equations, and from there into binary code which is the language that the computer understands, once the program is written, it will use a compilator, which acts as the translator between computer language and human language. The process of selection allows the user to choose what to do and then it gives options where to choose from, and it gives results which vary depending on the option selected by the user, when using the process of......

Words: 554 - Pages: 3

Free Essay

Human Resource Management

...What are the main factors that multinational enterprises will usually take into account in the selection process for high caliber employees on international assignments? As international assignments are always costly to multinational enterprises and they have to provide training and allowances for the expatriates, they have to select expatriates carefully to avoid international assignment failure. In order to select the suitable candidates and have a successful performance in the international assignment, the multinational enterprises would consider the technical abilities and managerial skills, cross-cultural suitability, family requirements, country requirements and situational factors in the selection decision. The selection criteria include technical abilities and managerial skills as the expatriates are going to work abroad, the system, political, legal structures may be different and the headquarters’ technical expertise cannot provide advises on the matters related to the job often. Therefore, the expatriates must be experiential, technical and with good managerial skills to adapt into the new working environment. Besides, the expatriates may work in a place/country with totally different culture and the cultural environment is important to determine successful performance so the cross-cultural suitability is also one of the selection criteria. The expatriates require cross-cultural abilities such as cultural empathy, adaptability, diplomacy, positive......

Words: 627 - Pages: 3

Premium Essay


...Geebold selected Ann as a project manager and they also selected the team then how Ann can again select a team if it has been already selected by the Geebold manufacturing . Secondly , Ann has obtained the approval on statement of work only and not on the project charter which is a riskier task . In addition to this Ann has done the work break down structure by herself which otherwise has to created by sitting with the team. If I would had been in the Ann`s place -: Then firstly I would had taken approval on project charter and statement of work . -: I would had taken part in team selection because ultimately I have to manage them and if there capability would had been already assessed by me then there would be less problem for me in assigning their roles . Moreover , as I would had been already in knowing the project , I would had been aware that how much team members are required for successful completion of project . -: Afterwards I would had shared project`s vision and goal with my team members so that they could know that what they are going to do . -: Then I would had done couple of meetings for work break down structure because we cannot distribute work unevenly as this is going to create a imbalance in the team . There are many things which Ann done correctly -: -: She has clearly and carefully defined the project in terms of cost , time and scope . -: She explained all the activities using various approaches i.e analogous , diagrams and analytically...

Words: 266 - Pages: 2

Premium Essay

Itb 300 Wk 8 Assignment 2 Expanding an Mnc

...SUPPORT@ACTIVITYMODE.COM ITB 300 WK 8 ASSIGNMENT 2 EXPANDING AN MNC ITB 300 WK 8 Assignment 2 - Expanding an MNC – Part 2 Imagine that you are a senior business manager in a U.S.-based MNC. Your boss has accepted your recommendation to expand the MNC into the country you selected in Assignment 1. Your boss has now asked you to formulate an entry and implementation strategy for expansion. Write a 5-7 page paper in which you: 1. Describe an organizational culture for your fictional MNC that would ease entry into the given market. 2. Prepare an environmental scanning analysis for the new market as illustrated in Figure 8-3. 3. Determine the entry strategy, ownership structure, and organizational structure for your fictional MNC that would ease entry into the given market. Justify your selections. More Details hidden... Activity mode aims to provide quality study notes and tutorials to the students of ITB 300 WK 8 Assignment 2 Expanding an MNC in order to ace their studies. ITB 300 WK 8 ASSIGNMENT 2 EXPANDING AN MNC To purchase this visit here: Contact us at: SUPPORT@ACTIVITYMODE.COM ITB 300 WK 8 ASSIGNMENT 2 EXPANDING AN MNC ITB 300 WK 8 Assignment 2 - Expanding an MNC – Part 2 Imagine that you are a senior business manager in a U.S.-based MNC. Your boss has accepted your recommendation to expand the MNC into the country you selected in Assignment 1. Your boss has......

Words: 601 - Pages: 3

Free Essay

Unit 6 Pt1420 Introprogramming

...Delvon Frye 7/26/2016 PT1420 Unit 6 Assignment Algorithm Workbench pg. 159 6-10 6. Select number Case 1: Display “You selected A.” Case 2: Display “You selected 2.” Case 3: Display “You selected 3.” Case 4: Display “You selected 4.” Default: Display “Not good with numbers, eh?” End Select 7. If Speed 24 > and Speed < 56 Display “Speed is normal.” Else Display “Speed is abnormal.” 8. If points are < 9 and >51 Display “Invalid points.” Else 9. Display “Valid points.” Select testMonth Case value_1: Display “January has 31 days.” Case value_2: Display “February has 28 days.” Case value_3: Display “March has 31 days.” Default: Display “Invalid selection.” End select 10. If hours==10 THEN Programming Exercises 5 and 8 pg. 160 5. Dim color1 as string Dim color2 as string Display (“Please enter two primary colors.”) Display (“The color you made is Purple”) Else Display (“The color you made is Purple”) Else Display (“The color you made is Orange”) Else Display (“The color you made is Orange”) Else Display (“The color you made is Green”) Else Display (“The color you made is Green”) Else If color1 = else or color2 = else then Display (“You failed to enter a valid color!”) End if 8. //This is a program asks the user to enter the number of coins required to make exactly one dollar. //Declare the variables Declare Real pennies Declare Real nickels Declare Real dimes......

Words: 533 - Pages: 3

Premium Essay

Decisions of Uncertainity

...Decisions of Uncertainty Introduction The Decision What is the probability of hiring a qualified employee upon selecting one from 52 applicants 26 are male and 26 are female? Probability Concepts The probability of the event –hiring a qualified male employee—is the proportion of times the company would expect to obtain a qualified male employee over the long run if the HR managers selected applicants many times. I will refer to each repetition of the situation – in this case the selection of a qualified male future employee—as a sampling experiment. The probability of the event is the proportion of times we would expect the event to occur in an infinitely long series of identical sampling experiments. The Outcome In this case, the probability of selecting a qualified male employee is 0 .50 or 50%. I arrived at this conclusion by using the knowledge that there are 52 applicants who areapplying for the open position, 26 are female and 26 are male. If the company assume that each of the 52 possibilities is equally likely, it is reasonable to expect that the company would select a male applicant that is qualified for the open position 0.50 of the time of a period of time ( 26/52 = ½ = 0.50 ). This illustrates the basic rule for obtaining probabilities in situations in which each of the possible outcomes is equally likely, the probability of the occurrence of an event is equal to the proportion of the possible outcomes characterized by the event. In the case......

Words: 341 - Pages: 2

Free Essay

Delegate Replication Rights to Non-Admins

...Task 1 of 2 Create a Universal Group called Replication Management Admins in an OU you’ve chosen to hold groups for delegated access or other security related task. Open ADSI Edit and connect to the Configuration Naming Context as seen in the image below. Once you've selected Configuration in "Select a well known Naming Context", click OK Expand the Configuration Naming context and right click the Naming Context node below it. See the picture below for the arrow indicating where you should right-click. Next Click Properties Click the Security Tab Click the Advanced button Click Add Enter the name of the Universal Group you created in Step 1 and click OK In the Permission Entry for Configuration box scroll to the bottom and tic the Allow box for the Replication Synchronization permission. Ensure that "This object and all child objects" is selected for the Apply to and click OK Click Apply, then OK, and then click OK once more and you should be back to ADSI Edit with no open dialog boxes. Task 2 of 2 After you’ve completed steps 1-10 in Task 1 you'll need to view all the replicated partitions and do the same process for each partition. Click on CN=Partitions under CN=Configuration, DC= to view the partitions in the Configuration naming context. On each partition right click each object and select New Connection to Naming Context. Note: You don't have to do this for...

Words: 354 - Pages: 2

Premium Essay


...Name :Muhammad Musab Hussain ID:7601 Subject :MGM411 Human resource a,Analyze the job selected position and wirte their job description and job specification? Ans, description * Sales of companies goods and services * Building relationship with customers * Responsible for repeat sales of existing customers * Approaching customer with the aim of making new business deals * Presenting the product or service in a professional or structured way * Researching the market * Checking the inventory for products * Responding to incoming emails and phone calls * Attending team meeting and providing valuable feedback Specification * Strong sales skills * Communication skills * Bachelor’s degree * Master’s degree * Ability to multitask * Delivering revenue or exceeding target * 3 years minimum experience in sales * Organizational and time management skills * Negotiating and closing sales B,what method will you adopt for appointing a person on the selected position? Ans, 1. Top management approval 2. Advertisement development 3. Post advertisement on the news paper 4. Call the people for interviews 5. Conducts interviews 6. Select the people which best match the requirement 7. Further skim them 8. Conduct another interview 9. Upon approval select the final people for hiring 10. Conduct the physical examination 11. Hire people that pass the final......

Words: 355 - Pages: 2

Free Essay

Html Css 6th Edition Chapter 6 Video Quiz Questions

...type attribute, browsers assume you are creating a(n): a. file input box b. text input box ***** c. hidden input box d. image input box 3. What is required in the syntax when you need to refer to the control element? a. checkbox b. form label c. id attribute ******** d. name asterisk 4. The asterisk in Name* tells users that Name is a(n): a. id attribute b. required field ******* c. form label d. inline element 5. You create a selection list using the: a. id attribute b. name attribute c. option element d. selection element ******* 6. Which term defines the number of options that the selection list displays at one time? a. element b. control c. value **** d. field 7. Consider your audience and its initial reaction to a selection list when setting the: a. size attribute ****** b. list control c. style coding d. type option 8. The name attribute provides the name of the: a. field value b. selection list c. style sheet d. data field ***** 9. To create an option button, use the input element with the type attribute set to a value of: a. file b. image c. radio ******* d. text 10. When you use the same name for two or more option buttons, browsers treat them as a group, so selecting one option button automatically: a. highlights all the others b. selects all of the others c. deletes all the others d. deselects all of the others......

Words: 449 - Pages: 2

Free Essay

Human Resource Management

...Chapter -6 Employee Testing And Selection The importance of Selecting the Right Employee: If the Right Employee is not selected then there will be some problem like fall of organization,low performance,cost of recriting and hiring .there may 3problem feced by the employer if he Select wrong person  Organizational performance  Cost of Recruiting and hiring  Legal Obligation and Liability Organizational Performance: Employee performance affects organizational performance.Organizational performance including stragic planner operation, and organizational development will fall if the employer select the wrong candidate Perfromance differ for different employee The Costof Recruitong and hiring:The cost of simlpy finding the right person recruiting cost.if wrong person hired the the organization have to take another Interview ,advertige so that will increase the cost of the organization Legal Obligation and Liability:The candidate who apply for the job may be he/she be a bad person .He may have Criminal these Candidate can do Crime in the organization or harm the organization   Avoiding Negliting hiring claims: • Carefully Scrutinze information on employment applications.the information about candidate provided on the application should be read very carefully • Get Written......

Words: 296 - Pages: 2

Free Essay

Lab Report

...1 )   Create a new query in Query Design, including the Employee Info and Sales by Employee tables. Add the First Name and Last Name fields from the Employee Info table, and the Quarter and Actual Sales fields from the Sales by Employee table (in that order). Run the query.   Ribbon 1. | Click the CREATE tab. | 2. | On the CREATE tab, in the Queries group, click Query Design. | 3. | In the Show Table dialog box, with the Employee Info table selected, click Add. | 4. | Click the Sales by Employee table and then click Add. | 5. | Click Close in the Show Table dialog box. | 6. | In the query design window, in the Employee Info table, double-click the First Name field. | 7. | In the query design window, in the Employee Info table, double-click the Last Name field. | 8. | In the query design window, in the Sales by Employee table, double-click the Quarter field. | 9. | In the query design window, in the Sales by Employee table, double-click the Actual Sales field. | 10. | On the DESIGN tab, in the Results group, click Run. | |   Keyboard 1. | Press ALT (or F10, or F6 two times), C, and then QD. | 2. | In the Show Table dialog box, with Employee Info selected press ALT+A (or ENTER or TAB to select the Add button, and then press ENTER (or A or SPACEBAR)). | 3. | Press S (or use ARROW keys) to select the Sales by Employee table, and then press ALT+A (or ENTER or TAB to select the Add button, and then press ENTER (or A or......

Words: 10463 - Pages: 42