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

  Implementation of eeo policy

Explain and evaluate how the Implementation of the EEO policy is applied in the Non-discriminatory workplace?

  What quantity of ice melts

A 3.60-g lead bullet at 28.0 degrees C is fired at a speed of 230 m/s into a large block of ice at 0 degrees C, in which it embeds itself. What quantity of ice melts?

  Growth of national power

All of the following cotributed to the growth of national power except?

  Principles of cooperative federalism

Why did the United States evolve towards principles of cooperative federalism?

  Wind is included along with gravity-water and ice as erosion

Wind is included along with gravity, water and ice as an agent of erosion. In many areas of natural beauty, statements are often made that credit wind as having sculpted the landscape.

  Name five tools used in six sigma

Name 5 tools used in Six Sigma, then discuss 3 ways that Six Sigma(DMAIC) is different than a lean approach to process improvement.

  Increase the target person’s perception

Which tactic is most likely to increase the target person’s perception that a request or proposal is important for the team or organization

  What preference are accorded contractors under the programs

Discuss Small Business, Small Disadvantage Business, the 8(a) program, and HUBZone programs. In your discussion include what part of the FAR covers these programs, the purpose of each program, as well as what preference(s) are accorded contractors..

  Situation constitute a case of sexual harassment

You are a sergeant with the local police department's patrol division. During your shift a female officer asks if she can speak in private with you about a sensitive subject

  Relationship between individual in the wider society

Schaefer defines the sociological imagination as “an awareness of the relationship between an individual in the wider society, both today and in the past” (p. 5). Let’s begin our discussion this week by considering a particular scenario.

  The fixed and variable cost

The fixed and variable cost and their impact on the break- even point for these services.do you think that the relative prices charged bear a relationship to the cotribution margin ?

  Professional academic association

why do you think that members of a professional academic association(American Anthropological Association) decided to issue an official statement about race? [hint: what is politically relevant about the beginning and growth of anthropology as a disc..

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