Create IPO charts for each of the following:   Write a program to input a number N. If the number is greater than 50, subtract 10 from the number; otherwise multiply the number by 2 and add 5. Print the number and the result.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question

Create IPO charts for each of the following:

 

  1. Write a program to input a number N. If the number is greater than 50, subtract 10 from the number; otherwise multiply the number by 2 and add 5. Print the number and the result.
  2. Three football teams are awarded points based on matches they played. Read the team, the team total and whether it won, drew or lost the match and print the team total. Award the points to the teams total points as follows: 2-win, 1-drawn, 0-lost.
  3. Write a program to print the average age and height of students in a class of 35. Read the age and height of each student.
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr