Git Product home page Git Product logo

Michael A Luna's Projects

ece3310 icon ece3310

ECE3310 - Data Structures and Algorithms with Menglai Yin

hw_3_cs150 icon hw_3_cs150

Create four functions for addition, subtraction, multiplication, and division that each accept an array of doubles (remember that arrays are always passed by reference without needing an &) as well as an operand of type double passed by value. Each function will perform its’ operation on each element of the array using the operand.Example: Operation is addition, array contents are [2.5, 4.5, 6.5, 8.5, 10.5], operand is 7, the array would be changed to contain [9.5, 11.5, 13.5, 15.5, 17.5].Hint: Remember that arrays are always passed by reference, so your return types for these functions should be void.Create a fifth function that prints the contents of the array to the screen, one element per line. This function should accept an array of doubles as its’ only argument. The print function should not modify the contents of the array in any way – declare the parameter as const to ensure that this is the case (note that you could not do this with the four other functions since they need to modify the array). The print function should also return void.In main ask the user to enter the values to store in the array. Print the array using your print function. Have the user select an operation to perform on the array by typing +, - , * or /, then enter an operand. Perform the given function on the array using the given operand and then print the array contents using your print function again.Use a global int constant for the size of the array – set it to 5. If the global constant is changed in the code your program should still work properly.Make sure nothing in your code results in junk values or causes a segmentation fault.

max-pairwise-product icon max-pairwise-product

In this programming challenge, your goal is to implement a program that works in less than one second even on huge datasets. In section Maximum Pairwise Product of the file week1_programming_challenges/week1_programming_challenges.pdf we walk you through a step-by-step process of solving this challenge.

temperature-sensor icon temperature-sensor

Final lab for the Electrical and Computer Engineering Introduction to Microcontrollers

titanic_ml icon titanic_ml

This is the legendary Titanic ML competition – the best, first challenge for you to dive into ML competitions and familiarize yourself with how the Kaggle platform works. The competition is simple: use machine learning to create a model that predicts which passengers survived the Titanic shipwreck.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.