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
rosijanka [135]
3 years ago
9

Create an application for a library and name it FineForOverdueBooks. TheMain() method asks the user to input the number of books

checked out and the number of days they are overdue. Pass those values to a method named DisplayFine that displays the library fine, which is 10 cents per book per day for the first seven days a book is overdue, then 20 cents per book per day for each additional day. The library fine should be displayed in the following format:
Computers and Technology
1 answer:
user100 [1]3 years ago
7 0

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:

You might be interested in
Jacobson furniture pseudo-code
romanna [79]

Answer:

We need to add four labels Taxable Income, Tax rate, total tax, and Total Due. And in front of them, you can add four textBoxes, or labels or as required.

The Tax rate is 5%.

And

Explanation:

BtnCalc_Click will calculate and display in lblTax

double tax = Convert.ToDouble((textBox1.Text)) * 5/100;

double Roundedtax = Math.Round(tax, 2);

textBox2.Text = Convert.ToString(Roundedtax);

textBox2.Show();

// we can use lblTax instead of textBox2. The further code will be almost change, and we need to use lblTax label instead of textBox2.Text.

BtnCalc_Click will calculate and display in lblTotal

textBox3.Text = Convert.ToString(Convert.ToDouble(textBox1.Text) + Convert.ToDouble(textBox2.Text));

textBox3.Show();

//This is lblTotal or the total Tax. We can use lblTotal label instead of the textBox3.Text.

BtnExit_Click will end the application:

Use this code in this method.

this.Close();

// This closes the application immediately on click on the Exit button.

5 0
4 years ago
The term platform as a service has generally meant a package of security services offered by a service provider that offloads mu
Stells [14]

Answer:false

Explanation:

8 0
3 years ago
Greg works for an online games development company. He is not a net freak, but occasionally he visits online literature sites an
sweet-ann [11.9K]

Answer:

i think its A

Explanation:i hope i helped

5 0
3 years ago
A print server uses a print ________ as a software holding area for jobs waiting to be printed.
vichka [17]

Answer:

spooler

Explanation:

A print server uses a print spooler as a software holding area for jobs waiting to be printed.

8 0
3 years ago
Read 2 more answers
Question 2 Multiple Choice Worth 5 points)
Finger [1]

Answer:

Answer:much faster than Humans can

4 0
3 years ago
Other questions:
  • Store shelves are empty during periods of Excess Demand. What is another term for Excess Demand?
    8·1 answer
  • What causes the lens of the camera to extend or retract
    6·2 answers
  • Write a recursive, int-valued method named productOfOdds that accepts an integer array, and the number of elements in the array
    10·1 answer
  • CHALLENGE ACTIVITY 2.15.1: Reading and outputting strings. Write a program that reads a person's first and last names, separated
    11·1 answer
  • A group of computers that are interconnected order to share information or document is called a
    12·2 answers
  • Network ____ specify the way computers access a network. a. wires b. files c. standards d. instructions
    13·1 answer
  • You cannot then move and resize the control on the form as desired with your mouse TRUE OR FALSE​
    6·2 answers
  • Which of the four factors of production are hit the hardest when high unemployment occurs ?
    10·1 answer
  • Consider the following code segment:
    12·1 answer
  • A _______ is a group of elements that you want to style in a particular way.
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!