Write an algorithm to find perimeter and area of a rectangle

Assignment Help Management Information Sys
Reference no: EM131680160

Assignemnt: Business Computer Languages IT

Evaluate the given pseudocode to calculate the body mass index (BMI) with the following test values:

A) The height = 1.80 meter and the weight = 78 Kg

B) The height = 1.50 meter and the weight = 85 Kg

Input height
Input weight
BMI = Weight / (height)2

If BMI < 18.5 then
Output BMI
Output "Underweight" Else
If BMI < 24.9 then
Output BMI
Output "Normal"
Else
If BMI > 25 then
Output BMI
Output "overweight"
End if

What is the final output of:

Write an algorithm to find the perimeter and the area of a rectangle.

Find the errors in the following statements, explain why and how to solve such errors:

a. 23 = 25;
b. Int percentage% = "15";
c. Rectangle void = new Rectangle (25, 30, 40, 50);
d. double 7average = 0;
7average.length();

We want to create a class that represents a clock. A clock has hour, minute, and second. For example, the time 12:15:36 means, it is 12 o'clock, 15 minutes, and 36 seconds. The basic framework of a Clock class is below: public class Clock

{ privateint hour;
privateint minutes;
privateint seconds;
}

1. What should the body of the constructor be?
A. hr = hour;
min = minutes;
sec = seconds;
B. hour = 12;
minutes = 15;
seconds = 36;

C. int hour = hr;
int minutes = min;
int seconds = sec;

D. hour = hr;
minutes = min;
seconds = sec;

What are the implicit and the explicit parameters in the following methods call: A) System.out.println("Assignment 1");

B) myName.length()

Write the body for addition, subtraction, multiplication and division methods for the Calculator class

importjava.lang.*;
importjava.util.*;
public class Calculator
{ privateint value;
privateint x;
privateint y;
public Calculator()
{
value = 0;
x = 0;
y = 0;
}
publicint addition(int x, int y)
{
}
publicint subtraction(int x, int y)
{
}
publicint multiplication(int x, int y)
{
} public double division(int x, int y)
{
}
)

Reference no: EM131680160

Questions Cloud

Research and summarize an hie in your area : Research and summarize an HIE in your area and describe what form of HIE it is using the explanation on the HealthIT.gov website
Develop test plan and training plan : Develop test plan, training plan, and maintenance methodology for SanGrafix, a video game design company.
Find the probability that each team wins : A newspaper article preceding the 1994 World Cup semifinal match between Italy and Bulgaria stated that "Italy is favored 10-11 to beat Bulgaria.
How schools can ensure that students gain computer literacy : Describe one or more information systems that you have used, the features of the system and what type of information technologies it used.
Write an algorithm to find perimeter and area of a rectangle : Write an algorithm to find the perimeter and the area of a rectangle. Find the errors in the following statements, explain why and how to solve such errors.
What sample data would collect to draw a conclusion : Since 1984, all automobiles have been manufactured with a middle tail-light. You have been hired to answer the question.
Discuss about the big data and its business impacts : Discuss about the Information systems infrastructure: evolution and trends and Big data and its business impacts etc.
What is the kumulipo : What are the three spirit realms and explain what these realms are
How your organization and briargrove will handle these issue : Briargrove has agreed to your plan. The CLN Team is asking for a refined version of the plan making the corrections based on their recommendations.

Reviews

Write a Review

Management Information Sys Questions & Answers

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

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