Answer:
//Program written in Java Programming Language
// Comments are used for explanatory purpose
import java.util.Scanner; //Scanner Library Imported
public class findloc { //Program Class Declared
public static void main (String [] args) {//Program Main Method
Scanner input = new Scanner(System.in);
string passCode; // Declare string passCode
passCode = Input.next();//Input Passcode
if(Character.isLetter(passCode.charAt(0)))//Check Alphabet Position
{
System.out.println("Alphabetic at 0");//Print Alphabet position is at 0
}
if(Character.isLetter(passCode.charAt(1))) //Check Alphabet Position
{
System.out.println("Alphabetic at 1");//Print Alphabet position is at 1
}
}
}
The installation would have crashed or failed
Hi!
If I had to pick a social media platform for a clothing company's campaign I would choose Instagram due to its large following and tons of traffic, also the large number of female users, which for a clothing company is usually the target audience.
I would have originally said facebook, but due to recent policy changes that would not be my first choice.
-<span>ASIAX </span><span> </span><span>Frequent Answerer</span>
Void printtictactoe(char horizchar, char vertchar)
{
int i,j;
int scale = 5;
for(j=0; j<3; j++) {
for (i = 0; i < scale; i++)
printf("%*c%*c\n", scale+1, vertchar, scale+1, vertchar);
if (j < 2)
for (i = 0; i < (scale * 3)+2; i++)
printf("%c", horizchar);
printf("\n");
}
}
I left out many braces because of the layout issues with this website. There is a scale factor you can set to the desired size of the board cells!
Answer:
Here is the Python program:
stock_prices = input().split() #to take input and splits it into a list
for price in stock_prices: #iterates through stock_prices
print("$",price) #prints each value of stock_prices with a dollar sign
Explanation:
The program is well explained in the attached comments. I will explain the logic of the program with the help of an example:
Suppose the user enters the following input as stock_prices values
34.62 76.30 85.05
input() method is used to take input from user
split() method is used to split or break this input string and returns a list of strings as:
['34.62', '76.30', '85.05']
Now the statement for price in stock_prices: iterates through each item of the list and print("$",price) prints each value of list with a dollar sign on the output screen as:
$ 34.62
$ 76.30
$ 85.05