A program for entering a number. If 2 points the number is greater than 100, it prints the number, its square and its square root, and if it is not, the number and three of its multiples are printed. * IF X > 100 THEN PRINT X, X^2, X^(0.5) ELSE PRINT X, 2*X, 3*X , 4*X IF X > 100 THEN PRINT X, X^2, X^(0.33) ELSE PRINT X, 2*X, 3*X , 4*X IF X< 100 THEN PRINT X, X^2, X^(0.5) ELSE PRINT X, 2*X, 3*X , 4*X IF A > B THEN "50" * 1 point true False A = 45 IF A MOD 5 = 0 THEN A = A/5 3 points IF A MOD 5 = 0 THEN PRINT A/5 ELSE PRINT A * answer=9 answer =10 O O O O
A program for entering a number. If 2 points the number is greater than 100, it prints the number, its square and its square root, and if it is not, the number and three of its multiples are printed. * IF X > 100 THEN PRINT X, X^2, X^(0.5) ELSE PRINT X, 2*X, 3*X , 4*X IF X > 100 THEN PRINT X, X^2, X^(0.33) ELSE PRINT X, 2*X, 3*X , 4*X IF X< 100 THEN PRINT X, X^2, X^(0.5) ELSE PRINT X, 2*X, 3*X , 4*X IF A > B THEN "50" * 1 point true False A = 45 IF A MOD 5 = 0 THEN A = A/5 3 points IF A MOD 5 = 0 THEN PRINT A/5 ELSE PRINT A * answer=9 answer =10 O O O O
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 22PE
Related questions
Question
None
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage