Find Jobs
Hire Freelancers

C++ Functions and Header Files

$30-5000 USD

Cerrado
Publicado hace más de 15 años

$30-5000 USD

Pagado a la entrega
This Might be a simple program, but I'm a little behind. All you have to do is use a already created .cpp file that contains functions and you will have to use them. There is also another file in the solution that will need more functions to be created to do simple calculations. There is a total of 13 tasks to complete. They are not even that long, one task can be completed with a 5-8 lines of code to complete a task I'm in a second level C++ class. Basically 2/5 of the program is complete. If you accept to do the program ALL THE TASKS MUST BE COMPLETED. The instructions are very straight forward and I will also include a gradesheet that is used to see what needs to be completed. ## Deliverables EASY TO READ PROGRAMS SPECS ATTACHED gradesheet attached program to work off attached remember dont modify [login to view URL] file Lab3 -Page 1 of 4 CST 150 Lab 3 Create a C++ project using MS Visual Studio NET 2005. Use the handout, Creating and Opening a Project in Visual NET 2005 to help you create a new project. Use the correct layout for a C++ program as explained in Mod 1 and the examples in Mod 1. ? For this lab, you will be solving several tasks listed below ? Use the guidelines below to help you correctly solve each task ? You will be creating one solution with all the tasks in this solution ? The solution should be named yourLastNameFirstInitialLab3 ? For the main documentation block, briefly list a collection of each task collected by the array or object ? Create meaningful variables names in the main. Collect like data type variables in blocks in the main as shown in the samples ? Solve these task in the order listed. Place the code in the main in the order list ? Include a comment above each task’s solution, identifying the task number, the loop type and the task o Example: o //Task 1 ??" Calculate the selling price for the products ? To aid in the successful completion of this lab, you should find a ZIP file which provides you with the definition of the three objects that will be used in these tasks as well as input and output functions to read and display the data for each object ? When output is requested for the results from a task, that output MUST be in its own function! ? You should print all the files given o The functions are in a separate cpp file that is attached to the project o The headers are in a separate header file that is included in the main cpp and the function cpp ? You must use the name for the function listed in the tasks below ? There should ABSOLUTELY not be any user input. The program should run with parameter values set to test values and all output should be printed to the output file, no output should appear on the screen except the “Press any key to continue…?? message ? For each function indicated create an additional output function: o Print a divider between each output o Above the output for each task, include an output statement clearly identifying the task number, the function type and the task ? Example: ? Task 1 & 2: List of products with the selling prices calculated ? You will NOT receive credit for this lab unless each and every task is solved correctly. There will NOT be any partial credit! PLEASE check your results for accuracy! ? There is extra credit tasks at the end of the required 10 tasks, you may solve any or all of the extra credit tasks for the bonus points listed with the task and on the grade sheet ? PLEASE remind when you ask a question in the discussion, it does help to state the task number BUT you should always briefly phrase the task so I have some idea of the task without locating the lab papers. Lab3 -Page 2 of 4 1. Create a single return inline function, CalculateSellingPrice for the ProductStruct A. This function should calculate the selling price of ONE product from the array of products B. The selling price is a 25% markup from the cost i. For example: if the cost is $50.00, then the selling price is $75.00 C. This function will be called from the next task function, SetSellingPrices 2. Create a function, SetSellingPrices for the array of ProductStruct A. This function should set the selling prices of each product in the array of structs for those structs that have valid data read into them B. Uncomment the output of the selling price in the output function required i. Adjust the Columned labels as needed ii. Call the function to output the array of products including the selling price 3. Create a function, MajorityPassed for the ExamStruct A. This function should determine if more students passed both of the exams in the ExamStruct i. For example: if 15 students took exam 1 and 8 received a grade greater than 60 AND the same 15 students would have taken exam 2 and if at least 8 passed exam2 then true is returned B. Output the result of the test with an appropriate message 4. Create a function, CalculateAverages for the ExamStruct A. This function should calculate and return the average grade on each exam i. It should return BOTH averages to the main B. Output the results with appropriate labels for the averages 5. Create a function, SetReorderList for the array of ProductStruct A. This function should create an array of the positions, reorderPositions from the array of ProductStruct where the quantity on hand is equal to or less than 500. i. For example: if the product in position 2 of the array of ProductStruct is white paper and the quantity on hand is equal to 500 then in position 0 of the reorderPositions array store 2 6. Create a function,PrintReorderList for the array of ProductStruct A. This function should print a list of names, id and current quantities on hand from the array of reoderPositions i. Print a column report with a heading label above each column 7. Create a function, CalculateRangeOfElements for the array of ints, list A. This function should calculate and return the lowest value and the highest value in the array of ints. i. The lowest and highest variables should be passed by address into and out of the function 1) Reference page 235-236 of your textbook B. Print the addresses and values of the variables clearly labeled Lab3 -Page 3 of 4 8. Create a function, RemoveStudent for the ExamStruct A. This function should remove from the exam arrays the exams at the int position passed in. i. This function should have a default parameter for the removalPosition of 0 1) Reference page 245-247 of your textbook 2) REMEMBER you will have to move all elements after the removal position “up?? 3) REMEMBER to change the tag field for the array when you successfully remove exam grades 4) REMEMBER to test that the removalPosition passed in is in the valid range for a position in the array that have valid values before removing A) If the removalPosition is not valid, print a message to the output file, stating the attempted removalPosition, the current NumberOfStudents in the arrays in the structure 5) I should NOT have to tell you all these REMEMBER statements as they should be obvious! ii. Test this function, first with the default parameter value iii. Test this function, second with 5 iv. Test the function, third with 18 v. If a removal is completed, output a message stating what position was eliminated and print the remaining elements in the two arrays in the exam structure 9. Create a single return function, FirstOccurrence for the int array of list A. This function will search for a particular value passed in by address and return by address the first position that the value occurred in, return a -1 if the value is not found B. Test this function with the following values: i. -3 ii. 99 C. For each search, output the search value and the position ??" the addresses and the values - clearly labeled 10. Create a single return function, FirstOccurrence for the ProductStruct A. This function will search for a particular id passed in by address and return by address the first position that the value occurred in, return a -1 if the value is not found B. Test this function with the following ids: i. 99 ii. 12 C. Output the search value (address and value) all corresponding members for this id and the position ( address and value) - all clearly labeled Lab3 -Page 4 of 4 BONUS FUNCTIONS (Limited hints/advice will be given for the bonus functions) 11. Create a function, RangeList for the list of integer numbers A. This function will create and return a list of indices where the value falls within a range specified in the call to the function. i. This list of indices will be stored in an array of int B. The range values will have default parameter values of 50 to 80 i. Range values are inclusive C. Test the function with the default parameter values D. Test the function with 20 to 40 E. Print the indices and the list values in a two columned report for each range of values 12. Create a function,DigitCount for the ExamStruct A. This will create an array of counts based on the number of times each digit occurred i. Digits are 0 to 9 ii. Values less than 10 should be considered to have a leading digit of 0 and should be counted as such B. Print the counts of the array of digits in a columned report printing the digits and the counts 13. Create a function, PrintOrderedProducts for the ProductStruct A. This function should print columned list of products in order by id number without “sorting?? the array of structs. B. Efficiency does count! You will not receive credit for this if your solution is not efficient. C. Think about this. There is one simple approach to this that will require 2 passes through the array of structs. 14. Add all your function prototypes, calls and definitions in the main 15. An Excel Grade sheet can be found on the website that shows the breakdown of the grading for this exercise. Use this to make sure that you have met all the specifications and requirements. 16. Ask questions in class or in the discussion online. Do not wait until the last minute to create this project! 17. ZIP the entire project folder and submit this correctly named zip file through WebCT by the date and time specified on the course outline.
ID del proyecto: 3374935

Información sobre el proyecto

12 propuestas
Proyecto remoto
Activo hace 15 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
12 freelancers están ofertando un promedio de $34 USD por este trabajo
Avatar del usuario
See private message.
$32,30 USD en 2 días
5,0 (280 comentarios)
5,7
5,7
Avatar del usuario
See private message.
$42,50 USD en 2 días
4,9 (90 comentarios)
5,3
5,3
Avatar del usuario
See private message.
$34 USD en 2 días
4,8 (22 comentarios)
3,7
3,7
Avatar del usuario
See private message.
$25,50 USD en 2 días
4,5 (47 comentarios)
3,7
3,7
Avatar del usuario
See private message.
$21,25 USD en 2 días
4,9 (5 comentarios)
2,7
2,7
Avatar del usuario
See private message.
$12,75 USD en 2 días
5,0 (5 comentarios)
1,4
1,4
Avatar del usuario
See private message.
$38,25 USD en 2 días
5,0 (2 comentarios)
0,8
0,8
Avatar del usuario
See private message.
$42,50 USD en 2 días
5,0 (3 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$42,50 USD en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$51 USD en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$25,50 USD en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$42,50 USD en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$29,75 USD en 2 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
United States
0,0
0
Miembro desde nov 8, 2008

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.