Other Programming & Computer Science Answers

Questions: 537

Answers by our Experts: 537

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

A transaction record on a sales commission file contains the retail price of an item sold, a transaction code that indicates the sales commission category to which an item can belong, and the employee number of the person who sold the item. The transaction code can contain the values A, B or C, which indicate that the percentage commission will be 6%, 8% or 10% respectively. Construct an algorithm that will read a record on the file, calculate the commission owing for that record, and print the retail price, commission and employee number.
Design an algorithm to accept income from the user; compute the income tax to be
paid and display on the screen. Income tax is based on the following table available
at this link: http://iras.gov.sg/irasHome/page04.aspx?id=1190 (Note: Choose
Resident Individuals) ->( include desk check, input data, expected result and desk checking table)
Design an algorithm that will prompt for and receive the time expressed in 2400 format (e.g. 2305 hours), convert it to 12 hour format (eg 11.05 p.m.) and display the new time to the screen. Your program is to repeat the processing until a sentinel time of 9999 is entered. (include Input data:
Expected results: Desk check table:)
Write a program by A program language (Any Language) to calculate Simple Interrest (SI) Maturity Value (MV):

Formula1: Simple Interest (I) = Principal (P) x Rate (R) x Time (T)

Formula 2: Maturity Value (MV) = Principal (P) + Interest (I).
Write a program by A program language (Any Language) to calculate Effective Period Rate (EPR) and (ER) Effective Rate:
What is the effective annual interest rate for nominal annual interest rate of 5% compounded monthly?

Solution:

Effective Rate = (1 + 5% / 12)12 - 1

= (1 + 0.05 / 12)12 - 1

= 0.05116 = 5.116%
A group of k villagers must cross, the Sarawak river, which is a wide and deep river. There is no bridge in sight. They notice two 10-year-old boys playing in a rowboat at the shore. The boat is so tiny and it can hold only two boys or one villager. How can the villagers can get across the river and leave the boys in joint possession of the boat? How many times the boat pass from shore to shore? [Hint: Solve the problem by starting with k = 1]
As part of her business activities, Sharon has created a large number of files and folders. Whenever she needs to view the details of the files stored in a folder, Sharon browses to the folder using Windows Explorer. However, she finds it cumbersome to browse to each individual folder to view the desired details. Therefore, she asks Hayley to modify the application to accept the name of a folder and display the following details of the files located in the folder: File name File size File creation date
Write the code that Hayley should write to create the desired file information viewer application.
The operations-related data of FlyHigh Airlines is stored in a central database. The software
fails to respond to user inputs, if there is a connectivity problem with the database. Add the code
snippet that the development team should use to ensure that the application shows a userfriendly
message,
Evaluate the expression: a=(b +c)* d – e in 3 and 0-Address Machines.
Question # 773

A Book is Good if it satisfies the following conditions:

It has more than 100 pages and Its title must not end with the character 's'.
If title ends wih the character 'e', then should not start with character 'a'
The publisher of the book must be one of "Niho books", "DreamWorldz", "Pogo Books" and "Diamond Comics"
The number of authors must be greater than 2. But if "CK Bose" is one of the authors, then this conditon is not required.
If "Pran" is one of the authors, the publisher must be "Diamond comics".
There should be atleast 10 pages per rupee cost of the book.

Write a method:

boolean isGoodBook(String title, String publisher, int numPages, float price, String[] authors)

title The title of the book
publisher Name of the publisher of the book.
numPages Number of pages in the book.
price Price of the book in rupees.
authors A string array containing the list of authors.
LATEST TUTORIALS
APPROVED BY CLIENTS