Explore BrainMass

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 25, 2018, 5:26 am ad1c9bdddf

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.

See Also This Related BrainMass Solution

Develop database tables using a relational database system

This is the problem:

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.


Prepare a 1-page 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