Skip to content

Instantly share code, notes, and snippets.

View supersajjin's full-sized avatar

Carlos supersajjin

View GitHub Profile
@supersajjin
supersajjin / Gradebook.h
Last active December 19, 2019 14:50
FINAL
#include <iostream>
#include <string>
using namespace std;
class Gradebook {
public:
explicit Gradebook(string name)
: courseName(name)
{
@supersajjin
supersajjin / question_8_10.cpp
Created November 28, 2019 07:29
HOMEWORK 12
#include <iostream>
using namespace std;
//a) Write the function header for function zero that takes a long integer built - in array
//parameter bigIntegers and does not return a value.
void zero(long bigIntegers[]);
//c) Write the function header for function add1AndSum that takes an integer built - in array
//parameter oneTooSmall and returns an integer.
@supersajjin
supersajjin / question_732.cpp
Created November 28, 2019 05:54
HOMEWORK 11
#include <iostream>
using namespace std;
int recursiveMinimum(int arr[], int);
int main() {
const int size = 5;
int array[size];
cout << "Enter 5 random values: \n";
@supersajjin
supersajjin / HomeWork_10.cpp
Created November 19, 2019 05:08
Homework 10
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
@supersajjin
supersajjin / Menu.cpp
Created October 26, 2019 07:08
This is a shopping menu I created. Midterm Project
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <iomanip>
using namespace std;
void listofCategories();
void verifyingCategoryPick(int);
void faceMenu();
@supersajjin
supersajjin / HomeWork_8.cpp
Created October 22, 2019 04:00
Homework 8
#include<iostream>
using namespace std;
int main() {
cout << "***************************************************************************************** \n"
<< "7.10" << endl;
@supersajjin
supersajjin / MenuUpdated.cpp
Created October 15, 2019 05:24
Homework 6: Add an int, bool, and void function to a previous HW assignment.
#include <iostream>
using namespace std;
int correction(int);
void drink(int);
bool choices(int);
@supersajjin
supersajjin / Adventure.cpp
Created October 15, 2019 02:35
Homework 5
#include<iostream>
#include<string>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
cout << "Welcome to Skippy the Cat's Adventure \n"
@supersajjin
supersajjin / HomeWork4_5.cpp
Created October 10, 2019 00:57
5.12, 5.15, 5.28, 5.37 in your textbook
#include <iostream>
#include <string>
using namespace std;
int main() {
/*5.12 Write an application that calculates the product of the odd integers from
1 to 15*/
for (int i = 1, j = 3; i <= 13, j <= 15; i += 2, j += 2) {
@supersajjin
supersajjin / MenuHW.cpp
Created September 19, 2019 12:40
Added a do-while loop to your homework 3
#include <iostream>
int main() {
int choice;
std::cout<<"Welcome to the drink menu. Please choose from the following drinks? \n"
<<"1) Pepsi \n"<<"2) Coke \n"<<"3) Water \n"<<"4) None \n"<<
"Please enter the number of your choice: \n";