Basic algorithm and pseudocode help

Assignment Help Data Structure & Algorithms
Reference no: EM13779094

1. An area is calculated by multiplying the length by the width. The pseudocode program below should ask the user for the length and width of a rectangular room in order to calculate the area, and display the room's area. Will it do the job?
area = width * length

Display "What is the room's width?"
Display "What is the room's length?"

2. Write a pseudocode algorithm for the program Credit Available: calculates a customer's credit
available  should ask the user for the customer's maximum credit amount; the credit used by the
customer calculate and display the customer's available credit using the data inputted.

3. Write a pseudocode algorithm for the program Account Balance: calculates the current balance in a bank account
 ask the user for the starting balance, total amount of debits, credits and the monthly interest rate

 calculate the current balance with the inputs 

display the information on the screen

4. Write a pseudocode algorithm for the program HST:

calculates the total of a retail sale  ask the user for the retail price of the purchased item

calculate and display the HST (13%) for the purchase and the total of the sale

5. Write a Java program that converts mile to Kilometers. (One mile equals 1.60935 kms) Read the miles value from the user as a floating point value.

6. Write a Java program that determines the value of the coins in a jar and prints the total in dollars and cents. Read integer values that represent the number of quarters, dimes, nickels, and pennies.

7. Write a program that reads the radius of a sphere and prints its volume and surface area using the following formula. Print the output to four decimal places. r represents the radius:

Reference no: EM13779094

Questions Cloud

Compare the amplitude of the two sinewaves : Store the 600 sample values of x[n] in file filex and store the 600 sample values of y[n] in file filey. Graph x[n] and y[n] on the same graph using Excel. Compare the amplitude of the two sinewaves x [n] and y[n].
Write a term paper about early adulthood : Write a term paper about Early Adulthood. Students are expected to identify the perspective of the contemporary theory and describe current research and application to the field of lifespan development.
Diversity-related situation or cultural dilemma : Provide an analysis of the topic, including historical perspective and current day situation. Explain why this is a topic of interest.
Do you believe the employer''s actions were legal : Conduct research to provide examples to support your position and use your own personal employment experiences when possible. Have you observed situations where an employee was fired? Did the employer give a reason? Do you believe the employer's a..
Basic algorithm and pseudocode help : An area is calculated by multiplying the length by the width. The pseudocode program below should ask the user for the length and width of a rectangular room in order to calculate the area, and display the room's area.
Explain what sarbanes oxley means to you : Read the article Governance in the Spotlight: What Sarbanes Oxley means to You. In this article the author outlines provisions companies are now required to implement
Ineffective for combating terrorism & illegal : Under John Stuart Mill's "harm principle," government may regulate private activities?
Assessment from chemical dependency : Select an assessment from Chemical Dependency: A Systems Approach with faculty approval and administer the instrument to someone you know who drinks, uses drugs, or both.
Explain the responsibilities and ethical concerns : When U.S. companies do business in other countries, what issues do they face? Describe the responsibilities and ethical concerns that you feel are important for U.S. companies to consider when doing business in other countries

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Draw a hierarchy chart and then plan the logic for a program

Draw a hierarchy chart and then plan the logic for a program for the sales manager of The Couch Potato Furniture Company. The manager needs a program to determine the profit on any item sold. Input includes the wholesale price and retail price for..

  Postorder traversal print a heap in sorted order?

Will preorder, inorder, or postorder traversal print a heap in sorted order? why or why not? use the following numbers to prove your point 85 86 88 89 90 91 92

  Encryption feistel cipher and decryption algorithm

If this is psudocode for encryption feistel cipher determine decryption algorithm?Output: ciphertext = (left[16], right[16]) Explain pseudo-code of corresponding decryption algorithm for this cipher.

  Display the dfs starting from a specified vertex

Design and implement a driver to show the following (check for 2 graphs; 1 is provided, including the starting vertex):Display the dfs starting from a specified vertex;Display the discovery/finishing time for each node in the graph;Show the Parenthes..

  How to store and reference data in an array list

How to store and reference data in an array list and How to delete data from the ArrayList

  Data array a has data series from 1000000 to 1 with step

data array a has data series from 1000000 to 1 with step size 1 which is in perfect decreasing order.data array b has

  What is the logarithm base-2 of zero? of one

What is the logarithm base-2 of zero? of one?

  Order statistic tree to count number of inversions in array

Demonstrate how to use an order-statistic tree to count the number of inversions in an array of size n in time O(n lg n).

  Identifying the location of rubric objectives

Code Comments are used to identify the location of rubric objectives, Code Formatting is used to raise the readability of the HTML Code.

  Determine schedule that obtains maximum amount of profit

Assume you have one machine and a set of n jobs a1, a2, ..., an to process on that machine. Determine the schedule that obtains the maximum amount of profit. Compute the running time of your algorithm?

  List the inputs any processes calculations and outputs

Your goal is to solve the following simple programming exercise. You have been contracted by a local antique store to design an algorithm determining the total purchases and sales tax. List the inputs, any processes, calculations, and outputs

  Write down an all-pairs algorithm that is given a list of

question 1.algorithms a and b perform the same task. on input of size n algorithm a executes 0.5n2 steps and algorithm

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