Question: Codio Project File Edit Find View Tools Education exercise... Conditionals Coding Exercises: Condi _ Exercise 4 Conditionals Exercise 4 Problem Use the variable x as
Codio
Project
File
Edit
Find
View
Tools
Education
exercise...
Conditionals Coding Exercises: Condi
Exercise
Conditionals Exercise
Problem
Use the variable as you write this program. will represent a string. Write a program that determines if is a primary color red blue, or yellow If yes, print is a primary color, where the blank is the value of If no print is not a primary color. where the blank is the value of For this particular exercise, make sure that your code specifically checks if the variable is equivalent to the strings blue or in all lowercase. Otherwise, your test cases will fail.
IMPORTANT
There is a difference between all of the following strings: "red", "Red", and "RED". When comparing strings, the system is casesensitive and will attempt to match each character of the strings to each other based on whether it is uppercase or lowercase.
Expected Output
If is then the output would be: color.
If primary color. teal is not a pr
Click to compile your code
Test your code with a few different values
Conditionals Exercise
When your code is ready, click the button below to submit your work for grading.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
