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

  Questionnbspnbspi have a product called neverwet that

questionnbspnbspi have a product called neverwet that creates a hydrophobic surface on stuff. theres a base and top

  Write the definition of the member function two of yclass

Write the definition of the member function two of yClass so that the private member variable a is initialized to the value of the first parameter of two, and the private member variable b is initialized to the value of the second parameter of two..

  Consider the following function

Consider the following function:  Which of the following would be the best way to call this function?

  Prepare a pseudocode or a flowchart

I need a pseudocode or a flowchart - MUST HAVE pseudocode OR a flowchart for the problem.

  Declare and use single dimension arrays

How do you declare and use single dimension arrays? How do you perform basic sort and search routines on arrays?

  Write a function that will return the area of a trapezoid

Write a function that will return the area of a trapezoid - Write a function that will return the perimeter of a trapezoid

  Allows the user to enter the coefficients for a system

Create a graphical (not text-based) Visual C++ program that allows the user to enter the coefficients for a system of four equations with four unknowns. Include a button that when clicked, will solve the system of equations and display the results in..

  Program that takes a number between

Write a program that takes a number between -121 and 121 and output that number in the format of power of 3 (1,3,9,27)example:13 = 9+3+1

  Rational class performs operations on fractions

Write a C++ program that, using the rational class performs operations on fractions. Test your class thoroughly.

  Make program using switch statements in visual basic/c++

Enter the year code, course code, number of units and output the year name, course name, tuition fee and the balance tuition fee of the student.

  Train traveling in terms of minutes

Write a code for the following C++ problem. We will have a user that will be asked to input the time of a train traveling in terms of minutes and these minutes is a non-negative integer.

  What is the key for table t

Please indicate which record can be added into table T without violating any of the functional dependencies in F. If the record or row cannot be legally added, please indicate which functional dependency is violated.

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