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
Zepler [3.9K]
3 years ago
10

Complete main() to read dates from input, one date per line. Each date's format must be as follows: March 1, 1990. Any date not

following that format is incorrect and should be ignored. Use the substring() method to parse the string and extract the date. The input ends with -1 on a line alone. Output each correct date as: 3/1/1990.
Ex: If the input is:

March 1, 1990
April 2 1995
7/15/20
December 13, 2003
-1
then the output is:

3/1/1990
12/13/2003
Computers and Technology
1 answer:
Airida [17]3 years ago
3 0

Answer:

Explanation:

The following code uses the requested method and while loop in order to continue asking the user for inputs until the -1 input is passed and the program ends, outputting the correct format dates. Due to technical difficulties I had to add the code as a txt file attached below. The picture below shows the output of the code as requested using the test inputs provided.

Download txt
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark"> txt </span>
ec9086bcbf2547784f036fbb9d68eba1.jpg
You might be interested in
kieran wants to search a database quickly for information on the last time a patient came to his medical facility.The informatio
Anna11 [10]

if he presses f3 it will pull up the find bar (this is for Dell

4 0
4 years ago
Read 2 more answers
How do careers of firefighters and police officer death fire in what ways are they similar​
Reil [10]

Answer:they both save lifes

Explanation:

and mistakes are costly and life risking

4 0
3 years ago
Rob is planning his housewarming party. He wants to design an invitation and personalize it for each invitee. He needs to create
lara31 [8.8K]

Answer:

1: Word Processor

2: Graphics Software

3: Mail Merge

Explanation:

Given

1. Create a list of invitees

2. Design an invitation card

3. Personalize the card

Creating a list of invitees is a task that requires basic activities such as typing, using of numbers and bullets; these activities can be achieved using word processing software programs such as Microsoft Word, WordPerfect, amongst others.

<em>So task 1 requires a word processor</em>

An invitation card is a piece of graphics that can be perfectly handled by graphics software programs such as CorelDraw, Adobe Photoshop, etc.

<em>So task 1 requires a graphics software</em>

Task 3 can be achieved using mail merge and this is because mail merge can be used either to print or to mail recipients. While mailing the recipients, one can easily personalize each letter (or in this case, an invitation card) to suit the recipient it is being directed to.

5 0
3 years ago
. What is the difference between subnetting and supernetting?
Greeley [361]

Answer:

Subnetting is when a large network is divided into small networks and supernetting is when small networks are combined into a large network.

Explanation:

Subnetting is the inverse process of supernetting. Subnetting is about partitioning a network into several smaller sub-networks to decrease address depletion. Supernetting is to merge various networks into a single one to fasten the routing process.

5 0
3 years ago
a) consider the binary number 11010010. what is the base-4 representation of (11010010)2? (there is a way to do this without con
loris [4]

The place value can be used to convert a binary number, such as 11010010, into decimal form: 11010010 = 1 x 27 + 1 x 26 + 0 x 25 +1 x 24.In light of the aforementioned, the base-4 number system has 4 digits: 0, 1, 2, and 3. Any 2-bit number can be represented by a single base-4 integer since a 2-bit number can only represent one of the values 0, 1, 2, or 3.

<h3>What does base 4 mean?</h3>
  • Base-4 is a quaternary  number system. Any real number is represented by the digits 0, 1, 2, and 3.
  • In light of the aforementioned, the base-4 number system has 4 digits: 0, 1, 2, and 3. Any 2-bit number can be represented by a single base-4 integer since a 2-bit number can only represent one of the values 0, 1, 2, or 3.
  • The four digits of Quaternary (Base 4) are 0 through 3.
  • Binary code 4 is 100. In a binary number system, we only use the digits 0 and 1 to represent a number, as opposed to the decimal number system, which uses the digits 0 to 9. (bits).

To learn more about Quarternary number system refer to:

brainly.com/question/28424526

#SPJ4

7 0
1 year ago
Other questions:
  • The sound cards is a digital to____________ converter.
    11·1 answer
  • Which of the following are potential drawbacks to the Internet in regard to politics? Select all that apply. Overexposure of can
    10·2 answers
  • Monochrome refers to the use of one color in various shades and tints
    6·1 answer
  • Djdjdjdjdjdjdjdjdjjdjdjdjdjdjdjdjdjdjdj
    13·2 answers
  • Explain why it might be more appropriate to declare an attribute that contains only digits as a character data type instead of a
    11·1 answer
  • Which formulas would work to combine cells with first, middle, and last names from columns A through C and row 2 into a new cell
    14·2 answers
  • 14. Which of the following statements is true? A. The most secure email message authenticity and confidentiality isprovided by s
    11·1 answer
  • WILL GIVE BRAINLIEST
    15·1 answer
  • Which of these is not enumerated as a motivation to create accessible web content?
    10·1 answer
  • Help me with this someone hurry due in 8 mins
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!