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

Questions Cloud

Explain wal-mart''s use of horizontal integration : Explain Wal-Mart's use of horizontal integration as they have grown both domestically and internationally
Explain in words why your answer makes sense : Calculate the percentage change in nominal GDP, real GDP and the GDP deflator in 2009 and 2010 from the preceding year. For each year, identify the variable that does not change. Explain in words why your answer makes sense.
Depot justify budgeting so much money for philanthropy : how can Home Depot justify budgeting so much money for philanthropy? What areas other than the environment, disaster relief, affordable housing, and at-risk youth might be appropriate for strategic philanthropy by Home Depot?
Superior asset allocation ability : A mutual fund with a beta of 1.1 has outperformed the S&P500 over the last twenty years. Does the mutual fund manager; have had superior stock selection ability.
Prolog program to reads employee-s number : Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.
Compute the corresponding compensating : Compute the corresponding Compensating and Equivalent Variation. Illustrate your answers graphically. Compute the compensating demands for goods X and Y. Illustrate your answers graphically.
Find the speed with which a wave travels on this string : A 710 kg car stopped at an intersection is rear-ended by a 1800 kgtruck moving with a speed of 16 m/s. If the car was in neutral andits brakes were off, so that the collision is estimated elasticfind the final speed of the truck. Find the final sp..
Lifespan development research methods : How can I compare and contrast the strengths and weaknesses of two lifespan development research methods?
Research on financial services industries : Make research on financial services industries. Identify the prevalent employee benefit practices for that industry. Explain the discretionary benefits that are offered in your chosen industry.

Reviews

Write a Review

Programming Languages Questions & Answers

  Applications in involve computing various powers of e

The transcendental number, e. Many applications in mathematics involve computing various powers of e. It can be proven that ex = 1 + x/1 + x2/2! + x3/3! + ... for all values of x. Of course, this is an infinite sum.

  Implementing class called card for standard playing card

Design and implement a aclass called Card that represents a standard playing card. each card has a suit and a face value.

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

  Creating class savingsaccount using static variable

Create class SavingsAccount. Use static variable annualInterestRate to store annual interest rate for all account holders.

  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.

  Designing class to denote person-s height

Design a class, PersonHeight, to denote the person's height. Our class will include the following members.

  Creating code for method tostring

Fill in the code for method toString, which must return a string containing the name, account number, and balance for the account.

  Produce a project plan

Produce a project plan and an interim description of the project development

  Program to compute person earns in a month

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day, four pennies the third day.

  Complete a request for system services

Objectives Complete a Request for System Services form, which triggers the preliminary investigation phase. Analyze a user interview and extract pertinent facts, which can be used to assess project feasibility. Complete a Problem Stateme..

  Program to compute pearson correlation coefficient

Write down a program to compute Pearson correlation coefficient by using parallel loop templates from Intel Threading Building Blocks library (TBB).

  Create math sorting game using visual basic studio

using visual basic studio 2010, Create math sorting game. Random number between 1 and 99 will be generated and displayed to the user.

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