1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
gtnhenbr [62]
4 years ago
10

Write a program which:

Computers and Technology
1 answer:
Studentka2010 [4]4 years ago
3 0

Answer:

Ill do this in C# and Java

Explanation:

C#:

public static void Main(string[] args)

       {

           string input = Console.ReadLine();

               switch (input)

               {

                   case "A1":

                       Console.WriteLine("Footwear:");

                       Console.WriteLine("Shoes");

                       break;

                   case "B1":

                       Console.WriteLine("Tops:");

                       Console.WriteLine("Jackets");

                       break;

                   case "C1":

                       Console.WriteLine("Pants:");

                       Console.WriteLine("Trousers");

                       break;

                   case "A2":

                       Console.WriteLine("Footwear:");

                       Console.WriteLine("Trainers");

                       break;

                   case "B2":

                       Console.WriteLine("Tops:");

                       Console.WriteLine("TShirts");

                       break;

                   case "C2":

                       Console.WriteLine("Pants:");

                       Console.WriteLine("Shorts");

                       break;

                   default:

                       Console.WriteLine("Incorrect Input");

                       break;

               }

       }

Java:

public static void main(String[] args)

   {

       Scanner myObj = new Scanner(System.in);  // Create a Scanner object

       String input = myObj.nextLine();

       {

           switch (input)

               {

                   case "A1":

                       System.out.println("Footwear:");

                       System.out.println("Shoes");

                       break;

                   case "B1":

                       System.out.println("Tops:");

                       System.out.println("Jackets");

                       break;

                   case "C1":

                       System.out.println("Pants:");

                       System.out.println("Trousers");

                       break;

                   case "A2":

                       System.out.println("Footwear:");

                       System.out.println("Trainers");

                       break;

                   case "B2":

                       System.out.println("Tops:");

                       System.out.println("TShirts");

                       break;

                   case "C2":

                       System.out.println("Pants:");

                       System.out.println("Shorts");

                       break;

                   default:

                       System.out.println("Incorrect Input");

                       break;

               }

       }

You might be interested in
On the Attendance worksheet, in cell L5, enter an IF function to determine if the percentage in cell K5 is greater than or equal
Ad libitum [116K]

Answer:

=IF(K5>=H18,"Goal Met", "Review")

Explanation:

The syntax of if the statement is as below:

=If( logic test, if true then this, if false then this)

And hence, and as in question logic test is k5>=H18, and on true the output should be Goal met, and on false the output should be review. And hence, we get the above formula, and which is the required answer.

8 0
3 years ago
Please help me with my question ​
Ahat [919]

Answer:

1. Template

2. Name of the website

3. Signature of the instructor

3 0
3 years ago
Read 2 more answers
Which of the following is the 1's complement of 10?
OverLord2011 [107]
Flip 10 and you get 01 then you add 1 to it:
1
01
+ 1
-----
1 1

So, C. 11
6 0
3 years ago
Read 2 more answers
A network technician is setting up a web server for a small company. The company has obtained a domain name, company-a, from a d
Alja [10]

Answer:

There is Name resolution failure

Explanation:

This normally occurs when the computer can't access the host (your server). It can be caused by several factors, such as:

-Internet connectivity is down

-The client does not have DNS servers configured or is configured with the incorrect DNS server IP addresses.

-The DNS servers are failing.

3 0
4 years ago
A) Write a program that asks the user for the amount of money they will take on holiday and convert this into the equivalent amo
Lelu [443]

def func():

   money = int(input("How much money will you have on holiday? "))

   print("You will have {} euros.".format(int(money * 1.11)))

   money = int(money * 1.11)

   fifty = 0

   twenty = 0

   ten = 0

   five = 0

   while True:

       if money - 50 >= 0:

           fifty += 1

           money -= 50

       elif money - 20 >= 0:

           twenty += 1

           money -= 20

       elif money - 10 >= 0:

           ten += 1

           money -= 10

       elif money - 5 >= 0:

           five += 1

           money -= 5

       if money < 5:

           print("You will have {} fifties, {} twenties, {} tens, {} fives, and {} ones".format(fifty, twenty, ten, five, money))

           return

func()

I hope this helps!

5 0
3 years ago
Other questions:
  • Summarize the distinction between a flat file and a database
    15·1 answer
  • you are configuring a firewall to all access to a server hosted in the demilitarized zone of your network. You open IP ports 80,
    7·1 answer
  • You have a computer at home. The computer is connected to the Internet through a dial-up connection. Every time you connect to t
    7·1 answer
  • Im new what are points
    6·2 answers
  • In cell B20, enter a function to calculate the average attendance for 2018
    11·1 answer
  • Project: Big Data Programming - Section 2
    11·1 answer
  • Assume that the variable myString refers to a string. Write a code segment that uses a loop to print the characters of the strin
    5·1 answer
  • Which type of information should never be given out on social media?
    5·2 answers
  • Write the pseudocode for a program that will process attendance records of CA students. The students attend college five days a
    13·1 answer
  • your organization has decided to use dhcp for ipv6. you want all windows 10 systems using ipv6 to get all of their tcp/ip inform
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!