Answer:
Explanation:
public void printAlphabets(char c){
String capitals = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
String small = "abcdefghijklmnopqrstuvwxyz";
if(capitals.contains(""+c)){
for(int i=0; i<capitals.length();i++){
if (capitals.charAt(i)!=c)
System.out.print(capitals.charAt(i)+" ");
else
break;
}// end for
System.out.print(c);
}else if (small.contains(""+c)){
for(int i=0; i<small.length();i++){
if (small.charAt(i)!=c)
System.out.print(small.charAt(i)+" ");
else
break;
}// end for
System.out.print(c);
}// end else if
}// end printAlphabets method
I think it would be me because i interpret command from a mouse in my hole.
Answer:
Code:-
// Program takes a hot dog order
// And determines price
using System;
using static System.Console;
class DebugFour1
{
static void Main()
{
const double BASIC_DOG_PRICE = 2.00;
const double CHILI_PRICE = 0.69;
const double CHEESE_PRICE = 0.49;
String wantChili, wantCheese;
double price;
Write("Do you want chili on your dog? ");
wantChili = ReadLine();
Write("Do you want cheese on your dog? ");
wantCheese = ReadLine();
if (wantChili == "Y")
{
if (wantCheese == "Y")
price = BASIC_DOG_PRICE + CHILI_PRICE + CHEESE_PRICE;
else
price = BASIC_DOG_PRICE + CHILI_PRICE;
}
else
{
if (wantCheese == "Y")
price = BASIC_DOG_PRICE + CHEESE_PRICE;
else
price = BASIC_DOG_PRICE;
}
WriteLine("Your total is {0}", price.ToString("C"));
}
}
Your answer to this question is..
that it is inserted in the Prototype Label box..
I am 100% sure.. good luck !
Bye and Take Care