Design an algorithm numbers and integercode from screen

Assignment Help Other Subject
Reference no: EM13266836

a defining diagram

-a pseudocode algorithm

The question is:

Design an algorithm that will read two numbers and an integercode from the screen. The value of the integer code should be 1,2,3or 4. If the value of the code is 1, compute the sum of the twonumbers. If the code is 2, compute the difference (first minussecond). If the code is 3, compute the product of the two numbers.if the code is 4, and the second number is not zero, compute thequotient (first divided by second). If the code is not equal to1,2,3,4, display an error message. The program is then to displaythe two numbers, the integer code and the computed result to thescreen.

Reference no: EM13266836

Questions Cloud

Calculate both the direct expense of issuance : Calculate both the direct expense of issuance and the indirect (i.e., underpricing) expense. What percentage of the market value of the shares is represented by these costs?
Determine the wave number and the angular frequency : the wavelenght of green light Lamda =550nm. Determine the wave number, the angular frequency,and the peroid of the wave. The speed of light is 3*10^8 m\s.
Explain compound is treated with an excess of hcl : Draw the product that is formed when the compound shown below is treated with an excess of HCl. Draw only the organic ion.
What is the ratio of the amplitudes of the two waves : Two earthquake waves of the same frequency travel through the same portion of the Earth, What is the ratio of the amplitudes of the two waves
Design an algorithm numbers and integercode from screen : Design an algorithm that will read two numbers and an integercode from the screen. The value of the integer code should be 1,2,3or 4. If the value of the code is 1, compute the sum of the twonumbers. If the code is 2, compute the difference (first mi..
What is the cost of electrical energy for the year : You have a laundry room where the following loads are connected to a 208V circuit: 2500W electric base board heater, 600W wash machine, 3600W dryer, and a 1000W iron. All loads are connected in parallel.
Explain what is the measured density of hexane : The mass of a beaker is 7.839g. After 7.50 mL of hexane, C6H14, is pipetted into the beaker, the combined mass of the beaker and the heaxane sample is 12.806g. What is the measured density of hexane?
What is the value of the induced current in the wire : a field (parallel to the axis of the coil) with a magnitude given by B(t) = (4.0 + 3.0t2) T, where t is in s. What is the value of the induced current in the wire at t=3.5 s
Determine what is the total power of the system : You have a laundry room where the following loads are connected to a 208V circuit: 2500W electric base board heater, 600W wash machine, 3600W dryer, and a 1000W iron. All loads are connected in parallel.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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