Answer:
using System.IO;
using System;
class FineForOverdueBooks
{
static void Main()
{
Console.WriteLine("Enter the number of books user checked out: ");
int books = Convert. ToInt32(Console.ReadLine());
Console.WriteLine("Enter the number of overdue days: ");
int days = Convert. ToInt32(Console.ReadLine());
DisplayFine(books, days);
}
public static void DisplayFine(int books, int days) {
double amt = 0;
int d = days;
if(days>7) {
amt = (days-7) * .20 * books;
days = 7;
}
if(days > 0) {
amt = amt + days * .10 * books;
}
Console.WriteLine("The fine for {0} book(s) for {1} day(s) is {2}", books, d, amt);
}
}
Explanation:
Answer:
See explaination
Explanation:
class Counter:
def getValue(self):
return self._value
def undo(self):
if self._value > 0:
self._value = self._value - 1;
def click(self):
self._value= self._value + 1
def reset(self):
self._value= 0
tally= Counter()
tally.reset()
tally.click()
tally.click()
result = tally.getValue()
print("Value:", result)
tally.click()
result = tally.getValue()
print("Value:", result)
tally.undo()
tally.undo()
result = tally.getValue()
print("Value:", result)
tally.undo()
tally.undo()
result = tally.getValue()
print("Value:", result)
All of the above
you can access all of these from an excel start screen
Answer:
HTML attributes are special words used inside the opening tag to control the element's behavior. HTML attributes are a modifier of an HTML element type. An attribute either modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them.
Explanation:
The way to determine if a name is a variable holding a value or if it is a function call is by:
- Instance variables are prefixed with self.
<h3>What is this call about?</h3>
A function call is known to be a kind of an expression that has the function name which is said to be accompanied by the function call operator, () .
Note that The way to determine if a name is a variable holding a value or if it is a function call is by:
- Instance variables are prefixed with self.
See full question below
How do you determine if a variable in a method is an instance variable for the class?
a) Instance variables have leading underscores in their names.
b) Instance variables are prefixed with self..
c) Instance variables start with a capital letter.
d) all of the above
e) none of the above
Learn more about function call from
brainly.com/question/15071685
#SPJ11