Sunday, June 20, 2010

CS507 Solved Quiz

Question # 1 of 10 ( Start time: 01:10:31 PM )  Total Marks: 1
Which of the following may lead management and customers to believe that the final product is almost ready for delivery? 
Select correct option:  
1.       Mockups
2.       Efficient models
3.       Malfunctioning prototypes
4.       Working prototypes            Page No. 101

Question # 2 of 10 ( Start time: 01:10:31 PM )  Total Marks: 1 
Which of the following phase involves converting design specifications into executable programs? 
Select correct option:  

1.       Prototyping
2.       Configuration
3.       Development    Page No. 92
4.       Testing
 Question # 3 of 10 ( Start time: 01:11:54 PM )  Total Marks: 1 
Which of the following model can lead to scope creep due to user feedback after each phase? 
Select correct option: 

1.       Iterative               Page No. 96
2.       XP
3.       Rapid prototyping
4.       Waterfall
Question # 4 of 10 ( Start time: 01:12:20 PM )  Total Marks: 1 
A problem solving technique that decomposes a system into its component pieces for the purpose of studying, how well those component parts work and interact to accomplish their purpose can be one of the definitions of System development. 
Select correct option:  
1.       True          Page No. 102
2.       False
Question # 5 of 10 ( Start time: 01:13:05 PM )  Total Marks: 1 
Which of the following model places emphasis on documentation? 
Select correct option:  

1.       Waterfall            Page No. 93
2.       Spiral
3.       Incremental
4.       Rapid prototyping
 Question # 6 of 10 ( Start time: 01:13:27 PM )  Total Marks: 1 
Which of the following provides a structured means of addressing the impact of technologies on an organization? 
Select correct option:  
1.       Business planning
2.       IT planning    Page No. 67
3.       Requirements planning
4.       Configuration planning
Question # 7 of 10 ( Start time: 01:14:01 PM )  Total Marks: 1 
Which of the following enunciate business goals and the actions that need to be initiated to achieve those goals including related benefits, resources and timeframes? 
Select correct option:  
1.       Organizing
2.       Monitoring
3.       Plans                 Page No. 67
4.       Implementation
Question # 8 of 10 ( Start time: 01:14:48 PM )  Total Marks: 1 
In which of the following model, working functionality is produced earlier. 
Select correct option:  
1.       Waterfall
2.       Iterative
3.       Incremental   Page No. 95
4.       Spiral 
Question # 9 of 10 ( Start time: 01:16:20 PM )  Total Marks: 1 
Which of the following model is preferred for its simplicity and more disciplined approach? 
Select correct option:  
1.       Incremental
2.       Waterfall    Page No. 93
3.       Spiral
4.       Iterative 
Question # 10 of 10 ( Start time: 01:17:24 PM )  Total Marks: 1 
Apart from the value to cost ratio, modules are also selected on the basis of ___________requirements and needs. 
Select correct option:  
1.       programmer
2.       designer
3.       customer           Page No. 95
4.       system analyst


Question # 1 of 10 ( Start time: 01:45:02 PM )  Total Marks: 1 
Which of the following involves converting the informational, functional and network requirements idenfiied during the initiation and planning phases into unified design specifications? 
Select correct option:  
1.       SRS
2.       System design     Page No. 86
3.       Database design
4.       Prototyping

Question # 2 of 10 ( Start time: 01:45:58 PM )  Total Marks: 1 
Which of the following defines the operations of the system in layman’s terms? 
Select correct option:  
1.       User manual      Page No. 92
2.       Technical manual
3.       Procedural manual
4.       Testing manual

Question # 3 of 10 ( Start time: 01:46:29 PM )  Total Marks: 1 
In ____________ model, software is constructed step by step in the same way a building is constructed. 
Select correct option: 

1.       Spiral
2.       Incremental         Page No. 79
3.       Extreme programming
4.       Waterfall

Question # 4 of 10 ( Start time: 01:46:54 PM )  Total Marks: 1 
Trying to fit people and organizations into information systems has been major reason for ____________. 
Select correct option:  
1.       success
2.       efficiency
3.       increased productivity
4.       failure         Page No. 86

Question # 5 of 10 ( Start time: 01:47:19 PM )  Total Marks: 1 
Prototypes are used in: 
Select correct option:  
1.       Iterative models    Page No. 79
2.       Incremental models
3.       Waterfall models
4.       Extreme programming

Question # 6 of 10 ( Start time: 01:48:14 PM )  Total Marks: 1 
_________ provide a direction and framework for action while __________ planning is an accepted responsibility of management. 
Select correct option:  
1.       Businesses, plan  
2.       Plans, quality
3.       Configuration, system
4.       Plans, business                 Page No. 77
 Question # 7 of 10 ( Start time: 01:49:30 PM )  Total Marks: 1 
Which of the following model is the earliest one? 
Select correct option:  
1.       Waterfall         Page No. 84
2.       Rapid prototyping
3.       Extreme programming
4.       Spiral

Question # 8 of 10 ( Start time: 01:50:58 PM )  Total Marks: 1 
Data updates in master file will automatically update the data in the whole system, refers to data ______________. 
Select correct option:  
1.       analysis
2.       accessibility
3.       integrity
4.       consistency   Page No. 102

Question # 9 of 10 ( Start time: 01:51:45 PM )  Total Marks: 1 
In which of the following models, the development approach is based on producing deliverables frequently/ repetitively. 
Select correct option:  
1.       Incremental
2.       Waterfall
3.       Iterative    Page No. 86
4.       XP
Question # 10 of 10 ( Start time: 01:52:22 PM )  Total Marks: 1 
Which of the following may lead management and customers to believe that the final product is almost ready for delivery? 
Select correct option:  
1.       Mockups
2.       Efficient models
3.       Malfunctioning prototypes
4.       Working prototypes  Page No. 101


CS507 Solved Quiz

Question # 1 of 10 ( Start time: 01:10:31 PM )  Total Marks: 1
Which of the following may lead management and customers to believe that the final product is almost ready for delivery? 
Select correct option:  
1.       Mockups
2.       Efficient models
3.       Malfunctioning prototypes
4.       Working prototypes            Page No. 101

Question # 2 of 10 ( Start time: 01:10:31 PM )  Total Marks: 1 
Which of the following phase involves converting design specifications into executable programs? 
Select correct option:  

1.       Prototyping
2.       Configuration
3.       Development    Page No. 92
4.       Testing
 Question # 3 of 10 ( Start time: 01:11:54 PM )  Total Marks: 1 
Which of the following model can lead to scope creep due to user feedback after each phase? 
Select correct option: 

1.       Iterative               Page No. 96
2.       XP
3.       Rapid prototyping
4.       Waterfall
Question # 4 of 10 ( Start time: 01:12:20 PM )  Total Marks: 1 
A problem solving technique that decomposes a system into its component pieces for the purpose of studying, how well those component parts work and interact to accomplish their purpose can be one of the definitions of System development. 
Select correct option:  
1.       True          Page No. 102
2.       False
Question # 5 of 10 ( Start time: 01:13:05 PM )  Total Marks: 1 
Which of the following model places emphasis on documentation? 
Select correct option:  

1.       Waterfall            Page No. 93
2.       Spiral
3.       Incremental
4.       Rapid prototyping
 Question # 6 of 10 ( Start time: 01:13:27 PM )  Total Marks: 1 
Which of the following provides a structured means of addressing the impact of technologies on an organization? 
Select correct option:  
1.       Business planning
2.       IT planning    Page No. 67
3.       Requirements planning
4.       Configuration planning
Question # 7 of 10 ( Start time: 01:14:01 PM )  Total Marks: 1 
Which of the following enunciate business goals and the actions that need to be initiated to achieve those goals including related benefits, resources and timeframes? 
Select correct option:  
1.       Organizing
2.       Monitoring
3.       Plans                 Page No. 67
4.       Implementation
Question # 8 of 10 ( Start time: 01:14:48 PM )  Total Marks: 1 
In which of the following model, working functionality is produced earlier. 
Select correct option:  
1.       Waterfall
2.       Iterative
3.       Incremental   Page No. 95
4.       Spiral 
Question # 9 of 10 ( Start time: 01:16:20 PM )  Total Marks: 1 
Which of the following model is preferred for its simplicity and more disciplined approach? 
Select correct option:  
1.       Incremental
2.       Waterfall    Page No. 93
3.       Spiral
4.       Iterative 
Question # 10 of 10 ( Start time: 01:17:24 PM )  Total Marks: 1 
Apart from the value to cost ratio, modules are also selected on the basis of ___________requirements and needs. 
Select correct option:  
1.       programmer
2.       designer
3.       customer           Page No. 95
4.       system analyst


Question # 1 of 10 ( Start time: 01:45:02 PM )  Total Marks: 1 
Which of the following involves converting the informational, functional and network requirements idenfiied during the initiation and planning phases into unified design specifications? 
Select correct option:  
1.       SRS
2.       System design     Page No. 86
3.       Database design
4.       Prototyping

Question # 2 of 10 ( Start time: 01:45:58 PM )  Total Marks: 1 
Which of the following defines the operations of the system in layman’s terms? 
Select correct option:  
1.       User manual      Page No. 92
2.       Technical manual
3.       Procedural manual
4.       Testing manual

Question # 3 of 10 ( Start time: 01:46:29 PM )  Total Marks: 1 
In ____________ model, software is constructed step by step in the same way a building is constructed. 
Select correct option: 

1.       Spiral
2.       Incremental         Page No. 79
3.       Extreme programming
4.       Waterfall

Question # 4 of 10 ( Start time: 01:46:54 PM )  Total Marks: 1 
Trying to fit people and organizations into information systems has been major reason for ____________. 
Select correct option:  
1.       success
2.       efficiency
3.       increased productivity
4.       failure         Page No. 86

Question # 5 of 10 ( Start time: 01:47:19 PM )  Total Marks: 1 
Prototypes are used in: 
Select correct option:  
1.       Iterative models    Page No. 79
2.       Incremental models
3.       Waterfall models
4.       Extreme programming

Question # 6 of 10 ( Start time: 01:48:14 PM )  Total Marks: 1 
_________ provide a direction and framework for action while __________ planning is an accepted responsibility of management. 
Select correct option:  
1.       Businesses, plan  
2.       Plans, quality
3.       Configuration, system
4.       Plans, business                 Page No. 77
 Question # 7 of 10 ( Start time: 01:49:30 PM )  Total Marks: 1 
Which of the following model is the earliest one? 
Select correct option:  
1.       Waterfall         Page No. 84
2.       Rapid prototyping
3.       Extreme programming
4.       Spiral

Question # 8 of 10 ( Start time: 01:50:58 PM )  Total Marks: 1 
Data updates in master file will automatically update the data in the whole system, refers to data ______________. 
Select correct option:  
1.       analysis
2.       accessibility
3.       integrity
4.       consistency   Page No. 102

Question # 9 of 10 ( Start time: 01:51:45 PM )  Total Marks: 1 
In which of the following models, the development approach is based on producing deliverables frequently/ repetitively. 
Select correct option:  
1.       Incremental
2.       Waterfall
3.       Iterative    Page No. 86
4.       XP
Question # 10 of 10 ( Start time: 01:52:22 PM )  Total Marks: 1 
Which of the following may lead management and customers to believe that the final product is almost ready for delivery? 
Select correct option:  
1.       Mockups
2.       Efficient models
3.       Malfunctioning prototypes
4.       Working prototypes  Page No. 101


Friday, June 18, 2010

cs101 assignment 4 solution



solution:

 

The following can help explain the concept of algorithms in relation to programming.

Problem: Calculate the average of three given numbers.
Let the given numbers be a, b, c
Step 1: Set aside memory for all values (a, b, c,)
Step 2: Assign the values to a memory location (the given numbers)
Step 3: Calculate the average of the values using the formula (a+b+c)/3
Step 4: Display the answer in the proper format, in this case the average.
The problem statement is programmatically solved with the use of four steps in the algorithm.

Problem:Find the gain or loss of an item, as the case may be, and compute the gain or loss percentage, given the cost price and the selling price.

Gain = S.P. (sell price) - C.P (cost price).
Gain % = (Gain * 100)/C.P.
Loss = C.P. - S.P.
Loss % = (Loss * 100)/C.P.
(Percentage gain or loss is calculated on the C.P.)

Algorithm:
Step 1: Obtain the values of S.P. and C.P. Set aside memory for S.P. and C.P., gain percent and loss percent.
Step 2: Assign values to memory location.
Step 3: Perform mathematical computations.
Step 4: Display results in the proper format.

If C.P. = S.P, then
Declare "There is neither gain nor loss in the transaction"
Stop
If S.P. > C.P., then
Calculate Gain = S.P - C.P
Calculate Gain % = (Gain * 100)/C.P
Write "Answer: Gain is $" followed by value of Gain
Write "Answer: Gain % is" followed by value of Gain %
Stop
Else
Calculate Loss = C.P. - S.P
Calculate Loss % = (Loss * 100)/C.P.
Write "Answer: Loss is $" followed by value of Loss
Write "Answer: Loss % is" followed by values of Loss %
Stop


The algorithm is executed in order, starting with Step 1:
In step 1, we set aside memory locations for S.P. and C.P
In step 2, we assign the numerical values of S.P. and C.P. to the memory locations.
In step 3, the answer to the phrase If C.P. - S.P. could be yes or no. If the answer is yes, then only the instructions following the word "then" are executed.
In step 3, if the answer to the phrase S.P. > C.P. is yes, then steps to a to e before else are executed. If the answer to S.P. > C.P. is no, implying that C.P. >= S.P., steps a to e after else are executed.
Step 4 is the last in the process. The result of the computations is displayed and the algorithm is terminated after its execution.

Words such as "IF", "THEN", and "ELSE are used to emphasize their distinctive nature in executing the algorithm.
Flowcharts

When thinking of a Flowchart think of a visual representation of how a process works, depicting the sequence of steps at a minimum. A flowchart offers many advantages including the following.
Helps locate the key elements of a process. It draws clears lines between the end of one process and the start of another.
Brings clarity and improvement to a process.
Helps identify appropriate areas for improvement in a program.

The following shows a format of a sample flowchart that identifies the starting and ending points of a sequential process with decision points.

 

 

Flowcharts depict different types of actions and steps in a process through special shapes. The sequence of steps and the relationships between these steps is shown using arrows. The following is a list of the different shapes in a flow chart and what they represent.

The following shows the flowchart of gain and loss for a business.

 Pseudocode

Pseudocode, aka false code, is an informal language for relating problem solving steps. The steps used in pseudocode are simple and can be implemented with ease into any programming language. Pseudocode uses a combination of English words, mathematical notations, and a set of capitalized keywords such as BEING, END, READ, PRINT, FREAD, FPRINT, IF, ELSE, ELSEIF, ENDIF, WHILE, DO and ENDWHILE.

Pseudocode consists of:
Fundamental control structures such as Sequence, Selection and Repetition.
Three other types of statements, which include Input, Output and Assignment.
Subroutines or small programs that can be added to modularize pseudocode. The subroutines are also written using the pseudocode notation.

Here is an example of pseudocode.

Begin procedure
Input Widget Price
Taxes = 0.06 x Widget Price
Amount Due = Widget Price + Taxes
Output Taxes and Amount Due
End procedure

.....................

CS 101 Introduction to Computing

Assignment # 04

 

Deadline

Your assignment must be uploaded / submitted before or on 23-06-2010.

Upload Instructions

Please view the assignment submission process document provided to you by the Virtual University to upload the assignment.

Rules for Marking

Please note that your assignment will not be graded if:
·         It is submitted after due date
·         The file you uploaded does not open
·         The file you uploaded is copied from some one else
·         It is in some format other than .doc

Objective

The assignment has been designed to enable you:
  • To learn how to write algorithm for Problems.

  • To get knowledge of flowcharting.

  • To enhance the thinking and vision of student for specific problem domains.


Write an algorithm in pseudo code form for the following problem and also draw a Flow chart for the same problem statement (5+5)

There is a multinational company. In the company, there are deductions from the salary of the employee according to following rules:
i)  If salary is less than 10,000 then no tax deduction and 4% of salary will be deducted as Well-fare fund every month.
ii) If salary is more than 10,000 and less than 20,000 then 3% of salary as tax deduction and 6% of remaining salary as employee well-fare fund will be deducted every month.

iii) If salary is equal to or more than 20,000 then  5 % of the salary as tax deduction and 8% of remaining salary as employee well-fare fund  will be deducted every month .

Take salary input from user and after appropriate deduction show the net payable amount for month.
Using Loop structure calculate the total salary; paid tax and well fare fund of that particular employee for two years and display these values at end.