Question: When you distribute information you found from another source, you must always cite your source. The MLA format for a formal citation for a book

When you distribute information you found from another source, you must always cite your source.

The MLA format for a formal citation for a book is as follows:

Last name, First name of author. Title of the Book. Publisher, Year of publication.

Write a citation generator. Your program should ask for

  • The author's name in the form "Last Name, First Name"
  • The title of the book
  • The publisher
  • The date the book was published

Then print out the information in the format shown above. Pay attention to the periods and commas!

Starter code:

import java.util.Scanner;

public class Main { public static void main(String[] args) { // Start here! } }

Submit a screenshot of your code and output for grading.

Here is an example output:

Enter the author's name as 'Last name, First name': Collins, Suzanne Enter the title of the book: The Hunger Games Enter the publisher of the book: Scholastic Enter the year the book was published: 2008 Collins, Suzanne. The Hunger Games. Scholastic, 2008.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The Java program that generates MLA citations for books based on the provided input i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!