Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › can someone give me some "homework" to do in C++?
New Posts  All Forums:Forum Nav:

can someone give me some "homework" to do in C++? - Page 2

post #11 of 31
You want some classic algorithm problems?

Create an application that can figure out what the n-th Fibonacci number is.

Create an application that can show the steps to solving the Towers of Hanoi with n rings.

If you want some more technical knowledge instead, try and code a Windows GUI application using MFC/WinAPI that lets you select a person's name from a drop-down box, and depending on the name, displays that person's phone number in a text box. Then code it to retrieve the numbers from an SQL database.


Edit: NVM, if you're at the 101 level I don't think you'll be able to do any of this quite yet tongue.gif
Server
(11 items)
 
  
CPUMotherboardRAMHard Drive
Intel Core i5-3470 ASRock Z77 Extreme6 16 GB G.Skill Sniper DDR3-1600 1TB WD Caviar Black 
Hard DriveCoolingOSCase
4TB WD Caviar Red Cooler Master Hyper 212+ VMWare ESXi NZXT Crafted Series Tempest 410 
OtherOtherOther
LSI 9280-16i4e RAID Card Intel I350 Quad Port Gigabit NIC Intel Pro/1000 PT Dual Port Gigabit NIC 
  hide details  
Reply
Server
(11 items)
 
  
CPUMotherboardRAMHard Drive
Intel Core i5-3470 ASRock Z77 Extreme6 16 GB G.Skill Sniper DDR3-1600 1TB WD Caviar Black 
Hard DriveCoolingOSCase
4TB WD Caviar Red Cooler Master Hyper 212+ VMWare ESXi NZXT Crafted Series Tempest 410 
OtherOtherOther
LSI 9280-16i4e RAID Card Intel I350 Quad Port Gigabit NIC Intel Pro/1000 PT Dual Port Gigabit NIC 
  hide details  
Reply
post #12 of 31
Quote:
Originally Posted by jonespwns View Post

I am not even in a C++ class. I'm doing this solo till I am back in a college town. But first class book thing would probably be the best lol.

I'll look for a PDF to post from my first class, I think everything was printed out in my first class but I might have a PDF somewhere. I have all the PDFs from my current class and previous class but they might be too hard because the second class dealt with a lot of arrays then linked lists and classes/structs.
    
CPUMotherboardGraphicsGraphics
Core i7 930 @ 4004Mhz 1.29 V Gigabyte GA-X58A-UD3R XFX Radeon 6970 nVidia 8800GTX 
RAMHard DriveOptical DriveOptical Drive
G. SKILL 6GB 1333Mhz @ 1455Mhz OCZ Vertex 3 120GB / Seagate 500GB Lite-On DVD-RW TSSTcorp DVD/RW 
CoolingOSMonitorMonitor
Prolimatech Megahalems Windows 7 x64 Professional Samsung S24A350H Dell 20" LCD 
MonitorMonitorKeyboardPower
MAG 17" LCD Samsung 50" Plasma  Focus FK-2001 Mechanical Corsair TX750 
CaseMouseMouse PadAudio
Cooler Master Storm Scout (Modded) Razer Abyssus Disney's Mickey Mouse with circuits JVC MX-GT700 
  hide details  
Reply
    
CPUMotherboardGraphicsGraphics
Core i7 930 @ 4004Mhz 1.29 V Gigabyte GA-X58A-UD3R XFX Radeon 6970 nVidia 8800GTX 
RAMHard DriveOptical DriveOptical Drive
G. SKILL 6GB 1333Mhz @ 1455Mhz OCZ Vertex 3 120GB / Seagate 500GB Lite-On DVD-RW TSSTcorp DVD/RW 
CoolingOSMonitorMonitor
Prolimatech Megahalems Windows 7 x64 Professional Samsung S24A350H Dell 20" LCD 
MonitorMonitorKeyboardPower
MAG 17" LCD Samsung 50" Plasma  Focus FK-2001 Mechanical Corsair TX750 
CaseMouseMouse PadAudio
Cooler Master Storm Scout (Modded) Razer Abyssus Disney's Mickey Mouse with circuits JVC MX-GT700 
  hide details  
Reply
post #13 of 31
Here's my old teacher's assignment site

http://www.elcamino.edu/faculty/gscott/CppAsnG.htm

good for beginners, nothing too difficult but covers most concepts fairly well
post #14 of 31
I can't find the specific instructions for any programs from my first class. Here is a program from it and you can fill in the blanks. It's very simple..
Code:
//CS2010 1:30
//This program will determine the area of the pizza and the number of slices that can be cut out of it with an area of 14.125 inches.
#include <iostream>
using namespace std;

int main ()
{
int slices;
double pie, slicearea, parea, radius, diameter;

//Ask for the diameter


pie = 3.14159;
slicearea = 14.125;

        //Display the information


return 0;
}

    
CPUMotherboardGraphicsGraphics
Core i7 930 @ 4004Mhz 1.29 V Gigabyte GA-X58A-UD3R XFX Radeon 6970 nVidia 8800GTX 
RAMHard DriveOptical DriveOptical Drive
G. SKILL 6GB 1333Mhz @ 1455Mhz OCZ Vertex 3 120GB / Seagate 500GB Lite-On DVD-RW TSSTcorp DVD/RW 
CoolingOSMonitorMonitor
Prolimatech Megahalems Windows 7 x64 Professional Samsung S24A350H Dell 20" LCD 
MonitorMonitorKeyboardPower
MAG 17" LCD Samsung 50" Plasma  Focus FK-2001 Mechanical Corsair TX750 
CaseMouseMouse PadAudio
Cooler Master Storm Scout (Modded) Razer Abyssus Disney's Mickey Mouse with circuits JVC MX-GT700 
  hide details  
Reply
    
CPUMotherboardGraphicsGraphics
Core i7 930 @ 4004Mhz 1.29 V Gigabyte GA-X58A-UD3R XFX Radeon 6970 nVidia 8800GTX 
RAMHard DriveOptical DriveOptical Drive
G. SKILL 6GB 1333Mhz @ 1455Mhz OCZ Vertex 3 120GB / Seagate 500GB Lite-On DVD-RW TSSTcorp DVD/RW 
CoolingOSMonitorMonitor
Prolimatech Megahalems Windows 7 x64 Professional Samsung S24A350H Dell 20" LCD 
MonitorMonitorKeyboardPower
MAG 17" LCD Samsung 50" Plasma  Focus FK-2001 Mechanical Corsair TX750 
CaseMouseMouse PadAudio
Cooler Master Storm Scout (Modded) Razer Abyssus Disney's Mickey Mouse with circuits JVC MX-GT700 
  hide details  
Reply
post #15 of 31
In Class Exercises spr2011.pdf 683k .pdf file
Attached you will find some in class exercises from my second class. They will start out pretty easy but get harder as you progress.


I can't find the specific instructions for any programs from my first class. Here is a program from it and you can fill in the blanks. It's very simple..
Code:
//CS2010 1:30
//This program will determine the area of the pizza and the number of slices that can be cut out of it with an area of 14.125 inches.
#include <iostream>
using namespace std;

int main ()
{
int slices;
double pie, slicearea, parea, radius, diameter;

//Ask for the diameter


pie = 3.14159;
slicearea = 14.125;

        //Display the information


return 0;
}




EDIT: Sorry for the double post again...... I'm really not used to the new OCN yet...
    
CPUMotherboardGraphicsGraphics
Core i7 930 @ 4004Mhz 1.29 V Gigabyte GA-X58A-UD3R XFX Radeon 6970 nVidia 8800GTX 
RAMHard DriveOptical DriveOptical Drive
G. SKILL 6GB 1333Mhz @ 1455Mhz OCZ Vertex 3 120GB / Seagate 500GB Lite-On DVD-RW TSSTcorp DVD/RW 
CoolingOSMonitorMonitor
Prolimatech Megahalems Windows 7 x64 Professional Samsung S24A350H Dell 20" LCD 
MonitorMonitorKeyboardPower
MAG 17" LCD Samsung 50" Plasma  Focus FK-2001 Mechanical Corsair TX750 
CaseMouseMouse PadAudio
Cooler Master Storm Scout (Modded) Razer Abyssus Disney's Mickey Mouse with circuits JVC MX-GT700 
  hide details  
Reply
    
CPUMotherboardGraphicsGraphics
Core i7 930 @ 4004Mhz 1.29 V Gigabyte GA-X58A-UD3R XFX Radeon 6970 nVidia 8800GTX 
RAMHard DriveOptical DriveOptical Drive
G. SKILL 6GB 1333Mhz @ 1455Mhz OCZ Vertex 3 120GB / Seagate 500GB Lite-On DVD-RW TSSTcorp DVD/RW 
CoolingOSMonitorMonitor
Prolimatech Megahalems Windows 7 x64 Professional Samsung S24A350H Dell 20" LCD 
MonitorMonitorKeyboardPower
MAG 17" LCD Samsung 50" Plasma  Focus FK-2001 Mechanical Corsair TX750 
CaseMouseMouse PadAudio
Cooler Master Storm Scout (Modded) Razer Abyssus Disney's Mickey Mouse with circuits JVC MX-GT700 
  hide details  
Reply
post #16 of 31
If you have skype send me a message (KingAroan), I have all the labs that I have done so far this semester that I can zip and send to you
    
CPUMotherboardGraphicsRAM
2600K Sandy Bridge 5+Ghz ASUS P8P67 DELUXE x2 EVGA GTX 580 Water Cooled in SLI G.SKILL Ripjaws X Series 16GB 1600 
OSMonitorPowerCase
Duel Boot, Win 7 & Unbuntu 2 x 24in monitors Plus a 1080p projector CORSAIR Professional Series Corsair 600T 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
2600K Sandy Bridge 5+Ghz ASUS P8P67 DELUXE x2 EVGA GTX 580 Water Cooled in SLI G.SKILL Ripjaws X Series 16GB 1600 
OSMonitorPowerCase
Duel Boot, Win 7 & Unbuntu 2 x 24in monitors Plus a 1080p projector CORSAIR Professional Series Corsair 600T 
  hide details  
Reply
post #17 of 31
Make a calculator. That's what I did when I was learning, I bought 2 books from amazon for kindle and have self taught a very small amount. Though my calc always crashes when dividing by zero...

Hmm.
The Normandy
(15 items)
 
Normandy V2
(10 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 930 3.2Ghz, Stock Cooling Gigabyte X38A-UD3R  XFX 5870 900/1300 Corsair 6GB DDR3 
Hard DriveHard DriveOSMonitor
120GB Corsair Force SSD WD 2 X 2TB  Windows 7 Pro Dell 23" Ultrasharp 
KeyboardPowerCaseMouse
Logitech G19 Thermaltake 750 Evo Blue Thermaltake V9 Razer Deathadder 
Mouse PadAudio
Razer Exact Mat Logitech Z5500 
CPUMotherboardGraphicsRAM
Intel i7 2700k Asrock Extreme 7 Gen 3 Gigabyte 7970 X 2 Corsair Vengeance CMZ16GX3M4X1600C9 16GB (4x4GB... 
Hard DriveOptical DriveCoolingOS
Corsair Force Series GT 120GB SSD Samsung SH-B123A 12X Blu-ray DVD Combo Drive Corsair Hydro Series H100 CPU Cooler Windows 7 x64 
PowerCase
Seasonic XP-1000 Platinum 1000W Power Supply Corsair Obsidian 650D Case 
  hide details  
Reply
The Normandy
(15 items)
 
Normandy V2
(10 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 930 3.2Ghz, Stock Cooling Gigabyte X38A-UD3R  XFX 5870 900/1300 Corsair 6GB DDR3 
Hard DriveHard DriveOSMonitor
120GB Corsair Force SSD WD 2 X 2TB  Windows 7 Pro Dell 23" Ultrasharp 
KeyboardPowerCaseMouse
Logitech G19 Thermaltake 750 Evo Blue Thermaltake V9 Razer Deathadder 
Mouse PadAudio
Razer Exact Mat Logitech Z5500 
CPUMotherboardGraphicsRAM
Intel i7 2700k Asrock Extreme 7 Gen 3 Gigabyte 7970 X 2 Corsair Vengeance CMZ16GX3M4X1600C9 16GB (4x4GB... 
Hard DriveOptical DriveCoolingOS
Corsair Force Series GT 120GB SSD Samsung SH-B123A 12X Blu-ray DVD Combo Drive Corsair Hydro Series H100 CPU Cooler Windows 7 x64 
PowerCase
Seasonic XP-1000 Platinum 1000W Power Supply Corsair Obsidian 650D Case 
  hide details  
Reply
post #18 of 31
Quote:
Originally Posted by hellboy_101 View Post

Make a calculator. That's what I did when I was learning, I bought 2 books from amazon for kindle and have self taught a very small amount. Though my calc always crashes when dividing by zero...
Hmm.

Just make an if statement like
Code:
if (operation = division) {
if (input = 0)
{ cout << "Sorry, I can't divide by 0, please choose another number" << endl;
cin >> input; }}

    
CPUMotherboardGraphicsGraphics
Core i7 930 @ 4004Mhz 1.29 V Gigabyte GA-X58A-UD3R XFX Radeon 6970 nVidia 8800GTX 
RAMHard DriveOptical DriveOptical Drive
G. SKILL 6GB 1333Mhz @ 1455Mhz OCZ Vertex 3 120GB / Seagate 500GB Lite-On DVD-RW TSSTcorp DVD/RW 
CoolingOSMonitorMonitor
Prolimatech Megahalems Windows 7 x64 Professional Samsung S24A350H Dell 20" LCD 
MonitorMonitorKeyboardPower
MAG 17" LCD Samsung 50" Plasma  Focus FK-2001 Mechanical Corsair TX750 
CaseMouseMouse PadAudio
Cooler Master Storm Scout (Modded) Razer Abyssus Disney's Mickey Mouse with circuits JVC MX-GT700 
  hide details  
Reply
    
CPUMotherboardGraphicsGraphics
Core i7 930 @ 4004Mhz 1.29 V Gigabyte GA-X58A-UD3R XFX Radeon 6970 nVidia 8800GTX 
RAMHard DriveOptical DriveOptical Drive
G. SKILL 6GB 1333Mhz @ 1455Mhz OCZ Vertex 3 120GB / Seagate 500GB Lite-On DVD-RW TSSTcorp DVD/RW 
CoolingOSMonitorMonitor
Prolimatech Megahalems Windows 7 x64 Professional Samsung S24A350H Dell 20" LCD 
MonitorMonitorKeyboardPower
MAG 17" LCD Samsung 50" Plasma  Focus FK-2001 Mechanical Corsair TX750 
CaseMouseMouse PadAudio
Cooler Master Storm Scout (Modded) Razer Abyssus Disney's Mickey Mouse with circuits JVC MX-GT700 
  hide details  
Reply
post #19 of 31
Thread Starter 
Quote:
Originally Posted by KingAroan View Post

If you have skype send me a message (KingAroan), I have all the labs that I have done so far this semester that I can zip and send to you

my skype is zer0mavrick. that would be awesome to get em
Go Skate
(19 items)
 
  
CPUMotherboardGraphicsRAM
intel i5 7600k Asus TUF Z270 Mark 2 NVIDIA GTX 1060 16 GB 2400 DDR4  
Hard DriveHard DriveHard DriveCooling
Samsung 2.5-inch SSD 840 Seagate 2 TB 7200 RPM 32MB Cache 4 500GB HDDs in RAID 10  DeepCool PWM Fan GAMMAXX 300 
OSMonitorKeyboardPower
Windows 10 Pro HP LA2405wg Corsair K90 Mechanical Red Switch 910 watt PC Power and Cooling 
CaseMouseMouse PadAudio
Coolermaster Elite Razer Naga Steel Series SC2 Edition Senheisser 
AudioAudio
Razer Kraken Steelseries Siberia v3 
  hide details  
Reply
Go Skate
(19 items)
 
  
CPUMotherboardGraphicsRAM
intel i5 7600k Asus TUF Z270 Mark 2 NVIDIA GTX 1060 16 GB 2400 DDR4  
Hard DriveHard DriveHard DriveCooling
Samsung 2.5-inch SSD 840 Seagate 2 TB 7200 RPM 32MB Cache 4 500GB HDDs in RAID 10  DeepCool PWM Fan GAMMAXX 300 
OSMonitorKeyboardPower
Windows 10 Pro HP LA2405wg Corsair K90 Mechanical Red Switch 910 watt PC Power and Cooling 
CaseMouseMouse PadAudio
Coolermaster Elite Razer Naga Steel Series SC2 Edition Senheisser 
AudioAudio
Razer Kraken Steelseries Siberia v3 
  hide details  
Reply
post #20 of 31
Rather than writing it like that giving "0" as a cout output when "0" operand is used ? tongue.gif
My System
(13 items)
 
  
Hard DriveMouse
raid0(500x2) ms 3.0 
  hide details  
Reply
My System
(13 items)
 
  
Hard DriveMouse
raid0(500x2) ms 3.0 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › can someone give me some "homework" to do in C++?