<span>Starbucks is employing a Brand Loyalty and Convenience strategy that seeks to not only make it convenient for customers to use their services, but also builds loyalty to ensure that customers keep coming back. These programs add value to Starbucks as they increase residual sales and customer loyalty.</span>
Answer:
import turtle
my_turtle = turtle.Turtle()
my_turtle.speed(0)
my_turtle.pendown()
colours = ["yellow", "blue", "red", "orange", "cyan", "pink", "green", "brown"]
for sides in range(8):
my_turtle.pencolor(colours[sides])
my_turtle.forward(100)
my_turtle.left(45)
Explanation:
- The pencolor statement must be inserted before the forward() call otherwise you have no control over the color of the first line.
- You don't need the count variable, since the 'sides' variable is a perfect counter to index the colours array.
Answer:
Following are the program to this question:
#include <stdio.h>//using the header file
int main()//main method
{
int y;//defining integer variable y
printf("Enter year value:");//print message
scanf("%d", &y);//use input method for input year value
if (y>= 2101)//defining if block that checks year greater then 2101
printf("Distant future");//print message
else if (y>= 2001)//defining else if block that checks year greater then 2001
printf("21st century"); //print message
else if (y>= 1901)//defining else if block that checks year greater then 1901
printf("20th century");//print message
else //defining else block
printf("Long ago");//print message
return 0;
}
Output:
Enter year value:1998
20th century
Explanation:
In the given C language code, inside the main method, an integer variable "y" is defined, which allows the user to input the year value, and use the multiple conditions to check the given value and print message when the condition is matched.
- Inside the "if" condition block, it checks the "y" variable value is greater and equal to 2101. so, it will print "Distant future", otherwise go to the next condition.
- In this, if "y" value is greater than equal to "2001", it will print the message "21st century", otherwise go to the next condition.
- In this, If the value of "y" is greater than equal to "1901", it will print the message "20th century", and if all the above condition is not true, then it will go to the else block, and it will print "Long ago" as the message.
If you want to have certain icons available regardless of what tab your using, you should add them to the [Quick Access Toolbar].
Quick access toolbar is a way in which you can easily access the tool you want to use often.