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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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