Programming does not always happen smoothly, sometimes a lot of patience, devotion and perseverance are required to solve programming problems and stumbling blocks on your way of creating a new programming solution.While developing an application you might come across a number of programming questions the answers to which are not easy to be found. To spare yourself the trouble, submit your programming questions here and you will get programming answers within the shortest time period.

Ask Your question

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a function okay(p:str)->bool:

The p string must

1) contains at least one of lowercase(a-z )

2) minimum length=5

3) No character or digit can appear twice consecutively 

For example: 

okay('bVc3i') should return True

okay('Ad89vv') should return False 


Draw an ERD based upon the following Scenario. Also mention the attributes name and relationship between the entities.

I am the manager of a training company that provides instructor-led courses in management techniques. We teach courses, each of which has a code, a name, and a fee. Introduction to UNIX and C Programming are two of our more popular courses.
Courses vary in length from one to four days. Paul Rogers and Maria Gonzales are two of our best teachers. We need each instructor’s name and phone number. The students can take several
courses over time, and many do this. Jamie Brown from AT&T took every course we offer!
We like to have each student’s name and phone number.
write a function savenum(a:List[str])->Dict{str,int):
There will be some signs after string(++ means +1)( -- means -1)( -> means transfer to).
All values of the string at first = 0, we have to calculate the value of each string till the end, and return in Dictionary {name of string,value at the end}
For example : a=['Kim++', 'Jane--' , 'Mint--', 'Jane->Mint'] return {'Kim': 1, 'Mint: -2}
Explain example: Kim=1 Jane= -1 Mint= -1, and then -1 from Jane transfer to Mint( -1+(-1)= -2) Jane =0 so it doesn't return in Dict
Write a function good_string(p:str)->bool:
The p string must 1. contains one of lowercase(a-z) and one of uppercase(a-z)
2. contains one of digit(0-9) 4. min length=5 and max length=11 5. No character or digit can appear twice consecutively
For example:
good_string('bVc3@') should return True
good_string('Ad##9vv') should return False (# and v appear twice consecutively)
good_string('9$dkiOj@#45E') should return False (exceed max length)
Write a function good_string(p:str)->bool:
The p string must 1. contains one of lowercase(a-z) 2. contains one of uppercase(a-z)
3. contains one of digit(0-9) 4. min length=5 and max length=11 5) No character or digit can appear twice consecutively
For example:
good_string('bVc3@') should return True
good_string('Ad##9vv') should return False (# and v appear twice consecutively)
good_string('9$dkiOj@#45E') should return False (exceed max length)
How many times will this loop print 'Hello World'?

n = 10;

while n > 0

disp('Hello World')

n = n - 1;

end

Prolog Questions

1: write prolog program to search book by book_title ,by book_author, by book_edition Using

recursion.

Hint: your input must be from above mentions, your rule must recursively find the book and

display the complete book information as provided in facts.

Facts: book(b_name,b_authmb_edition)

search_book() :-

write(\"Enter book author name : \"),

readln(BOOK_AUTH),

data(name(Z),company(BOOK_AUTH)),

nl, write(Z),

fail.


Give an example of a class and an example of an object. Describe what a class is, what an object is, and how they are related. Use your examples to illustrate the descriptions


If the customer has his/her personal bag which is not allowed
in the supermarket, his/her personal bag is kept at the
entrance of the supermarket and the system allocates him/her
an empty compartment number. This is the compartment
where the customer’s personal bag will be kept then he/she
proceeds to do his/her shopping.
Write a program that prompts the user to enter a weight in pounds and height in inches and
display the Body Mass Index. Note that one pound is 0.45359237 kilograms and one inch is 0.0254 meters.
Where:
BMI Interpretation
below 16 seriously underweight
16–18 underweight
18–24 normal weight
24–29 overweight
29–35 seriously overweight
above 35 gravely overweight
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS