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
tiny-mole [99]
3 years ago
13

Which statement outputs a double value in a field of nine characters with three digits after the decimal point?

Computers and Technology
1 answer:
zimovet [89]3 years ago
3 0

Answer:

Console.WriteLine("Format Double: {0:n3}", num); //formatting output with 3 digit decimal point

Explanation:

Following are the program in c#

using System; // namespace  

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace Tasks

{

   class Program 2 // program2

   {        

                 

       static void Main(string[] args) // Main function

       {

 

           double num = 958254.73789621;   // variables          

           Console.WriteLine("Format Double: {0:n3}", num); //formatting output with 3 digit decimal point

           Console.Read();

       }

   }

}

Output:

Format Double : 958254.737

Here we have declared  a variable num of type double which store the value num=958254.73789621. To do format with the double number i used a syntax {0:n3}. This syntax {0:n3}is separated with :(colon) here 0 represent the value before the decimal point that is 958254 and n3 represent the value upto 3 decimal points. Hence this statement give the output with three digit after the decimal point .

 

You might be interested in
What the difference between a battery and power supply?
ANEK [815]
A power supply, such as those in a computer, take the power from the given outlet, and send it through the computer into the hardware it need to run on. A battery has a certain amount of power which is in some cases, continuously draining.
7 0
3 years ago
Write code that generates a random odd integer (not divisible by 2) between 50 and 99 inclusive.
san4es73 [151]

import random

nums = [x for x in range(50,100) if x%2!=0]

print(random.choice(nums))

We use a list comprehension to create a list of the odd numbers between 50 and 99. Then we randomly choose one of those numbers using the random module.

8 0
2 years ago
Write an expression whose value is the str that consists of the second through fifth characters of the str associated with s. Wr
Lera25 [3.4K]
>>> s = "012345678"
>>> s
'012345678'
>>> s[ 1 : 6 ]
'12345'



4 0
3 years ago
Read 2 more answers
Imagine you are part of a school newspaper or school yearbook club. What application software would you need in order to produce
djyliett [7]

Answer:

MS-Word

Explanation:

MS-Word is the application software that is used for document creation or for word processing. It is the widely used software for content writing purposes and processing of words. It is available by Microsoft.

MS- Word is very useful when writing any paragraph or any article for a book or for any newspaper. We can modify or edit our content in the application software. It is basically a word processor that was developed by Microsoft company in the year 1983.

In the context, MS-Word is the best application software that is used to produced the work for the school newspaper or for the school yearbook club.

7 0
3 years ago
What is system software? Write its types.​
sasho [114]

Answer:

There are two main types of software: systems software and application software. Systems software includes the programs that are dedicated to managing the computer itself, such as the operating system, file management utilities, and disk operating system (or DOS)

7 0
3 years ago
Read 2 more answers
Other questions:
  • Identify the root folder in the absolute path /folder1/folder2/folder3/file.
    14·2 answers
  • What can you do to manually exclude an individual from a recipient list?
    6·1 answer
  • What is computer software
    8·2 answers
  • Plato: A university wants to install a client-server network. Which feature do you think is important for them as they set up th
    5·1 answer
  • What do you need to do before you can sort and filter data in a data base?
    12·1 answer
  • Most hard drives are divided into sectors of 512 bytes each. Our disk has a size of 16 GB. Fill in the blank to calculate how ma
    9·1 answer
  • What will you see on the next line after the following lines of code?
    12·1 answer
  • Which orientation style has more height than width?
    11·1 answer
  • What is the<br> binary code<br> for<br> "DMS"?
    8·1 answer
  • Using these Web sites for guidance, write a definition in your own words for five of the terms listed below.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!