Prolog program to reads employee-s number

Assignment Help Programming Languages
Reference no: EM1351764

Q1) Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay. The program is to calculate the weekly pay and print the result in a table with the following format.

Employee# Hours Rate Weekly pay
1234 40 15 600
3479 42 25 1050

Reference no: EM1351764


Write a Review


Programming Languages Questions & Answers

  Hierarchy of processes

Write a program that creates a hierarchy of processes using the fork() system call.

  Two-level memory cache hierarchy

Explain how you would pipeline the four following pairs of statements.

  Program for class quiz to implement measurable interface

State a class Quiz to implement Measurable interface. A quiz has a score and a letter grade (such as B+).

  Ruby program that continuously reads in number

Write down Ruby program that continuously reads in number, x, from screen, and then calculates and displays its: factorial, if x is less than 15.

  Program-customer-s names phone numbers in alphabetical order

Load file into parallel arrays and display list of customers' names and phone numbers in alphabetical order.

  Program to multiply two integers

What occurs when you multiply two integers whose product is larger than largest int value? Try out example and report your findings.

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Program to prompts user for integer and print prime number

Give a program which will compile in VS 2010. Write a program to prompts user for integer and then prints out all prime numbers up to that integer.

  Create a multi-threaded competition

Create a multi-threaded competition

  Pseudocode for linear search by using clrs3e style

Write pseudocode for linear search by using CLRS3e style used in, which scans through the sequence, looking for v.

  Program using ten radio buttons to show five states

It is program using 10 Radio Buttons to show 5 States and 5 Capitals to user's interface. Also, there is text box to print "Correct" and "Incorrect" when Sate and the Capital is a correct match.

  Explain about lexical analyzer

Explain about Lexical Analyzer

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd