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
Alexxandr [17]
3 years ago
7

What is wrong with my code?

Computers and Technology
1 answer:
sineoko [7]3 years ago
3 0

Answer:

namespace FavoriteNumber

{

   class Program

   {

       static void Main(string[] args)

       {

           Console.Write("Enter your favorite number!: ");

           string faveNumber = Console.ReadLine();

           int number = Convert.ToInt32(faveNumber);

           Console.Write($"Your favorite number seems to be {number}");

       }

   }

}

Explanation:

You were close. Spot the differences. A statement should end with a semicolon. Console.ReadLine() returns a string. That string is the input of what you want to convert to an int.

And of course you need to match each opening brace { with a closing brace }.

You might be interested in
ARP request is send to
Ainat [17]

Explanation:

Because it is a broadcast packet, it is sent to a special MAC address that causes all machines on the network to receive it. Any machine with the requested IP address will reply with an ARP packet that says "I am 192.168. 1.1", and this includes the MAC address which can receive packets for that IP.

8 0
2 years ago
Try using the inv command to find the inverse of the matrix Notice the strange output. Include your command and the output in yo
denpristay [2]

Answer:

a)

inv([1 1; 100 100])

warning: matrix singular to machine precision

warning: called from ATest at line 1 column1

ans =

Inf Intf

Inf Inf

b)

A = [4, 9; 5, 11]

B = inv(A)

A*B

B*A

4. 9

5 11

-11.0000 9.0000

5.0000 4.0000

ans . 00000 -0.00000

0 . 00000 1.00000

ans 1.00000 0.00000

0.00000 1.00000

c)

x = [5; 10]

y = A*x

x = [5; 10]

y=

110 135"

d)

B * y is

5.0000

10.0000

e)

B * y

ans 5.0000

10.0000

3 0
3 years ago
Operating systems move code and data, as necessary, to a portion of the disk that is used as if it were memory, not just disk st
GalinKa [24]

Virtual memory frees up RAM by transferring data that hasn't recently been used to a storage device, such as a hard disk or solid-state drive (SSD). Virtual memory is useful for multitasking, running large programs, and speeding up the system.

<h3>What is the role of virtual memory in disk storage space?</h3>

Virtual memory fulfills two functions. First, by using disk, it enables us to increase the utilization of physical memory. Because each virtual address is converted to a physical address, it also enables memory protection.

An operating system may load programs larger than its physical memory thanks to virtual memory, which is its fundamental benefit. The users get the idea that the machine has boundless memory. Additionally, it offers memory security.

Therefore, operating systems move code and data, as necessary, to a portion of the disk that is used as if it were memory, not just disk storage space.

Learn more about virtual memory here:

brainly.com/question/13384907

#SPJ2

4 0
10 months ago
Read 2 more answers
as a pc technician, you are on the road most of the day and use a laptop. when you get back to your office at the end of the day
natali 33 [55]

Port replicator is the type of device should you choose to provide all the functionality above.

<h3>What does a port replicator do?</h3>
  • A tool used to connect a laptop's accessories rapidly. Permanent connections are made to the port replicator, which is connected to the laptop via the USB port, by the keyboard, mouse, network, monitor, printer, and port.
  • A docking station's functionality may be partially or entirely provided by a port replicator, and the words are interchangeable.
  • However, a port replicator often offers a universal solution for all laptops through USB, in contrast to a docking station that connects to the computer using a proprietary connector. check out docking station.
  • A port replicator is an add-on for a notebook computer that enables many devices, such a printer, big screen, and keyboard, to be attached at once.

Learn more about A port replicator refer :

brainly.com/question/14312220

#SPJ4

4 0
1 year ago
THIS IS PYTHON QUESTION
frozen [14]

Answer:

ok

Explanation:yes

4 0
2 years ago
Other questions:
  • What US federal agency publishes safety standards for business and industry?
    5·1 answer
  • Which of the following is not a common network architecture type?
    9·1 answer
  • What provides quality education for students
    14·1 answer
  • Which of the following is not true about VOIP?
    9·1 answer
  • A system administrator is selecting an operating system for use by the company’s research and development team. The team require
    15·1 answer
  • If you are going to refer to a few dozen classes in your application, how do<br> you do it?
    6·1 answer
  • Write a program that uses a dictionary to store students birthdays. Your program should ask the user what their name is, and loo
    11·1 answer
  • define a computer, state its 3 main activities with examples of the functions of each of those activities​
    7·1 answer
  • Help me to solve please​
    8·2 answers
  • When you try to move the desktop icon using the click and drag method and it doesn't move, what is the reason?​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!