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
worty [1.4K]
3 years ago
8

Write calls to printf to display the variable x in the following formats:

Computers and Technology
1 answer:
lys-0071 [83]3 years ago
8 0

Answer:

a) printf("%-5.3e",x);

b) printf("%10llu",x);

<h3>Explanation:</h3>

We can assign any value to x at the start of program:

For Example:

float x = 72.149;

Then in order to print exponential notation, left justified, in field size of 5 with 3 digits after the decimal point, we need to use the following format:

printf("%-5.3e",x);

where e represent exponential notation.

5 represents field size of 5 and 3 represents digits after decimal point.

In order to print x as right justified, in a 11 digit field, we need to use the following format:

printf("%10llu",x);

You might be interested in
Lee purchased a new pc from dell computer's web site. he purchased his product via a(n) ________.
olga55 [171]
A <span>direct distribution channel if I'm not wrong.</span>
4 0
4 years ago
How do you change your password on this? This isn’t really a “Question” but....
MissTica
You go to edit profile and press the change password button.  click on profile pic
5 0
4 years ago
Read 2 more answers
What type of hardware enables users to interact with a computer? Check all that apply. the CPU the hard disk drive the keyboard
valentina_108 [34]

Answer:

the keyboard

the monitor

the mouse

Explanation:

just took test

6 0
4 years ago
Read 2 more answers
I have been stuck on this lab this is my program.
Ksivusya [100]

They are using the knowledge of computational language in python to write the values ​​of the coins and the total we find that

<h3>Writing code in python      </h3>

<em>quarters = int(input())</em>

<em>dimes = int(input())</em>

<em>nickels = int(input())</em>

<em>pennies = int(input())</em>

<em>cents = (quarters*25 + dimes*10 + nickels*5 + pennies)</em>

<em>#convert cents to dollars</em>

<em># 1 dollar = 100 cents</em>

<em># n cents = n/100 dollars</em>

<em>dollars = cents / 100.00 </em>

<em>#Print the amount in dollars upto two decimal places</em>

<em>print("Amount: $"+"{:.2f}".format(dollars))</em>

See more about python at brainly.com/question/18502436

#SPJ1

5 0
2 years ago
State five uses of building​
jekas [21]
Housing, warmth, shelter, to flex on others and pleasure

Hope this helped, but I doubt it(╹◡╹)
8 0
3 years ago
Read 2 more answers
Other questions:
  • In a database list, fields are displayed as _____. rows columns tables records
    10·1 answer
  • What process does a system use to officially permit access to a file or a program CIS 502 ?
    11·1 answer
  • Mention<br>any<br>5<br>indicators of<br>happiness​
    11·2 answers
  • What is interest? How does interest affect credit card purchases?
    11·1 answer
  • What type of light is commonly used by a plate making unit to expose plates
    8·1 answer
  • Ok.,so i have a sopitify account and by accident i pressed the downlaod on button and it says start you free trial i pressed tha
    11·2 answers
  • What does digital mean, in the term of computer science.
    11·1 answer
  • In your opinion, why did Proponents<br>of IPs used IPV6 instead of IPv5​
    7·1 answer
  • Compound conditions require a computer to sense whether multiple conditions are true or false.
    9·1 answer
  • Update thejavafile names to include your initials at the end, send .java file only.1. Completein-place heapSort, which takes an
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!