Explore BrainMass
Share

C program to extract month and day from input date string

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Write a C program that accepts a month and day (for example, June 14) from the keyboard as input. Store this information in a string called date. Call a function named separate() passing in the string date and the addresses of a tempmonth array and tempday integer. The separate() function should extract the two values from the passed string and store them into the passed variable addresses. Back in main, print the data in tempmonth and tempday.

© BrainMass Inc. brainmass.com October 17, 2018, 3:23 am ad1c9bdddf
https://brainmass.com/computer-science/arrays/c-program-extract-month-day-input-date-string-419991

Solution Preview

Please find attached a solution (419991.c) that makes use of sscanf function to separate the month and day from user entered string. Separation can be done in many different ways; since ...

Solution Summary

Attached program makes use of sscanf function to separate the month and day from user entered string, however solution also suggests some more ways to achieve the goal.

$2.19
Similar Posting

Executive Report and Discuss SQL

Tom Ashton started Ashton Manufacturing Inc (AMI) several years ago. The Company has grown quickly from a small operation to the mid-sized organization it is today. AMI has an opportunity to take on an additional customer. This arrangement will allow AMI to grow to a large organization operating nearly 24 hours a day / 7 days a week.

Recently AMI has been experiencing significant downtime due to a failing software application written for AMI when the company started. This Access database application is responsible for a key manufacturing process.

Mr. Ashton and his investors are concerned the Company can not grow until the technical infrastructure is in place and functioning properly. AMI has limited funds for IT endeavors but has hired your consulting firm seeking advice.

Objective:

Prepare an executive summary including your recommendations to repair or replace the application. Support this summary with a research paper which contains the details behind the summary.

Start by researching Microsoft Access and other prominent RDBMS such as MS SQL Server, Oracle and My SQL. Compare and contrast these systems based on key features such as scalability, ease of implementation (development and support), performance, security and price.

Include a discussion on SQL:

What is SQL?
Who owns SQL?
What are some of the differences in the SQL supported by RDBMS vendors?

View Full Posting Details