![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 14.05.2021 06:10 krog79
C#
1. Create a new class called StandardSale
2. Add three private fields to the class:
_salesDate, a DateTime
_amount, a double
_quantity, an integer
3. Also, add properties with get and set accessors for each field, call them SalesDate, Amount, and Quantity.
In the "set" accessors, use if/else to limit Amount and Quantity to positive values and
to limit SalesDate to dates on or after 1/1/2000.
Use "else" to set Quantity and Amount to 0 and SalesDate to 1/1/2000 if the input values are invalid.
4. Add a constructor so that all three fields can be populated when a StandardSale object is instantiated.
5. Add a method called TotalSale that returns _amount * _quantity as a double.
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 13:00
If you add the following to the query grid in an access query, what is it called? salestaxamt: [salestaxrate]*[totalsale] formula calculated field total calculation
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 17:40
Which of the following processes applications across multiple computing devices? a. functional application b. distributed system c. workgroup information silo d. information silo
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 05:00
Craig keeps missing important staff meetings and getting double-booked for appointments. craig should use scheduling software a database diagramming software a word processor
Answers: 1
You know the right answer?
C#
1. Create a new class called StandardSale
2. Add three private fields to the class:
...
2. Add three private fields to the class:
...
Questions
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 23.06.2019 05:30
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)