Read four numbers and find the sum of these numbers

Assignment Help Computer Engineering
Reference no: EM132213354

Question :

Write a script to read four numbers and find the sum of these numbers. If the sum is more than 150 it should display the sum is more than 150 and in a different line display each of the four values and as well as the sum of those four numbers.

If the sum is in the range 100 to 149 display the message that the sum is in the range of 100 to 149 and display the first three numbers only.

If the sum is in the range 50 to 99 display the message that the sum is in the range of 50 to 99 and also display the first two numbers only.

For any other sum value, display the sum is not in any expected ranges.

Ask if the user wants to try one more time, if so continue this process.

If the user does not want to continue, thank the user for entering those values.

Reference no: EM132213354

Questions Cloud

Which activities are different across the two establishments : Make a list of activities to process an order that consists of a main course (sandwich, pizza, burger, etc.), a drink and a side order (3 items on the menu).
Take three positive integers and return an integer : Combine3 takes three positive integers and return an integer which is made of the last two digits of the first integer.
Create a row vector c that is an integer data type : Create a row vector C that is an integer data type with elements counting backward in increments of 5 from 200 to 0.
What state and federal enforcement agencies have played role : What state and federal enforcement agencies have played a role in the investigation of white collar crime? Name a few with some recent examples.
Read four numbers and find the sum of these numbers : If the sum is in the range 50 to 99 display the message that the sum is in the range of 50 to 99 and also display the first two numbers only.
What amount of interest should turnbull include : Turnbull Corporation is constructing an office building that it will use in its business. Construction of the building started in the current accounting period.
Write a script that will use the menu function to present : Write a script that will use the menu function to present the user with choices for functions "fix", "floor", and "ceil".
Write a select statement that returns these columns : Write a SELECT statement that returns these columns from ther invoices table a column that uses the ROUND function to return.
Prepare the transaction analyses for given parts : Governmental nonfund: GCA decreases by $60 at the end of useful life when the computer is sold. In other words, in transaction (i), when the computer.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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