Skip to content

Instantly share code, notes, and snippets.

@DaliaDom
DaliaDom / FinalQuestions 6-10 and Question 2
Last active December 26, 2019 15:08
I don't own visual studios, so I wrote everything directly on gist. I'm sorry if something turned out weird.
Question 2
#include "stdafx.h"
#include <iostream>
using namespace std;
int main() {
//PART 1
// define & initialize the following variables: 1. unsigned short
unsigned short bob = 2;
@DaliaDom
DaliaDom / FinalExam
Last active December 19, 2019 14:47
//Question 1
#include "stdafx.h"
#include <iostream>
#include <array>
using namespace std;
int main() {
int x = 7;
int xPtr = x;
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
//Question 8
// the following program is supposed to calculate the average number of hours studied
// FinalExam Q1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <array>
using namespace std;
int main() {
int x = 7;
// FinalExam Q1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <array>
using namespace std;
int main() {
int x = 7;
// FinalExam Q1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <array>
using namespace std;
int main() {
int x = 7;
// FinalExam Q1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <array>
using namespace std;
int main() {
int x = 7;
// FinalExam Q1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <array>
using namespace std;
int main() {
int x = 7;
// 8.10 HW#10
a) void zero(long biIntergers[])
b) void zero(long []);
c)int add1AndSum(const int oneTooSmall[], int size)
d) int add1AndSum(const int[], size);
//HW 7.32
#include<iostream>
#include<array>
using namespace std;
void num(int array[ ], int size);
int main()
{
const int ARRAY_SIZE = 9;
int numbers[ARRAY_SIZE] = { 25, 15, 5, 10, 0, 35, 20, 30, 40 };