How can you break the main method

Assignment Help C/C++ Programming
Reference no: EM131229163

In this assignment, we will still work on our main.c file that we used in assignment 0. So far we have been working with the code all on one file which is not a good programming practice. What we want to do in this assignment is we want to break our main file into three files: interface, client, and implementation. What you will need to decide the following:

- There is no functions in the main file we have, only the main method, how can you break the main method into smaller ones, each specific for a certain task? What name are you going to use for these methods? what would be the input for the methods?

- Based on how you are going to break the main into smaller methods, create your interface to include the method prototype

- Remaining is the client. Connect your methods and call them in the correct order to obtain the same behavior we had before for the main.c file.

Things to consider while programming:

- No global variables are allowed

- For the method parameters, chose only the ones that need to be sent. If a parameter only needed by a single method, then it has to be a local variable to this method.

What you need to submit:

- The interface, implement, and client files, including fully document code explaining what every method does

- In addition, similar to assignment 0, you need to include a block comment that includes your name and the program version

- README file explaining what you did.

- Compress all the files together and submit through blackboard

Attachment:- main copy.rar

Reference no: EM131229163

Questions Cloud

Companies improve the security of online classifieds : Security of Online Classifieds Web Pages How are the companies in this business protecting their users from such assaults, and how can these companies improve the security of online classifieds?
About legal environment of business-business organizations : This project requires you to identify and analyze legal issues and to make recommendations based on one or more fact patterns. The issues will relate to the concepts covered in weeks 1, 2, and 3 about the legal environment of business and business or..
Globally sources at least one material or service : If your organization or one with which you’re familiar globally sources at least one material or service, please (a) describe the item being sourced and its importance to the organization and (b) why they are sourcing it globally, i.e. low cost, clos..
Examine causes and consequences of international trade : ECO 4703. Examine causes and consequences of international trade. We will use both the core and new models of international trade as a tool to understand why and how countries trade, what they trade, and who gains from trade.
How can you break the main method : What we want to do in this assignment is we want to break our main file into three files: interface, client, and implementation and
What time does the process start to lose customers : Homework - Process Flow Analysis - what time does the process start to lose customers and What is the longest possible waiting time (in minutes) for a customer who joined the queue?
Analyse the data provided by the supplier : Your task is to independently analyse the data provided by the supplier and produce a poster for the management of your company with your recommendations about commissioning the ORC
Write a matlab script to display the even component : Write a MATLAB script to Display both the even component and odd component of v(t) in window 2 by using subplot. Verify if the system y(t) = sit(t) is time-invariant by displaying x1(t) = v(t), y1(t), x2(t) = v (t - 2), and y2 (t) ) in window 3,
Complete frame for transmission : In the CRC error detection scheme, the chosen pattern is P(x) = x 4 + x + 1. Given the message bits D=10010011011, determine the FCS bits to be added to make the complete frame for transmission.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Prepare a program for a retail-mart company

Prepare a program for a company Retail-Mart.

  Write cpp program that is menu-driven that allows for choice

Write a C++ program that is menu-driven that allows for the following menu choices: Load an exam: Loading an exam should prompt the user for an exam file.

  Write a menu-driven program that maintains an address book

Write a menu-driven program that maintains an address book using a linked list. The address book must supports the following operations

  Give students practice in writing and calling their function

To give students practice in writing and calling their own functions. To give students practice in implementing and planning complex programs.

  Calculate the trajectory of a soccer ball

Write a program to calculate the trajectory (flight path) of a soccer ball

  Create a text-based, menu-driven program

Create a text-based, menu-driven program that allows the user to choose whether to add, subtract, multiply or divide two numbers. The program should then input two double values from the use

  User entry to a month value and display

Convert the user's entry to a Month value and display it.Create an enumeration named Planet that holds the names for the eight planets in our solar system, starting with MERCURY and ending with NEPTUNE.

  Design a new class c non-routable network

Design a new Class C non-routable network

  What are a class and a structure?

What are a class and a structure?

  Develop a program for an auto dealership

You are to develop a program for an auto dealership. This program will keep track of the auto inventory using an array of objects. The dealer has a limit of 100 cars in inventory at one time due to space restrictions. The class used to instantiate..

  Write a program to simulate lines in a grocery store

Write a program to simulate lines in a grocery store. We want to determine what line configuration is best

  Function declare that it can throw an ioexception

Every C++ function that performs file I/O will thus need to either declare that it can throw an IOException, or contain a try-catch-finally block to deal with it. Response?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd