Does the program use any global variables

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

ACS130 Introduction to Systems Engineering and Software C Programming - The University of Sheffield

Programming Project

Assignment briefing: This assignment will assess your ability to solve a problem using C as a tool. Your program must be well laid out and commented, including a meaningful header comment. Your program must provide meaningful interactions with the user. You must also use all of the following C programming elements:
• selection (if or switch case),
• repetition (for or/and while or/and do while)
• at least one function with an array of struct in the input parameter list; the array of struct is declared in main (or another function) and this function must set values in the array of struct, and the calling function (main or other) must make use of the array of struct on return (you choose whether to pass by value or pass by address)
• at least one function with a pointer to a variable of type char, int, float or double in the parameter list; the function must set the contents of the variable, and the calling function (main or other) must make use of the variable on return
• your program needs several instances where the user must input commands from the keyboard in order to interact with the program
• your program must loop to the start allowing the user to run through the program time after time (this is an independent requirement from the second point to use repetition)
Optional:
o you can create other functions and/or structures so as to modularise your code (but you must have the 2 functions mentioned above).
o you can use anything else we have covered in this module, eg, arrays/strings, an input and/or output file

Component

Does the program use any global variables? Does the program use while(1) loop/s? Does the program use break (other than in switch case), go to, jump,
continue etc
Program layout and commenting:
• Meaningful header comment (including a detailed description of code)
• sufficient comments interspersed within code
• Good indentation
• Meaningful variable names
Marks available for executing program only:
Is there sufficient interaction between user and program? Yes/No Interaction with the user
The user needs to be able to interact several times with the program.
• Is the user given prompts to enter any information that is needed from the keyboard?
• Is the information displayed to the user easy to understand, including any required ranges?
• Does the program loop to start?
Use of function(s), with array of struct in parameter list:
Does the program use at least one function with an array of struct included in the parameter list? Eg struct Books B[3] Yes/no
• Declaring the array of struct in main or other calling function (not in the called function).
• Setting some values within the array of struct from inside the function.
• Using (on return from the function) values in the array of struct in main or other calling function.
-> notation as an alternative to dereference and dot notation is allowed.
Use of function(s), with pointer variable in parameter list:
Does the program use at least one function with a pointer to a variable (not an array) of type char, int, float, double, struct (not the same as previous function) in the parameter list? Yes/no
• Declaring the variable in main/calling function (not in the called fn)
• Setting the contents of the variable from inside the function.
• Using (on return from the function) the variable in main or other calling function.
Does the program work with a variety of disparate inputs, without malfunctioning? (i.e. is code debugged and tested thoroughly)
Please test the following:
• Inputting out of range numbers (including boundary values, massively too small/large, zero, negative/positive, entering a char instead of an int) at every instance
• Inputting the wrong thing, eg, it asks for a char and you supply an int
• If using an input file: Program must inform user and exit if file not found.

In each case, the program should allow re-input, or a message should be given to alert the user to problems such as missing files.
Complexity of code*
Efficiency of code**
Explanation of code
Is IDE Codeblocks, DevC++ or Xcode? If not, -5 marks.
Do we need to use an alternate file (ie, not the .c file submitted) for marking?

Attachment:- Programming Project.rar

Reference no: EM133133203

Questions Cloud

Does a relatively higher deductible increase : Does a relatively higher deductible increase, decrease, or not affect a plan's actuarial value?
Interpret the price elasticity of demand for e-cigarettes : 1. Interpret the price elasticity of demand for e-cigarettes by answering the following. If the price of e-cigarettes rises by 1%, by how much with the quantit
Ongoing learning opportunities to develop knowledge-skills : Explain the importance of engaging in ongoing learning opportunities to develop knowledge and skills based on local and state standards.
Record the journal entries for the transactions : RJD Corporations had the following authorized capital on December 31, 2020: 10,000 shares of $100 par value, Record the journal entries for the transactions
Does the program use any global variables : Does the program use at least one function with a pointer to a variable (not an array) of type char, int, float, double, struct
Reproductive anatomy and physiology : Teaching sex education can be challenging because of the breadth and range of possible topics, Reproductive anatomy and physiology
Determine what process is for conducting research : Determine what the process is for conducting research in your district/organization and describe it here (not Nova Southeastern University's process,
Promote school-organization strategic plan : The student will develop methods to utilize the media and promote a school/organization's strategic plan.
Method of interpreting scripture is now repudiated : Define allegorization and show why this long-used method of interpreting Scripture is now repudiated.

Reviews

len3133203

4/26/2022 10:59:56 PM

Please make the code extremely simple .Also create a word document as I have a 1 to 1 viva to do to demonstrate the code so I NEED TO KNOW WHAT YOU DID. So I want you do explain everything, the process and methods used in the code, how and why you wrote the code this way. the number of lines of code, you can write as much code as you want upto 350 lines but less than 400 lines Please make sure your code runs and it must run on Codeblocks or XCode if using a Mac.

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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