[Show all top banners]

Echoes
Replies to this thread:

More by Echoes
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Computer Problem on Democracy in Nepal--Please solve
[VIEWED 2692 TIMES]
SAVE! for ease of future access.
Posted on 02-04-05 7:32 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

For some techies, excessive politics can be boring.

Here, I will try to put some of these things into a software engineer's perspective:

In the following program, the control never reaches line 16 (i.e. NepaliDemocracy is never run).

The goal of this exercise is to identify the problems that are causing this to happen.

There are two different ways to solve the problem and get the instance of NepaliDemocray to run:
A. We can either fix NepaliDemocracy, OR
B. We can fix Monarch

If we fix NepaliDemocracy, it wont matter whether we fix Monarch or not. The control WILL reach line 16.
If we fix Monarch, it won't matter whether we fix NepaliDemocracy or not. The control WILL reach line 16.

Answer the following:

1. What is the desired fix in NepaliDemocracy? (You may only change--not remove!--a statement. Hint: Very simple fix)
2. What is the desired fix in Monarch? (May require changes in more than one statement. Hint: Look at the recursive function)
3. Do you prefer fix A or B or both or none?

A relatively satisfactory explanation is required on all answers.

Non-programmers are also encouraged to participate. You may even be able to guess the answers without studying the program in depth!

(PS: This is my way of dissent, now that explict protests maybe persecuted)



 
Posted on 02-04-05 7:48 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Dude I think the democrasy wont run as long as IS_MONARCH_ABOVE_LAW =true
this is just wha t i think hai
 
Posted on 02-04-05 7:52 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Kalo akshar Bhaisi Barabar...maile ta kehi bujhya bha po??? Hetteri, computer ko bhasa ..kasto jatil
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 365 days
Recommended Popular Threads Controvertial Threads
Lets play Antakshari...........
डीभी परेन भने खुसि हुनु होस् ! अमेरिकामाधेरै का श्रीमती अर्कैसँग पोइला गएका छन् !
शीर्षक जे पनि हुन सक्छ।
What are your first memories of when Nepal Television Began?
[New post] Why Would Krishna Have To Run From The Battlefield
Sajha Poll: नेपालका सबैभन्दा आकर्षक महिला को हुन्?
ChatSansar.com Naya Nepal Chat
is Rato Bangala school cheating?
Why always Miss Nepal winner is Newari??
NRN card pros and cons?
Basnet or Basnyat ??
पुलिसनी संग - आज शनिवार - अन्तिम भाग
निगुरो थाहा छ ??
Nas and The Bokas: Coming to a Night Club near you
श्राद्द
TPS Re-registration
सेक्सी कविता - पार्ट २
What Happened to Dual Citizenship Bill
पाप न साप घोप्टो पारि थाप !!
अमेरिकामा छोरा हराएको सूचना
Nas and The Bokas: Coming to a Night Club near you
राजदरबार हत्या काण्ड बारे....
Mr. Dipak Gyawali-ji Talk is Cheap. US sends $ 200 million to Nepal every year.
Harvard Nepali Students Association Blame Israel for hamas terrorist attacks
TPS Update : Jajarkot earthquake
is Rato Bangala school cheating?
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters