1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Svetlanka [38]
4 years ago
6

Make a simple numeric calculator. It should prompt the user for three numbers. Then add the numbers together and divide by 2. Di

splay the result. Your program must support numbers with decimals and not just integers. If the result is more than 6, display Your result is more that 6! 4.
Computers and Technology
1 answer:
Marizza181 [45]4 years ago
3 0

Answer:

No programming language stated; I'll answer this question using Python.

(Please note that -> at the last line means indentation)

The program is as follows:

num1 = float(input("Number 1: "))

num2 = float(input("Number 2: "))

num3 = float(input("Number 3: "))

result = (num1 + num2 + num3)/2

print("Result: ",result)

if result > 6:

->print("Your result is more than 6!")

Explanation:

The first three lines prompt the user for input of 3 numbers (the number could be decimal, whole numbers, positive or negative numbers)

num1 = float(input("Number 1: "))

num2 = float(input("Number 2: "))

num3 = float(input("Number 3: "))

The next line sums up user input and divides the sum by 2

result = (num1 + num2 + num3)/2

The next line prints the calculated result in the previous line

print("Result: ",result)

The next line determines if the calculated result is more than 6; if yes, the associated print statement is executed

if result > 6:

->print("Your result is more than 6!")

Once again, please note that -> at the last line means indentation

You might be interested in
Draw the hierarchy chart and then plan the logic for a program that calculates a person’s body mass index (BMI).
dusya [7]

Explanation:

I have attached the answer as an image. I can't upload the file as it requires a licensed product and I only used demo version. I can provide the file too if you can give me your vlsig file required to use full software. However, If you just copy along the images on your Visual Studio, you will easily create the files yourself. Answer is provided for both scenarios as part A and part B, one which stops after 1 iteration and the one which loops until 0 height is given.

8 0
3 years ago
How does the actual amount left to spend differ from the budgeted amount for the remaining three months of the project?
Vlad [161]

Answer:

The left(in actual) can be more or less than the budgeted for the remaining time. Suppose some resource fell ill or got damaged, you are going to invest in them, and get them back. However, for that, you need to spend money, and this reduces the actual left, as more of the budgeted is being spent. And this is the difference between the two, the actual left to spend from the budgeted for the remaining time of the project. However, the project managers keep an extra budget these days for such a situation, and hence this drawback in the project plan has already been removed, and the problem is solved.

Explanation:

Please check the answer.

The overexpense %

= (( Actual spent - Budgeted amount)/Budgeted amount) *100

3 0
3 years ago
♡ Another Dum Question But Oh Wells -.- ♡
german
Apple duhhhhhhhhhhhhhh
3 0
3 years ago
Read 2 more answers
You've formatted the first paragraph of a document. What button can you use to apply the formatting from the first paragraph to
ch4aika [34]
C. Copy which you can access by Ctrl C then paste with Ctrl V
3 0
4 years ago
Read 2 more answers
Write an expression that whose value is the fifth character of the string name.
Anuta_ua [19.1K]
Int j;
j="name"[4];
//   you   could  do
j=0;   //  since name   has four letters  the fifth  character is the terminating 0
now  if the string  name is  name
you   could do
j=name[4];  // or even    4[name] 

5 0
3 years ago
Other questions:
  • 100 students were asked to fill out a form with three survey questions, as follows: H: Honor Roll C: Club membership (Robotics C
    7·1 answer
  • 5. The hazardous component in most antifreeze is _____, which is extremely toxic to humans and animals. A) Calcium Carbonate B)
    13·2 answers
  • Which osi layer defines the functions of logical network-wide addressing and routing?
    14·1 answer
  • Where would you go to cancel a print job?
    15·1 answer
  • What role/service is windows 2012 server backup part of?
    5·1 answer
  • You want to substitute one word with another throughout your
    13·1 answer
  • Write a program that multiplies two hard-coded numbers, then prints the individual numbers out and prints their product out, all
    10·1 answer
  • Select the correct answer from each drop down menu
    11·1 answer
  • What is the difference between * and **operator? in python ​
    9·1 answer
  • How to view average for an assignment in gradebook in canvas.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!