devry final exams
1.3K views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - CIS115 Final Exam 2

http://www.devrygenius.com/product/cis115-final-exam-2

 

 1. What is the first step in software development?2. What are named locations in a computer’s memory holding information required by a program?3. What symbol in a flowchart would be used by a developer to represent the beginning or ending point?4. ) Set name = “BSCIS” is a process. What data type would you expect the variable, name, to have?5. (You are using dollar amounts in an algorithm. What data type would you assign?6. What tool is used by developers to design logic using specific shapes/symbols?7. When a program evaluates mathematical expression, which of the following operators (or mathematical operations) takes precedence?8. (Which one of the following is a valid assignment statement in a program?9. (Evaluate (2 * 3) ^ 3.10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and total sales for both regions?
Prompt “Enter total sales for region 1: “
Input region1
Prompt “Enter total sales for region 2: “
Input region2
Set _____
Display “total sales: “ + total (Points : 4)11. (TCO 3 & 4) Review the pseudocode below. What will be displayed when this algorithm executes?
Set 
If ((x > = 10) AND (x < 20))="">
Display “the IF path executes”
Else
Display “the ELSE path executes”
EndIf (Points : 4)12. (TCO 3 & 4) What value gets displayed for the variable X?
Set 
Set 
Set 
If (B > 15) AND (() OR (C <= 15))="">
Set 
Else
Set 
EndIf
Display X (Points : 4)13. (TCO 3 & 4) In the following pseudocode, what raise will an employee in Department 6 receive?
If department < 2="">
Set 
Else
If department < 6="">
Set 
Else
Set 
EndIf
EndIf (Points : 4)14. (TCO 3 & 4) Which of the selection structures determine whether the user enters a number outside a range of 5 and 15? (Points : 4)15. (TCO 3 & 4) What value gets displayed for the variable Z?
Set 
Set 
Set 
If ((balance <> 800) OR (stateCode <> 6) OR (creditCode <> 7) then
Set 
Else
Set 
EndIf
Display Z (Points : 4)1. (TCO 5) The statements executed within a loop are known collectively as the _____. (Points : 4)2. (TCO 5) Which of the following statements is false? (Points : 4)3. (TCO 5) A DO loop is considered what type of loop? (Points : 4)4. (TCO 5) What happens when the loop control variable is not changed? (Points : 4)5. (TCO 5) How many times will the following loop be executed? 
Set 
DOWHILE num <=>
Display num
Set + 1
ENDO (Points : 4)6. (TCO 7) What is another name for an array’s index? (Points : 4)7. (TCO 7) Suppose you have an array named number,
and two of its elements are number(1) and number(4). You know that _____. (Points : 4)8. (TCO 7) Which one of the following correctly declares a zero-based array of four integers? (Points : 4)9. (TCO 7) When processing the elements of an array, what control structure is used to move through each element within the array? (Points : 4)10. (TCO 7) A zero-based array named sales has been declared and loaded with the values 100, 1100, 3400, 5550, 3000, 22300, and 1200. What value will be stored in the array elementsales(1)? (Points : 4)11. (TCO 6) A file contains _____. (Points : 4)12. (TCO 6) What is automatically placed at the bottom of a file when the file is closed? (Points : 4)13. (TCO 8) Menu-driven programs need to give the user the option to _____. (Points : 4)14. (TCO 9) What type of error occurs when a program will not execute because the rules of the language have been violated? (Points : 4)15. (TCO 2) The first module is usually considered to be called the _____ module. (Points : 4)1. (TCO 10) A retail store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $100, the discount is 10%. When the purchases are $100 or less, the discount is 5%. (Points : 10)2. (TCO 10) A small business in your neighborhood would like an application developed that determines the average dollar amount spent for every three purchases. The user will enter three different purchase amounts. You need to display the average to your client. Complete the pseudocode to design your logic. (Points : 10)3. (TCO 9 & 10) There is a logic error in the following pseudocode. The loop needs to execute four times. What statement(s) would you need to add or change to correct the logic? Be sure to explain why you are adding or changing the statements.
Set 
REPEAT
Set + 1
UNTIL total <>
EndWhile
Display total (Points : 10)4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The design is determining the correct sales tax depending on the county identifying code. Counties with a number less than 10 have a 6% sales tax. The 11–25 codes have a sales tax of 7%. Codes above 25 have a sales tax of 8%. The code is entered by the user. 
Begin
Declare Real salesTax
Declare _____ countyCode
_____ “Enter the county code: “
_____ countyCode
If _____ <= 10="">
Set 
Else
If _____ AND _____ then
Set 
Else
_____
EndIf
_____
Display “the sales tax is: “ + _____
End (Points : 10)5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The design is to display a 60-second countdown.
Begin
Declare _____ count
Set 
REPEAT
Display “countdown: “ + _____
Set - 1
UNTIL _____
EndDo
Display “LIFT OFF!”
End (Points : 10)6. (TCO 4, 5 & 10) Complete the pseudocode by rewriting the algorithm. The colors red, blue, and yellow are known as primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color. Mixing yellow and blue gets you green. Mixing red and blue gets you purple. The algorithm allows the user to enter two primary colors and then displays the resulting secondary color. The colors entered by the user will be validated to ensure they entered a primary color.
Begin
Declare String color1
Declare String color2
Declare String control1
Declare String control2
_____ “Enter first primary color: “
Input _____
Prompt “Enter the second primary color: “ 
Input _____
Set control1 = “n”
DOWHILE control1 = “n”
If (color1 <> “yellow”) _____ (color1 <> “red”) _____ (color1 <> “blue”) then
Prompt “first primary color is invalid”
Input _____
Else
Set control1 = “y”
ENDO
Set control2 = “n”
DOWHILE control2 = “n”
If (color2 <> “yellow”) _____ (color2 <> “red”) _____ (color2 <> “blue”) then
Prompt “second primary color is invalid”
Input color2
Else
Set control2 = “y”
ENDO
If (color1 = “red”) AND (_____) then
Display “secondary color is: purple”
EndIf
If (color1 = “yellow”) AND (_____) then
Display “secondary color is: green”
EndIf 
End (Points : 10)7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and pseudocode and explain whether one is more important to develop than the other. (Points : 10)8. (TCO 1, 2, 3, 4, & 5) Describe two of the three control structures and how relational and logical operators are used. (Points : 10)
more...
No comment yet.
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - CIS170 Final Exam

http://www.devrygenius.com/product/cis170-final-exam

 

1. (TCOs 1, 6) Because information in _____ is lost when the power is turned off, that type of memory is considered to be _____. (Points : 5) 

auxiliary storage, nonvolatile
 auxiliary storage, volatile
 RAM, nonvolatile
 RAM, volatile 

2. (TCOs 1, 6) What does IDE stand for? (Points : 5) 
 Interior Design Environment
 Integrated Development Environment
 Integrated Design Environment
 Interior Development Environment 

3. (TCOs 1, 6) Which keyboard function key do we use to compile and run a C# program within Visual Studio.NET? (Points : 5) F5
 F11
 F10
 F1

4. (TCOs 2, 3) A computer uses the _____ numbering system to represent and manipulate data. (Points : 5) 

binary
 decimal
 hexadecimal
 octal

5. (TCOs 2, 3) The proper operator precedence, from first to last, is _____. (Points : 5) 

subtraction, addition, and multiplication
 addition, subtraction, and multiplication
 exponentiation, division, and subtraction
 exponentiation, addition, and division
 exponentiation, division, and multiplication 

6. (TCOs 2, 3) Your C# program needs to store a single alphanumeric character the user will enter. When your program starts, the default setting for that character should be the letter A. You implement this functionality by writing _____.
(Points : 5)char myVar = A;
 char myVar = ‘A’;
 char myVar(‘A’);
 char myVar(A);

7. (TCO 4) The following C# code _____ compile; however, it contains a _____ error.int x = 15, y = 10;
if (x < y);="">
Console.WriteLine("x is less than y"); 

will, compiler
 will, logical
 will not, compiler
 will not, logical 

8. (TCO 4) Which part of this expression will be evaluated first? 

if (b <= c="" &&="" d="">= e) 


 b <=>
 c || d
 d >= e
 if() 

9. (TCO 5) Your program keeps asking for input from the user. If there is more input, the user types “Y” after entering the data. If there is no more input, he/she enters “N.” In this context, “Y” and “N” are used as _____. (Points : 5) 

accumulators
 counters
 integer data types
 sentinel values 

10. (TCO 5) In this code, the variable _____ is a counter and the variable _____ is an accumulator. 

double sum = 0, height = 2.0, stop =10, max = 50;
int track = 0, num = 0;
while (num <=>
{
sum = sum + height * num;
if (sum <=>
track++;
num++;


 num, track
 sum, track
 track, sum
 height, stop 


1. (TCOs 7, 8) Which is a predefined C# method? (Points : 5) 


 Console.PrintLine();
 Console.Print();
 Math.Sum();
 Math.Sin();

2. (TCOs 7, 8) Which is a valid overloaded version of the following method? 

float DetermineResults(float num1, float num2) 

(Points : 5) 


 float DetermineResults(double num1, float num2)
 float DetermineTheResults(float num1, float num2)
 void DetermineResults(float num1, float num2)
 double DetermineResults(float num1, float num2)





3. (TCOs 7, 8) Because Main() and MyFunction() store counter in _____, the output of this code will be _____. 


(Points : 5) 


 different memory locations, 8 9 10
 the same memory location, 8 9 10
 different memory locations, 8 9 11
 the same memory location, 8 9 11 


4. (TCOs 9, 10) Which of the following is not good programming practice? (Points : 5) 


 Indenting the statements in the body of each control structure
 Using integer types for loop control variables
 Left-aligning nested repetition structures
 Placing vertical spacing above and below control structures




5. (TCOs 9, 10) In Figure 1, objectB is a _____ and objectC is a _____.

 CheckBox, Form
 Checkbox, MenuStrip
 RadioButton, Form
 RadioButton, MenuStrip


6. (TCOs 9, 10) When the user of your flight reservation GUI selects the “checkBoxAirGhana” CheckBox, the string “AirGhana” should appear in the “listBoxOrder” ListBox. To implement this functionality, write _____ in the ckBoxAirGhana_CheckedChanged() event handler.
(Points : 5) 

7. (TCOs 11, 12) To pass the entire myInfo array to the PrintElements method, replace the commented line below with _____. 

 PrintElements(myInfo);
 PrintElements(myInfo[0]);
 PrintElements(ref myInfo);
 PrintElements(6,7,8,9);


8. (TCOs 11, 12) The size of an _____ must be determined when the program is written, whereas elements of an _____ can be added or deleted at runtime. (Points : 5) 

 ArrayList, array
 array, ArrayList
 array, array
 ArrayList, ArrayList 

9. (TCOs 11, 12) An array that stores four days of closing stock market prices can be declared as _____. (Points : 5) 

 decimal price1, price2, price3, price4;
 decimal [] price = new price[4];
 decimal price[] = new decimal[4];
 decimal [] price = new decimal[4];

10. (TCO 13) Because your C# program needs to read data from a file one character at a time, you choose to use the _____ member of the _____ class. (Points : 5) 


 ReadChars(), StreamReader
 ReadChars(), BinaryReader
 ReadChar(), StreamReader
 ReadChar(), BinaryReader 

11. (TCO 13) To print out the time a file called “timeSheet.txt” was created, write _____. (Points : 5) 

 Console.WriteLine(File.GetCreationTime("timeSheet.txt"));
 Console.WriteLine(GetFileInfo(“timeSheet.txt”);
 Console.WriteLine(GetCreationTime(“timeSheet.txt”);
 Console.WriteLine(File.FileInfo(“timeSheet.txt”);

12. (TCO 13) The following C# code will print out _____. 


 the names of all files in the current directory
 the names of all subdirectories of the root directory
 the contents of all files in the root directory
 the names of all subdirectories of the current directory


1. (TCO 3) Show the source code for a C# console application called “SalesTax” to display a 7% sales tax one would pay on an item that costs $150. (Note that the sales tax would be .07 times the value of the item.) 

· Declare and initialize appropriate variables for tax rate and item cost. 

· Include at least three descriptive comments. 

· State what your program displays when it runs. 

· State how you would use the debugger to check the values of your variables as your program runs.


2. (TCO 5) Describe two types of loops that can be used to write the C# code required to print every fifth integer from 0 to 500 (i.e., 0, 5, 10, 15, etc.), each on its own line. Which would be a better choice and why? Write the code using that type of loop. (Points : 20)

3. (TCO 8) Briefly describe how parameter passing by-value and by-reference are accomplished in memory. Write statement 1 to call method A below. Write statement 2 to call method B. Which method uses pass by-value? Which method uses pass by-reference?

4. (TCO 9) Identify an example of one of each of the following GUI design errors in Figure 2:


5. (TCO 2) Although the following code compiles and runs, the programmer made some major readability errors. Describe at least three changes that would make it easier for other programmers to read and understand the code. 


6. (TCO 11) Write a C# program to store an array of integers 10 through 19. Use an appropriate loop to multiply all of the values in the list. Print out the result. (Points : 20)
more...
No comment yet.
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - CIS 407 Final Exam

http://www.devrygenius.com/product/cis-407-final-exam

 

1. (TCO 1) In order to design Web forms in Visual Studio.NET, we use the _______.2. (TCO 1) Many of the Web server controls have a _______ menu, which allows developers options to perform common tasks and settings3. (TCO 1) The starting page for the website can be changed by _______.4. (TCO 2) _______ allow users to select controls by keyboard shortcuts5. (TCO 2) You can use the ________ to specify the maximum amount of characters that can be entered in a textbox6. (TCO 2) The CheckedChanged Event for a radio button occurs _________.7. (TCO 3) You can use ________ to track the state of each user in the application.8. (TCO 3) The ________ control displays the navigation as menu options9. (TCO 3) ________ variables are maintained while the browser is opened10. (TCO 4) To create an SQLDataSource from the Designer, developers can _______.11. (TCO 5) _______ is the ability for the GridView to display data one page at a time.12. (TCO 5) The ________ layer is used to contain the data for the application.13. (TCO 6) Transaction objects in .NET contain methods to14. (TCO 6) _________ starts the transaction process15. (TCO 6) _________ reverts the changes in the database16. (TCO 6) _________, in transaction processing, means that managed resources survive failures1. (TCO 7) You need _______ in order to add one or more Views to a control2. (TCO 7) A _________ control can be implemented to allow users to step through a process3. (TCO 7) The _________ part of ASP.NET Web pages can contain a combination of Web controls, user controls, and HTML syntax4. (TCO 9) SMTP sends e-mails in _______ format.5. (TCO 9) A _______ is a web page that can be easily customized by users.6. (TCO 9) The ________ file controls the configuration of the ASP.Net Web application.7. (TCO 1) An absolute URL is _______.8. (TCO 1) When you bind a dropdown list to a data grid, the system will _______.9. (TCO 1) A _________ is a website that is located on your local computer10. (TCO 2) You can use the ________ to specify the maximum amount of characters that can be entered in a textbox11. (TCO 2) The CheckedChanged Event for a radio button occurs _________.12. (TCO 2) The Rows and SelectionMode properties apply to _______.13. (TCO 3) You can use ________ to track the state of each user in the application14. (TCO 3) ________ values are stored in the memory of the ASP.NET process.15. (TCO 9) In IIS, you can create a _____ directory, which points to a location other then (THAN) the directory you create for the project1. (TCO 1) Describe three components found in the Application Layer2. (TCO 2) Describe one item that needs to be kept in mind when designing web forms for the Presentation Layer of an N-Tier Architecture3. (TCO 3) Describe the ASP.NET session state object and give one example of what it can be used for in a web application4. (TCO 4) Describe two advantages of using stored procedures instead of inline SQL.5. (TCO 5) List the seven general steps involved in creating a Web-based data-driven application that uses a bound control to display data from a database
more...
No comment yet.
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - BUSN 420 Week 8 Final Exam

http://www.devrygenius.com/product/busn-420-week-8-final-exam

 

Page 11. (TCO 1) As an assistant in the legal department of a major corporation, your supervisor has asked you to do some research on how various laws may be applied in an upcoming case. Your department needs to coordinate with outside counsel and wants to be up to speed on how the law works. Explain the sources of law in the American legal system. Is our civil law system more or less advantageous than the common law system? Why is it important to understand all sources of law and where to find them? Explain your answer with examples in a business context. (Points : 25)2. (TCO 2) Given the current economic climate nationwide and locally, the state of Delmarva would like to impose a higher tax on out-of-state companies doing business in the state than it imposes on in-state companies. The reason behind the legislature’s enactment of this law is to protect the local firms from out-of-state competition because they are losing local business, which is affecting the state’s economy. Is this law legal, or is it a violation of equal protection for a state to impose? What legal standards could the court apply in evaluating the constitutionality of a law and which would apply in this instance? Explain. (Points : 25)3. (TCO 3) Create a brief scenario and walk it through the litigation process, beginning with how to select the proper jurisdiction of a court, and progressing through the basic steps leading to a resolution of the dispute through appeal.(Points : 25)4. (TCO 4) Sandy mails a letter back to Andrea that she has signed; the letter makes reference to a car Andrea has for sale and Andrea’s desired price. When Andrea later delivers the car to Sandy, Sandy returns the car, claiming she does not want the car and that they did not have a contract, so she is not bound to keep the car. Andrea, however, claims they do have a contract and wants to enforce said contract for the price of the car. What standard would the court use to determine whether there is a contract between the parties for the sale of the car?(Points : 25)5. (TCO 5) There are several distinctions in contract law between the UCC and common law as it relates to certain principles. As it relates to modification of a contract, how is the UCC’s treatment of this subject different from that of common law? What are the important factors to be considered? Provide an example that demonstrates the difference.(Points : 25)Page 2
1. (TCO 6) Explain your understanding of administrative law. How would you classify administrative law from a categorical standpoint as it fits in the context of other areas of law and what procedures are involved in the administrative process as it pertains to an agency’s function and purpose?(Points : 25)2. (TCO 7) Smart Corporation began marketing phone in 2002 under the mark “Smart.” In 2008, Smart.com, Inc., a different company selling different products, such as school supplies and the like, begins using “smart” as part of its website URL and registers “sMART” as its domain name. Can Smart Corporation stop this use of “sMART”? If so, what must the company show? Use the scenario given to explain your answer in this context.(Points : 25)3. (TCO 8) Your Company, Inc. wants to do business with My Company, LLC. Because our companies are both savvy, they would like to conduct their business online. What determines the effect (or lack thereof) of the electronic documents evidencing the parties’ deal according to the Uniform Electronic Transactions Act (UETA)? Is a “signature” from one of the company’s a necessary part of the deal? Explain you answer by elaborating on the scenario with the facts you think are necessary to support your position.(Points : 25)4. (TCO 9) Agency law plays a big part in corporate responsibility (and liability). Differentiate between an employee and an independent contractor. What is the difference and what are the key factors that must be considered in determining one’s status as an employee or independent contractor? Once status is determined, what affect will it have on the responsibilities of the agent? The principal? Is one status better than another? Why? Explain your answers using a representative example involving a principal, an agent, and a situation that would call the agent’s status into question.(Points : 25)5. (TCO 10) Tim and Tom are twins. They live and work near the beach and are also partners in TnT, Inc., a bicycle messenger service. When deliveries are few, especially in the summer, Tom without telling Tim, rents the extra bicycles to tourists who want to explore the resort area. Because the bicycles aren’t being used for deliveries, is it acceptable for Tom to keep the proceeds he receives from renting leasing the unused bicycles? Explain your answer based on the facts in the scenario in the context of partnership law.(Points : 25)
more...
No comment yet.
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - CIS 115 Final Exam

http://www.devrygenius.com/product/cis-115-final-exam

 

 (TCO 1) Displaying data on the screen is considered a(n) _____ operation(TCO 2) Which statement is not true about variable names(TCO 3) The statement below would be placed within what symbol on a flowchart?
balance < 1000="">(TCO 2) Set rate = 15.50 is a process. What data type would you expect the variable, rate, to have(TCO 3) Which is not one of the three basic control structures used in programming(TCO 2) When an expression includes relational, logical, and arithmetic operators, which type of operator is evaluated last(TCOs 2, 7) What is the problem with the following assignment statement, given that grade is an integer variable(TCO 2) What value will be contained in the variable x after the following statement is executed?(TCO 2) The statement below indicates that the variable rep is being used as a(n) _____.
rep = rep + num(TCO 4) For the following expression to be true, _____.
condition1 OR condition2(TCOs 2, 7, 8) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and calculate 50% of a cost?
Prompt “Enter total cost: “
Input cost
Set _____
Display “50% of the cost is: “ + total(TCOs 3, 4, 8) Review the pseudocode below. What will be displayed when this algorithm executes?
Set x = 20
If ((x > = 10) AND (x < 20))="">
Display “the IF path executes”
Else
Display “the ELSE path executes”
EndIf(TCOs 3, 4, 8) What value gets displayed for the variable X?
Set A = 6
Set B = 10
Set C = 15
If (B < 15)="" and="" ((a="5)" or="" (c=""><= 15))="">
Set X = 1
Else
Set X = 0
EndIf
Display X(TCOs 3, 4, 8) In the following pseudocode, what raise will an employee in Department 5 receive?
If department < 3="">
Set raise = 25
Else
If department < 5="">
Set raise = 50
Else
Set raise = 75
EndIf
EndIf(TCOs 3, 4) Which of the selection structures determines whether the user enters a number outside a range of 5 and 15(TCOs 3, 4, 8) What value gets displayed for the variable Z?
Set balance = 800
Set stateCode = 6
Set creditCode = 7
If (balance <> 800) OR (stateCode<> 6) OR (creditCode<> 7) then
Set Z = 3
Else
Set Z = 2
EndIf
Display Z(TCO 5) What happens when the loop control variable is not changed within the loop body?(TCO 5) In Visual Basic, which of the following statements is false(TCO 5) In the following code, how many times will the loop body be executed(TCOs 3, 5, 8) In the following code, how many times will the loop body be executed?
Dim x as Integer
x = 10
While x <=>
Console.Writeline(x)
x = x + 1
End While(TCO 6) Suppose you have an array named number, and two of its elements are number(1) and number(4). You know that _____.(TCO 6) What is the value of the index used to access the last element in a Visual Basic array declared as?
Dim num(12) As Integer(TCOs 5, 6) Which loop would be used to process each element of an array declared as the following?(TCO 6) A zero-based array named sales has been declared and loaded with the values 100, 1100, 3400, 5550, 3000, 22300, 1200. What value(s) will be stored in the array element sales(2)?(TCOs 7, 8) What type of error occurs when a program successfully executes but produces incorrect results?(TCOs 3, 8) Execution of your program in Visual Basic starts with the _____ module(TCOs 2, 3, 8) Your program will read in a tax rate as a percentage (i.e., input 8 for 8%) and the prices of three items. The program is to calculate the total price (before tax) of the items, the tax payable on those items (using the specified tax rate), and the total amount of the sale including tax. Print the total price (before tax), the amount of tax, and the total amount of the sale as output(TCOs 3, 4, 8) PART 1 (10 points): A department store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $500, the discount is 10%. When the purchases are $500 or less, the discount is 6%.(TCOs 4, 5, 8) Write a program to input a purchase amount and calculate the sales tax and total due. The sales tax depends on the county identifying code. Counties with a number less than 10 have a 6% sales tax. The 11–25 codes have a sales tax of 7%. Codes above 25 have a sales tax of 8%. The purchase amount and county code are entered by the user. Use a loop to validate that the county code is between 1 and 30. Display the amount of the sales tax and the total(TCOs 5, 8) Write a Visual Basic loop that counts up from 5 to 100 by 5s(TCOs 5, 6, 8) Review the following scenario and complete the design:
Scenario
You have been asked by the Payroll department to create a program that will calculate the weekly pay for the company’s 30 employees. The employee names and pay will be stored in arrays. The program will prompt the user to provide each employee’s full name, hourly pay rate, and hours worked. The program will then ask whether the employee is single or married. If an employee is married, the tax rate is 25%; if he or she is single, the tax rate is 20%. Also, if the employee worked more than 40 hours in a week, the number of hours greater than 40 is paid a rate 1.5 times the pay rate.
After all data are input and calculated, the program will display a payroll report with a list of all the employee names and weekly pay. In addition, the program will display the total payroll for the week and the average weekly pay.Write a program using Visual Basic, prompt the user for the appropriate input, and display the output as described above. You may assume all data are valid. Provide a program introduction message that tells the user how to use the program
more...
No comment yet.
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - CIS115 Final Exam 1

http://www.devrygenius.com/product/cis115-final-exam-1

 

 1. (TCO 1) What does IPO of IPO Model stand for? (Points : 4)2. (TCO 1) What is a data item with a name and a value that remain the same during the execution of a program? (Points : 4)3. (TCO 1) What symbol in a flowchart would be used by a developer to represent an input or output operation? (Points : 4)4. (TCO 1) Set is a process. What data type would you expect the variable, name, to have? (Points : 4)5. (TCO 1) You are using dollar amounts in an algorithm. What data type would you assign? (Points : 4)6. (TCO 2) What tool is used by developers to design logic using specific shapes/symbols? (Points : 4)7. (TCO 2) When a program evaluates mathematical expression, which of the following operators (or mathematical operations) has the lowest precedence? (Points : 4)8. (TCO 2) Using the assignment statement, + sales, which side of the equal sign is evaluated first? (Points : 4)9. (TCO 2) What value will be contained in the variable, x, after the following statement is executed?
* 5 / 10 + 6 (Points : 4)10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and total sales for both regions?
Prompt “Enter total sales for region 1: ”
Input region1
Prompt “Enter total sales for region 2: ”
Input region2
Set _____
Display “total sales: ” + total (Points : 4)11. (TCO 3 & 4) Review the pseudocode below. What will be displayed when this algorithm executes?
Set 
If ((x > 10) AND (x < 20))="">
Display “the IF path executes”
Else
Display “the ELSE path executes”
EndIf (Points : 4)12. (TCO 3 & 4) What value gets displayed for the variable X?
Set 
Set 
Set 
If (B > 15) AND (() OR (C <= 15))="">
Set 
Else
Set 
EndIf
Display X (Points : 4)13. (TCO 3 & 4) In the following pseudocode, what raise will an employee in Department 6 receive?
If department < 2="">
Set 
Else
If department < 6="">
Set 
Else
Set 
EndIf
EndIf (Points : 4)14. (TCO 3 & 4) Which of the selection structures determines if the user enters a number between 20 and 45? (Points : 4)15. (TCO 3 & 4) What value gets displayed for the variable Z?
Set 
Set 
Set 
If ((balance <> 800) OR (stateCode <> 6) OR (creditCode <> 7) then
Set 
Else
Set 
EndIf
Display Z (Points : 4)1. (TCO 5) The variable used to create an expression controlling the loop is known as the _____. (Points : 4)2. (TCO 5) Which of the following statements is false? (Points : 4)3. (TCO 5) Which control structure is classified as a loop? (Points : 4)4. (TCO 5) Repetition that loops a certain number of times is typically referred to as _____. (Points : 4)5. (TCO 5) How many times will the following loop be executed? 
Set 
DOWHILE x <> 7
Display x
Set + 1
ENDO (Points : 4)6. (TCO 7) What is a subscript or an index? (Points : 4)7. (TCO 7) Suppose you have an array named number and two of its elements are number(1) and number(4). You know that _____. (Points : 4)8. (TCO 7) What is the value of the index used to access the last element in a zero-based array declared as num(12)? (Points : 4)9. (TCO 7) When loading/initializing the elements of an array, what control structure is used to move through each element within the array? (Points : 4)10. (TCO 7) A zero-based array named sales has been declared and loaded with the values: 100, 1100, 3400, 5550, 3000, 22300, 1200. What value will be stored in the array element, sales(2)? (Points : 4)11. (TCO 6) A record contains _____. (Points : 4)12. (TCO 6) What are the three modes of operation on a file? (Points : 4)13. (TCO 8) Many algorithms require direct communication from users. These types of algorithms are called _____. (Points : 4)14. (TCO 9) What type of error occurs when an array subscript’s value goes beyond the total number of elements in the array? (Points : 4)15. (TCO 2) What type of variable can be accessed by any module within the design? (Points : 4)1. (TCO 10) A department store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percent, and display the total amount due. When the purchases are more than $500, the discount is 10%. When the purchases are $500 or less, the discount is 6%. (Points : 10)2. (TCO 10) A small business in your neighborhood would like an application developed that determines the average dollar amount spent for every three purchases. The user will enter three different purchase amounts. You need to display the average to your client. Complete the pseudocode to design your logic. (Points : 10)3. (TCO 9 & 10) There is a logic error in the following pseudocode. What statement(s) would you need to add to correct the logic? Be sure to explain why you are adding the statements.
Set 
DOWHILE num <=>
Set + num
ENDO
Display total (Points : 10)4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The design is determining the correct sales tax depending on the county identifying code. Counties with a number less than 7 have a 5% sales tax. The 8-24 codes have a sales tax of 7%. Codes above 24 have a sales tax of 9%. The code is entered by the user.
Begin
Declare Real salesTax
Declare ____ countyCode
_____ “Enter the county code: “
Input _____________
If _______ <= 7="">
Set 
Else
If ______ AND ______ then
______________
Else
Set 
EndIf
____________
Display “the sales tax is: “ + _______________
End (Points : 10)5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The design is to display a 60 second countdown.
Begin
Declare _______ count
Set 
REPEAT
Display “countdown: “ + _______
Set - 1
UNTIL ___________
Display “LIFT OFF!”
End (Points : 10)6. (TCO 4, 5 & 10) Complete the pseudocode by rewriting the algorithm. The colors red, blue, and yellow are known as primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color. Mixing yellow and blue gets you green. Mixing red and blue gets you purple. The algorithm allows the user to enter two primary colors and then displays the resulting secondary color. The colors entered by the user will be validated to ensure they entered a primary color.
Begin
Declare String color1
Declare String color2
Declare String control1
Declare String control2
______ “Enter first primary color: “
Input _______
Prompt “Enter the second primary color: “ 
Input _________
Set control1 = “n”
DOWHILE control1 = “n”
If (color1 <> “yellow”) ______ (color1 <> “red”) _______ (color1 <> “blue”) then
Prompt “first primary color is invalid”
Input _________
Else
Set control1 = “y”
ENDO
Set control2 = “n”
DOWHILE control2 = “n”
If (color2 <> “yellow”) ______ (color2 <> “red”) _______ (color2 <> “blue”) then
Prompt “second primary color is invalid”
Input color2
Else
Set control2 = “y”
ENDO
If (color1 = “red”) AND (__________) then
Display “secondary color is: purple”
EndIf
If (color1 = “yellow”) AND (_________) then
Display “secondary color is: green”
EndIf 
End (Points : 10)7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and pseudocode and explain whether one is more important to develop than the other. (Points : 10)8. (TCO 1, 2, 3, 4, & 5) Compare and contrast sequence control structures and selection control structures. (Points : 10)
more...
No comment yet.
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - CIS 206 Final Exam

http://www.devrygenius.com/product/cis-206-final-exam

 

 1. (TCO 1) UNIX (the predecessor of Linux) was originally developed by _____. (Points : 6)2. (TCO 2) The _____ is the core component of the Linux operating system3. (TCO 2) A Linux _____ Partition is the partition that is used as virtual memory on the hard d1. (TCO 6) After connecting to an FTP site, the ______ command will toggle off the Interactive messages during file transfer2. (TCO 6) After connecting to an FTP site, the _____ command will download multiple files.3. (TCO 6) Name a protocol listed below that is connection-oriented4. (TCO 5) Select the UNIX command used to generate a private and a public key for encrypting and decrypting files using secure shell (SSH).5. (TCO 5) What is the name of the stable and reliable firewall daemon that is freely available in every version of Linux6. (TCO 5) As a security measure, all TCP services are protected by TCP wrappers. What two files make up TCP wrappers7. (TCO 5) The Linux firewall daemon iptables can enforce rules on all the following chains except _____.8. (TCO 4) For security reasons, _____ is the name of the file that holds each user’s actual encrypted password9. (TCO 4) In a file permissions, if a permission is unavailable or not assigned, a(n) _____ character replaces its position in the displayed permissions10. (TCO 4) When using the chmod command in numeric mode, the permissions rw- can be represented by the number11. (TCO 4) After the user is created, the content of the _____ directory is copied to the new users’ home directory1. (TCO 7) In the Linux sudoers configuration file, which of the following lines will give the user student the right to execute the service command2. (TCO 7) Unix services whose file name end in a d, such as dhcpd, xinetd, smtpd, httpd, etc. indicate that the particular file is a _____.3. (TCO 7) Which one of the following Linux commands will allow you to view the Windows shares on a computer named winclient10 as the user smbuser4. (TCO 7) What is the path and name for the directory where you can place scripts that will automatically run every hour5. (TCO 6) What is the name of the UDP protocol that automatically provides TCP/IP host configuration information to PCs, and what UDP port numbers does it use6. (TCO 5) What is the command required to create a set of public and private keys that can be used by SSH (secure shell)7. (TCO 4) What is the name of the path and filename for the file that contains encrypted passwords for Linux users8. (TCO 3) What is the single command that will display all files in the /bin directory that begin with the letters a, b, or c ) assuming /root is the current directory9. (TCO 2) What is the core component of the Linux operating system called10. (TCO 1) What is software called that is distributed free of charge, but without the sourcecode provided
more...
No comment yet.
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - BUSN 258 Week 8 Final Exam 1

http://www.devrygenius.com/product/busn-258-week-8-final-exam-1

 

 1.Question :(TCO 1) The best way to win customer loyalty is to:Points Received:5 of 52.Question :(TCO 2) Which of the following problems is NOT listed as a people turnoff?Points Received:5 of 53.Question :(TCO 3) Small companies can compete against larger ones if they offer:Points Received:5 of 54.Question :(TCO 4) Which of the following is NOT an example of something a company can do to enhance extrinsic value?Points Received:5 of 55.Question :(TCO 5) Companies cannot wait years for their customers to see long-term value, so they should:Points Received:5 of 56.Question :(TCO 4) Smart companies connect with their customers through:Points Received:5 of 57.Question :(TCO 5) Intrinsic value arises from:Points Received:5 of 58.Question :(TCO 5) Communication efficiency is:Points Received:5 of 59.Question :(TCO 5) Customer convenience stems from:Points Received:5 of 510.Question :(TCO 4) How long do Americans want to spend preparing a meal?Points Received:5 of 511.Question :(TCO 9) To avoid requiring customers to do repetitive tasks:Points Received:5 of 512.Question :(TCO 8) A company's culture is made up of:Points Received:5 of 513.Question :(TCO 8) Many customers get their first impression of your company from:Points Received:5 of 514.Question :(TCO 9) Calling yourself Mr. or Ms. may give the impression that:Points Received:5 of 515.Question :(TCO 8) Which employees do most customers associate with a company?Points Received:5 of 516.Question :(TCO 10) The three-step process for acting on complaints does NOT include:Points Received:5 of 517.Question :(TCO 10) What percent of customers whose complaints are dealt with report a willingness to do business with a company again?Points Received:5 of 518.Question :(TCO 10) Feedback is a form of:Points Received:5 of 519.Question :(TCO 10) A quick response to a customer's problem should convey:Points Received:5 of 520.Question :(TCO 11) When it comes to listening versus speaking:Points Received:5 of 521.Question :(TCO 12) A good strategy with an angry customer is:Points Received:5 of 522.Question :(TCO 6) Which of the following behaviors is NOT characteristic of aggressive people?Points Received:5 of 523.Question :(TCO 11) Abrasiveness refers to:Points Received:5 of 524.Question :(TCO 13) In the NPS formula, the P stands for:Points Received:5 of 525.Question :(TCO 13) Market share refers to:Points Received:5 of 51.Question :(TCO 1, 2) Define and explain the NPS formula and how it applies to customer satisfaction.Points Received:25 of 25Superb response2.Question :(TCO 4,5) Explain the concept of goodness of product fit.Points Received:25 of 25Awesome response3.Question :(TCO 6, 7) Describe the two personalities a customer will encounter when doing business with an organization, and provide examples of each from your own experience.Points Received:25 of 25Fantastic response4.Question :(TCO 8, 9) Describe at least three techniques that companies can use to successfully engage their customers. What are your recommendations for improving a company's ability to engage their customers?Points Received:25 of 25Brilliant response5.Question :(TCO 13) Describe the difference between customer share and market share. Explain which concept is more important
more...
No comment yet.
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - BUSN 427 Week 8 Final

http://www.devrygenius.com/product/busn-427-week-8-final

 

 (TCO 1) Which are factors that move the world toward more globalization?(TCO 2) What is the difference between communists and social democrats?(TCO 3) What is probably more important than culture in explaining the differences in economic growth between countries?(TCO 3) Which theory deals with competitive advantage for countries?(TCO 4) FDI tends to flow(TCO 5) Which of the following is not a member of the Asia-Pacific Economic Cooperative?(TCO 6) What common good is used in most nations to create an index for measuring purchase power parity in various nations?(TCO 8) What are the various types of countertrade available?(TCO 8) In distribution strategy, what are the four main differences between countries?(TCO 3) When McDonald’s initially entered China, it was confident that its success in other parts of the world would facilitate its success in China, but they quickly found out that the relationships and connections implied by guanxi are an essential to business success in China. McDonald’s lost an attractive store location near Tiananmen Square to a Hong Kong developer who, thanks to relationships and connections developed over the years, was able to persuade city officials to overlook the lease McDonald’s held for the property.

Explain the concept of guanxi. Why is it so important to businesses operating in China? How did McDonald’s lack of guanxi raise its costs of doing business in China?(TCO 3) In 2006, two Chinese journalists reported that the working conditions at Hongfujin Precision Industries where Apple’s iPods are produced were substandard. According to the report, not only were workers at the plant poorly paid, but they were also forced to work overtime. Apple immediately responded to the allegations and audited the factory in question. However, managers at the factory filed a defamation lawsuit against the two journalists. Despite the fact that Apple’s audit did indeed show substandard working conditions at the factory, Hongfujin did not withdraw the lawsuit. Eventually the Reporters Without Borders group took up the case for the two reporters and the lawsuit was dropped.


Should Apple be responsible for ensuring that its suppliers are safeguarding the basic rights and dignity of its employees? How can Apple be sure that its suppliers do not employ sweatshop labor?(TCO 3) Exports are largely responsible for China’s recent rapid economic growth. The country, capitalizing on its cheap labor force, has focused on converting raw materials into products that are exported to developed countries such as the United States. In 2008, China’s trade surplus was a record $280 billion, and its holdings of foreign exchange reserves were over $1.95 trillion. Some critics have suggested that China is following a neomercantilist policy.
Are the claims that China is following a neomercantilist policy valid? Why or why not?(TCO 4) For years, Japan has been relatively closed to significant foreign direct investment, but more recently the government has changed its policy and actually now encourages inward investment. Wal-Mart, taking advantage of this shift in policy, acquired a large Japanese retailer in 2002. Wal-Mart’s initial venture into Japan has been challenging and has forced the company to change its approach to better compete with local retailers and meet the needs of Japanese consumers. 

Why did Japan change its position on inward foreign direct investment? How will Wal-Mart’s investment benefit Japan?(TCO 7) Which of the following are true about the International Monetary Fund?(TCO 5) Concerning European Union’s progress toward creating a single financial market, the quest started in 1999 was to have been completed by 2005, however, progress has been slowed by various factors related to the tradition of each member country operating autonomously. By 2007, significant progress had been made. Some 41 measures designed to create a single market were in place and others were in the pipeline. The current issue facing the EU revolves around the enforcement of the rules that have been established as law. Some experts believe that it will be at least another decade before the benefits of the new rules become apparent. Discussion of this feature can begin with the following questions.
What are the benefits of creating a single financial market in the European Union for companies? Does it make sense for consumers?(TCO 6) In the 1980s, Caterpillar was negatively affected by a strong dollar and lost significant market share to Japanese competitor Komatsu. The situation prompted Caterpillar to revise its global strategy and by the 2000s, the company was in a much better position to deal with volatile currency values. More recently, a strong dollar has actually helped boost Caterpillar’s bottom line.

In the 1980s, a stronger dollar hurt Caterpillar’s competitive position, but in 2008 a stronger dollar did not seem to have the same effect. What had changed?(TCO 7) After joining the European Union in 2004, Latvia established a currency board system that pegged the value of its currency to the euro. This system came under significant pressure when the effects of the financial crisis that began in the United States in 2008 spilled over into the country. Latvia was eventually forced to ask the International Monetary Fund and the European Union for assistance in order to get its financial system and economy back on track. As part of the assistance package, Latvia was required to make significant changes in its economic policy.

Why did the initial effort by Latvia’s government to stabilize the country’s currency fail? Was the government attempting to stop a banking crisis or a foreign debt crisis?(TCO 8) Vellus Products is a small company that produces personal care products for dogs. Vellus Products initially began exporting when a Taiwanese business placed an order for its dog shampoo. Since then, Vellus Products has expanded its export business and today, international sales account for about half its total sales. Vellus Products now sells in 28 countries around the world. 

Can other small companies learn from the experiences of Vellus Products? Reflect on the tips of Vellus Products’ founder Sharon Doherty for beginning the export process.(TCO 8) By 2012, India is expected to export half a million vehicles a year. South Korea’s Hyundai is leading the charge, exporting over one third of its Indian production. Suzuki and Nissan have both entered the Indian market more recently. Both companies see the Indian market as an important component in their future production and marketing strategies. 
Why did Hyundai and other global automakers choose India as a production location? What makes India attractive to auto producers?(TCO 8) Microsoft is meeting the challenges of expanding into the potentially lucrative Indian market, a market where currently most people cannot afford a computer nor the Microsoft programs to run it. Microsoft has changed its highly standardized approach to markets to develop products specifically designed to meet the needs of the Indian market. In addition, the company has established local R & D operations that it hopes will generate new products for the market.
How does Microsoft vary the marketing mix of its existing product offerings to gain traction with Indian customers? What else has Microsoft done to make headway in India?
more...
No comment yet.
Scooped by Jeremy
Scoop.it!

DeVryGenius.com - CIS115 Final Exam 3

http://www.devrygenius.com/product/cis115-final-exam-3

 

1. (TCO 1) When creating an IPO Model, program designers generally determine _____ last. (Points : 4)2. (TCO 1) What is a data item with a name and a value that remain the same during the execution of a program? (Points : 4)3. (TCO 1) What symbol in a flowchart would be used by a developer to represent the beginning or ending point? (Points : 4)4. (TCO 1) Set is a process. What data type would you expect the variable, name, to have? (Points : 4)5. (TCO 1) You are designing an algorithm that will use a date of 01202009. What data type would you choose for this date variable? (Points : 4)6. (TCO 2) What is a tool that developers use to design logic using English-like statements? (Points : 4)7. (TCO 2) When a program evaluates mathematical expression, which of the following operators (or mathematical operations) has the lowest precedence? (Points : 4)8. (TCO 2) Which one of the following is not a valid assignment statement in a program? (Points : 4)9. (TCO 2) Evaluate (2 * 3) ^ 3. (Points : 4)10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and determine 50% of a cost?
Prompt “Enter total cost: “
Input cost
Set _____Display “50% of the cost is: “ + total (Points : 4)11. (TCO 3 & 4) Review the pseudocode below. What will be displayed when this algorithm executes?
Set 
If ((x > 10) AND (x < 20))="">
Display “the IF path executes”
Else
Display “the ELSE path executes”EndIf (Points : 4)12. (TCO 3 & 4) What value gets displayed for the variable X?
Set 
Set 
Set 
If (B > 15) OR () OR (C <= 15)="">
Set 
Else
Set 
EndIfDisplay X (Points : 4)13. (TCO 3 & 4) In the following pseudocode, what percentage raise will an employee in Department 5 receive?
If department < 3="">
Set 
Else
If department < 5="">
Set 
Else
Set 
EndIfEndIf (Points : 4)14. (TCO 3 & 4) Which of the selection structures determines whether the user enters a number between 20 and 45? (Points : 4)15. (TCO 3 & 4) What value gets displayed for the variable Z?
Set 
Set 
Set 
If ((balance <> 800) AND (stateCode <> 6) AND (creditCode <> 7) then
Set 
Else
Set 
EndIfDisplay Z (Points : 4)1. (TCO 5) The variable used to create an expression controlling the loop is known as the _____. (Points : 4)2. (TCO 5) Which of the following statements is false? (Points : 4)3. (TCO 5) Which loop may not execute the body of the loop at all? (Points : 4)4. (TCO 5) Repetition that loops a certain number of times is typically referred to as _____. (Points : 4)5. (TCO 5) How many times will the following loop be executed?6. (TCO 7) Subscripts or indexes of any array are always declared with what data type? (Points : 4)7. (TCO 7) What is an array element? (Points : 4)8. (TCO 7) What is the value of the index used to access the last element in a zero-based array declared as num(12)? (Points : 4)9. (TCO 7) When processing/manipulating the elements of an array, what control structure is used to move through each element within the array? (Points : 4)10. (TCO 7) A zero-based array named sales has been declared and loaded with the values 100, 1100, 3400, 5550, 3000, 22300, and 1200. What value will be stored in the array elementsales(1)? (Points : 4)11. (TCO 6) A record contains _____. (Points : 4)12. (TCO 6) What are the three modes of operation on a file? (Points : 4)13. (TCO 8) Algorithms that allow users to direct the flow of control are often referred to as _____. (Points : 4)14. (TCO 9) What type of error occurs when an array subscript’s value goes beyond the total number of elements in the array? (Points : 4)15. (TCO 2) Which of the following is not an advantage of modular design? (Points : 4)1. (TCO 10) A retail store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $100, the discount is 10%. When the purchases are $100 or less, the discount is 5%. (Points : 10)2. (TCO 10) A small business in your neighborhood would like an application developed that determines the average dollar amount spent for every three purchases. The user will enter three different purchase amounts. You need to display the average to your client. Complete the pseudocode to design your logic. (Points : 10)3. (TCO 9 & 10) There is a logic error in the following pseudocode. What statement(s) would you need to add to correct the logic? Be sure to explain why you are adding the statements.
Set 
DOWHILE num <=>
Set + num
ENDODisplay total (Points : 10)4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The design is determining the correct sales tax depending on the county identifying code. Counties with a number less than 7 have a 5% sales tax. The 8–24 codes have a sales tax of 7%. Codes above 24 have a sales tax of 9%. The code is entered by the user.
Begin
Declare Real salesTax
Declare _____ countyCode
_____ “Enter the county code: “
_____ countyCode
If _____ <= 7="">
Set 
Else
If _____ AND _____ then
Set 
Else
_____
EndIf
_____
Display “the sales tax is: “ + _____
End (Points : 10)5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The design is to display a 60-second counter. The counter needs to begin at 1.
Begin
Declare _____ count
Set 
REPEAT
Display “counter: “ + _____
Set count = _____ + 1
UNTIL count _____
Display “Done!”
End (Points : 10)6. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The colors red, blue, and yellow are known as primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color. Mixing yellow and blue gets you green. Mixing red and blue gets you purple. The algorithm allows the user to enter two primary colors and then displays the resulting secondary color.
Begin
Declare _____ color1
Declare _____ color2
_____ “Enter first primary color: “
Input _____
Prompt “Enter the second primary color: “ 
Input _____
If (_____) AND (_____) then
Display “secondary color is: purple”
EndIf
If (_____) AND (_____) then
Display “secondary color is: green”
_____ 
End (Points : 10)7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and hierarchy chart and explain whether one is more important to develop than the other. (Points : 10)8. (TCO 1, 2, 3, 4, & 5) Describe two of the three control structures and how relational and logical operators are used. (Points : 10)
more...
No comment yet.