
Related Questions 
View Answer 

Design a program that will calculate the service charge a customer owes for writing a bad check. The program accepts a customer?s name, the date the check was written (year, month, and day), the current date (year, month, and day), and the amount of check in dollars and cents. The service charge is $20 plus 2 percent of the amount of check, plus $5 for every month that has passed since the check was written. 
View Answer 

using Polya's step solve the following problem: Problem Crossing a road Consider that three adults and three children want to cross a road at a zebra crossing, to get to school a little further down the road. However, to conform to the rules of the school, it is necessary that no child is unaccompanied by an adult. Furthermore, everybody crossing has to carry a colored flag. Unfortunately most of the flags have been lost, there are only two left. Anybody can carry up to two flags. It is too risky to throw flags across so somebody needs to transport them. Children take 30 seconds to cross, adults take 20 seconds to cross, but if an adult is travelling with a child they travel at the speed of the child. You need to get all the people across. 1. Clearly state the notation you intend to use. 2. What is the initial state? 3. What is the final state? 4. What are the allowable intermediate states? 5. What are the possible first moves? You need to explicitly rule out each disallowed ones. 6. Construct a solution to transport everybody across. How long will it take? Now generalize the situation to n Adults and m Children. 1. Under what conditions can all the people are transported across. 2. Write pseudocode to represent an algorithm for transporting all the people. 3. How long will it take for everybody to cross using the solution you have given? 
View Answer 

Laser light and light sensor meter are fixed between ceiling fan blades such that when fan rotates, light sensor reading are turned on and off. There are three blades in the fan and it cannot rotate faster than 180 rpm. Write a program or algorithm that continuously displays/outputs fans speed in rpm. Assume you have access to system API int ReadLightSensor() which returns 1 when there is light and 0 where light is broken.

View Answer 

If you are given task to build search engine, how will you arrange items and what kind of algorithm will you use to get the quickest search result? 
View Answer 

what is openGL 
View Answer 

what is callsystem 
View Answer 

Which of recent books on testing is rated highly? 
View Answer 

Please Give the example of bruteforce algorithm? 
View Answer 

State the problems which differentiate between recursive procedure and nonrecursive procedure? 
View Answer 

Explain the depth of recursion? 
View Answer 

Explain about procedural body and computation boxes? 
View Answer 

How can an inductive definition be realized? 
View Answer 

State recursion and its different types? 
View Answer 

Define and describe an iterative process with general steps of flow chart? 
View Answer 

Given a system of N equations whose coefficient matrix A is triangular and is stored in a vector R and the right hand side vector B, this algorithm obtains the solution vector X. Sum is a temporary variable. I am M are integer variables. How to follow the algorithm? 
View Answer 

In Algorithmic context how would you define ?book keeping operations?? 
View Answer 

Explain the function SUB in algorithmic notation? 
View Answer 

What are the arguments present in pattern matching algorithms? 
View Answer 

Define string in an algorithmic notation and an example to support it? 
View Answer 

What are the two ways through which the Markov algorithm terminates? 
View Answer 