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

  Write a program that simulates inventory bins in a warehouse

Write a program that simulates inventory bins in a warehouse. Each bin holds a number of the same type of parts.

  Create a web page that list five media authoring application

Create a Web page that lists at least five media authoring applications. Organize your page with a table that provides the name of the software application.

  Create higher guessing game using a graphical user interface

Create the higher/lower guessing game using a graphical user interface. Allow users to keep guessing until they guess the number.

  Define advantages and disadvantages of wireless networks

I want assitance with question A and question B. Question C has to be in great detail where I can use a a guide to form a comprehensive report. please pr reference will greatly be appreciated.

  Explain where in operating system the instruction would used

A typical hardware architecture provides an instruction called return from interrupt, abbreviated by something like iret. This instruction switches the mode.

  Write a program that animates two cars moving across a frame

Write a program that animates two cars moving across a frame in opposite directions (but at different heights so that they don't collide.)

  Disadvantages are there to dereferencing of pointer

What drawbacks are there in implicit dereferencing of pointers, but only in certain contexts? For example, consider the implicit dereference of a pointer to a record in Ada when it is used to reference a record field.

  Determine the minimum and maximum value of an array

Write a MATLAB program that will determine the minimum and maximum value of an array along with the index of the minimum and m aximum values.

  Write algorithm that finds the m smallest numbers in a list

Write an algorithm that finds the largest number in a list (an array) of n numbers. Write an algorithm that finds the m smallest numbers in a list of n numbers.

  An open frameworks program to generate a random each to walk

Write an open frameworks program to generate a random each to walk. At step, toss a coin determine if you move right/left or up down.

  Question 1 a explain the following terms in digital image

question 1 a explain the following terms in digital image processingi. target-to-source mapping in geometric

  Briefly explain the idea behind the eigamal cryptosystem

Briefly explain the idea behind the EIGamal cryptosystem. What is the one-way function in this system? What is the trapdoor in this system?

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