Write if statements for each of the following. Possible outcomes are underlined. The if statements must contain the outcomes exactly as written below. a little cold if the temperature is less than 60, nice weather $1 if the number of cents is a 100. player wins if player earns at least 20 points, player loses 10% discount if total amount due is $100-$200 (including 100 and 200). free for children 2 and younger or adults 65 and older; $5
Write if statements for each of the following. Possible outcomes are underlined. The if statements must contain the outcomes exactly as written below. a little cold if the temperature is less than 60, nice weather $1 if the number of cents is a 100. player wins if player earns at least 20 points, player loses 10% discount if total amount due is $100-$200 (including 100 and 200). free for children 2 and younger or adults 65 and older; $5
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
- Write if statements for each of the following. Possible outcomes are underlined. The if statements must contain the outcomes exactly as written below.
- a little cold if the temperature is less than 60, nice weather
- $1 if the number of cents is a 100.
- player wins if player earns at least 20 points, player loses
- 10% discount if total amount due is $100-$200 (including 100 and 200).
- free for children 2 and younger or adults 65 and older; $5
Expert Solution

Step 1
Note: Possible outcomes is not underlined. for last part is not clear[it look incomplete]
1. if(temperature<60)
printf("a little cold");
else
printf("Nice whether");
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education