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

  Describe an algorithm to play the game of nim

Describe an algorithm to play the Game of Nim using all of the three tools discussed in class (pseudocode, flowchart, hierarchy chart).

  Chinese remainder theory

For RSA signature, let p=17 and q=43. Design a digital signature for the message m=161, where the hashing function is the identity function and the computation at the signer's side is performed through the Chinese Remainder Theory.

  Explain the fifo structure of the queue

Explain the FIFO structure of the queue Explain how you would implement the queue data structure in its simplest form. Illustrate your answer fully with the necessary sample code

  Discuss infix to postfix conversion

This part will use both a stack and queue in order to convert expressions from infix to postfix notation.

  Describe open source and proprietary databases

Describe open source and proprietary databases. What are some drawbacks and benefits of each type of database?

  Find maximum possible amount of money by optimal strategy

Removes it from row permanently, and receives value of coin. Find out the maximum possible amount of money we can definitely win if we move first.

  Advantage of fast running time of insertion sort

Running time of quicksort can be enhanced in practice by taking advantage of fast running time of insertion sort when its input is "nearly" sorted.

  Can you find the element of an array

We would like to determine whether a given array A has a majority element, and if so, find the element.

  Terminate the linked list properly

Define a struct which has exactly 5 variables that, for one person, will hold the last name, the "other" names. the-year-took-office. the-yew-left-office, and a pointer. The pointer will be used to point to the next set of data. for the next perso..

  Declare a double array

Question 1: Declare a double array of size 100. Question 2: Fill out the array with 1 if a random value is greater than 0.5 else 0 Question 3: print the number of 0's in the array .

  Task 0111 write down the pseudo code for merge sort

task 011.1 write down the pseudo code for merge sort algorithm and using bellow array values perform the merge sort

  Create an er diagram

Create an E-R diagram with all appropriate notation for the following condition. In a particular fruit growing region there are a number of orchards.

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