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

// GetData() method accepts order number and quantity // that are used in the Main() method // Price is $3.99 each using System;

using static System.Console; class DebugEight1 { static void Main() { int orderNum, quantity; double total; const double PRICE_EACH = 3.99; GetData(orderNum; quantity); total = quantity * PRICEEACH; WriteLine("Order #{0}. Quantity ordered = {1}", orderNum, quantity; WriteLine("Total is {0}", total.ToString("C")); }
Computers and Technology
1 answer:
Amiraneli [1.4K]3 years ago
8 0

Answer:

The method definition to this question as follows:

Method definition:

//method GetData

       public static void GetData(out int order, out int amount)//defining method GetData  

       {  

           String val1, val2;  //defining String variable

           Write("Enter order number ");  //message

           val1 = ReadLine();  //input value by user

           Write("Enter quantity ");  //message

           val2 = ReadLine();  //input value by user

           order = Convert.ToInt32(val1);  //convert value in integer and hold in order variable  

           amount = Convert.ToInt32(val2);  //convert value in integer and hold in amount variable

       }

Explanation:

In the above C# method definition code a method  GetData() is defined in which the GetData() method is a static method, in this method parameter two integer argument "order and amount" is passed, inside a method, two string variable "val1 and val2" is declared that is used to take input by the user and convert the value into integer and store this value in the function parameter variable.

You might be interested in
What are availabilities and uses of solar energy/panels? (please explain as much as you can)
mixer [17]
Solar panels can be very useful, an they help reduce the use of other power plants that release pollutants into the air. Solar panels have some cons, as the very good ones that have better cells that can store more energy are more expensive, but it is worth the investment, because a big enough field of panels can power a lot of a things during a power outage.

If anyone else has anything about the availability of solar panels, feel free to add.

Hope this helps :) 
6 0
4 years ago
What is true about client-side scripting?
Alexeev081 [22]

Answer:

A client-side script is a program that is processed within the client browser. These kinds of scripts are small programs which are downloaded , compiled and run by the browser. JavaScript is an important client-side scripting language and widely used in dynamic websites.

Explanation:

3 0
3 years ago
Which of these devices can completely stop broadcasts from being passed on across the network? routerswitchaccess ponthub
cestrela7 [59]

Answer

An Access point can completely stop broadcasts from being passed on across the network.

Explanation.

An Access point is a hardware type that is part of local area network which has capability of allowing wireless communication from devices through a wireless stand,which connects in between devices and the network. A good example of these devices are routers that allows wireless devices to connect to a wireless network.So when it is passed on across a network an Access point can completely stop.

8 0
3 years ago
Read 2 more answers
Easy STEAM question :)
lorasvet [3.4K]

Answer:

Explanation:

A civil Engineer builds buildings, roads and bridges.

4 0
4 years ago
Read 2 more answers
Why is graphics important in multimedia application <br>​
erastova [34]
Graphics are important in multimedia application this is because humans are visually oriented etc.
5 0
3 years ago
Other questions:
  • Return to the Product Mix worksheet. Benicio wants to provide a visual way to compare the scenarios. Use the Scenario Manager as
    6·1 answer
  • Is there an answer to these picture?
    12·1 answer
  • Which architect designed the Guggenheim Museum in New York?
    6·2 answers
  • Hidden-surface removal is the process of:
    14·1 answer
  • 1) Why is angle of view important? What are some of the ways that you can do this?
    6·1 answer
  • Assume that passwords are selected from four-character combinations of 26 alphabeticcharacters. Assume that an adversary is able
    11·1 answer
  • area of trapezium is 54cmsq if parallel sides are 10cm and 8cm long find the distance between the parallel sides​
    12·1 answer
  • Después de un incidente de seguridad del cliente, el equipo realiza un análisis en profundidad de cada paso dado por los atacant
    6·1 answer
  • Why do relational databases use primary keys and foreign keys?.
    12·1 answer
  • Watch any film of the silent era. Choose a short film from any genre that is less than 30 minutes long. Write a review of your e
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!