subject

"write code to assign to the variable format a formatting string that will display three values referenced by the variables quantity (type int), description (type str), and unitprice (type float) in the format illustrated by: (type "_10 one-inch three-ring $.50"). the quantity is displayed right-justified in 3 print positions, the description is displayed left-justified in 30 print positions, and the amount is displayed after a dollar sign with a total of 7 print positions and two digits after the decimal point. in the example, an underscore character is used to indicate the presence of a filler space. the underscores are not part of the actual string."

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
You know the right answer?
"write code to assign to the variable format a formatting string that will display three values refe...
Questions
question
Mathematics, 24.05.2021 17:20
question
Mathematics, 24.05.2021 17:20
question
Mathematics, 24.05.2021 17:20
question
Arts, 24.05.2021 17:20
question
Mathematics, 24.05.2021 17:20
question
Mathematics, 24.05.2021 17:20
Questions on the website: 13722367