Skip to main content

Posts

Write predicates One converts centigrade temperatures to Fahrenheit, the other checks if a temperature is below freezing.

Write predicates One converts centigrade temperatures to Fahrenheit, the other checks if a temperature is below freezing. Formula for Centigrade (C) temperatures to Fahrenheit (F)  - F = C * 9 / 5 + 32 Rule Centigrade to Fahrenheit (c_to_f)F is C * 9 / 5 + 32 Program- c_to_f(C,F) :-F is C * 9 / 5 + 32. % here freezing point is less than 32 Fahrenheit freezing (F) :-F =< 32.  

Write simple fact for the statement using PROLOG

  Write simple fact for the statement using PROLOG . A Prolog program consists of a number of clauses. Each clause is either a  fact  or a  rule . After a Prolog program is loaded (or  consulted ) in a Prolog interpreter, users can submit  goals or queries , and the Prolog intepreter will give results (answers) according to the facts and rules. Facts   A  fact  must start with a predicate (which is an atom) and end with a fullstop. The predicate may be followed by one or more arguments which are enclosed by parentheses. The arguments can be atoms (in this case, these atoms are treated as constants), numbers, variables or lists. Arguments are separated by commas. If we consider the arguments in a fact to be objects, then the  predicate  of the fact describes a property of the objects. In a Prolog program, a presence of a fact indicates a statement that is true. An absence of a fact indicates a statement that is not true. Se...

Career guidance

 Top 10 Sites for your career 1. Linkedin 2. Indeed 3. Naukri 4. Instahyre 5. Monster 6. Careercloud 7. Dice 8. CareerBuilder 9. Jibberjobber 10. Glassdoor 10 Tech Skills in demand 1. Machine Learning 2. Mobile Development 3. SEO/SEM Marketing 4. Data Visualization 5. Data Engineering 6. UI/UX Design 7. Cyber-security 8. Cloud Computing/AWS 9. Blockchain 10. IOT 10 Sites for Free Online Education 1. Coursera 2. edX 3. Khan Academy 4. Udemy 5. FreeCodeCamp 6. MIT OpenCourseWare 7. Stanford Online 8. Codecademy 9. ict iitr 10. NPTEL 10 Sites to learn Excel for free 1. Microsoft Excel Help Center 2. Excel Exposure 3. Chandoo 4. Excel Central 5. Contextures 6. Excel Hero b. 7. Mr. Excel 8. Improve Your Excel 9. Excel Easy 10. Excel Jet 10 Sites to review your resume for free 1. Zety Resume Builder 2. Resumonk 3. Resume dot com 4. VisualCV 5. Cvmaker 6. ResumUP 7. Resume Genius 8. Resumebuilder 9. Resume Baking 10. Enhancy 10 Sites for Interview Preparation 1. Ambitionbox 2. AceThelnter...

Pattern

 Pascal Triangle- # include < bits / stdc ++. h > using   namespace   std ; int   main () {        ios_base :: sync_with_stdio ( false );      cin . tie ( NULL );      int   n ;      cin >> n ;      vector < int > cur ( n + 1 ), prev ( n + 1 );      for ( int   i = 1 ; i <= n ; i ++)     {         prev [ 0 ]= 1 ;        for ( int   j = 1 ; j <= i ; j ++)       {          if ( j == 1 || j == i )            cur [ j ]= prev [ j - 1 ];          else            cur [ j ]= prev [ j ]+ prev [ j - 1 ];    ...

Web Technology Important Questions

 1.Define web technology. Explain the various protocols that  govern the web. Web technologies  are the various tools and techniques that are utilised in the process of communication between different types of devices over the  internet . File retrieval protocols This type of service was one of the earliest ways of retrieving information from computers connected to the Internet. You could view the names of the files stored on the serving computer, but you didn't have any type of graphics and sometimes no description of a file's content. You would need to have advanced knowledge of which files contained the information you sought. FTP (File Transfer Protocol) This was one of the first Internet services developed and it allows users to move files from one computer to another. Using the FTP program, a user can logon to a remote computer, browse through its files, and either download or upload files (if the remote computer allows). These can be any type of file, but the ...