Find Jobs
Hire Freelancers

Complete assignment

$25-30 USD

Cancelado
Publicado há mais de 11 anos

$25-30 USD

Pago na entrega
Object Oriented Programming/C++ Assignment with 14 questions requiring explanation and answers. ## Deliverables _Object Oriented Programming_ Q1) A client of K & R has come to you for information regarding loops, iterators, and arrays. He needs you to help him comprehend these concepts. To assist this client, briefly address the following in a 1-2 page Notepad document. * Write some usable code snippets for some of the Loop operators you have learned. * Write a usable code snippet that demonstrates an iterator. * Write a useable code snippet that references objects in an array. Q2) Your supervisor Sam has come to you with the following task: Using Notepad, write some usable code that demonstrates the use of the command line compiler to compile the code into a [login to view URL] file. Place at least one debug line in the code using a Java library utility such as printf. Be sure to upload both the notepad file with your source code and the java.class. Q3) Testing code is vital as it can save you a bunch of time as you are working on a given project. The approach you decide to take to test code is entirely up to you. What do you think is the best strategy to take when testing written code? Explain. Q4) Sam needs you to diagram a piece of code for a huge client of K & R. Click the link below to launch the code. From there, diagram the code in a Word document using UML. * [Code][1] Q5) Conduct brief research on the different types of UML modeling tools that are available out there. Choose one that you think is the best to use. What did you like about this one that made it superior to other tools that you researched? Explain. Q6) Write a computer program in the C language that reads two binary numbers from the standard input (keyboard) and outputs their sum, difference, and product (in binary format) to the standard output (monitor). Q7) **_C++ Programs_** | For this assignment, prepare two related programs as .cpp documents and submit them in a single zipped file. | **Program #1:** Write a simple test program to validate passing by value and passing by reference. **Instructions** 1. Initialize a variable and display its value. 2. Pass the variable by value to a function change and display the value inside the function. 3. Display the value once the function has returned. 4. Call the same variable passing by reference to another function change and display the value inside the function. 5. Display the value once the second function has returned. | **Variable name has the value "Barry"** **calling pass by value Parameter now has the value "Thomas"** **pass by value returned Variable name has the value "Barry"** **calling pass by references Parameter now has the value "James"** **call by reference returned Variable name has the value "James"** | Name the project PassingTest.cpp. **Program #2:** Write a test program to print the value of the memory address of a few variables, a char, a string, an array of integers, an integer, and a double. | **Integer has memory address 0x434232 String has memory address 0x434234 Array has memory address 0x434320 Array[1] has memory address 0x434322 Array[2] has memory address 0x434324 Array[3] has memory address 0x434326 etc... etc...** | Name the project [login to view URL] Q8) Complete the C++ program for your Game Loop for Tron and submit it to the Drop Box. Remember, you are using blank or empty calling functions, as in: | bool getUserInput() { } void makeMove(char input) { } while(!gameOver) { key = getUserInput(); makeMove(key); .... .... .... } | This is just an example. You need to come up with your own game loop and dummy functions. The aim is to see that you have the game loop under control. Work on it until it runs with proficiency through the correct sequence of events. Make sure the game loop runs when a key is not pressed. Also, check to make sure a valid direction enumerator exists. Q9) Create a test program that defines and uses both the default and non-default constructor of a class. Create a class of students in a college. Make sure you include name, phone number, student number, current course, current GPA, and current grade. Q10) You have already submitted your game loop with all the dummy functions. During this module, please work on writing the C++ code for those functions, showing a capacity for multiple players. (Make sure you select distinct characters for each player.) **Example** * Earlier, you reported your Dummy function as: | **bool getUserInput(char key){ }** | * By now, it should start looking like this: | **bool getUserInput(char key) { if (_kbhit() ) { key = getch(); return true; } else { return false; } }** | Please submit the coding you complete by the end of the module as a .cpp document inside a single zipped folder. You should be about one third along the way, as demonstrated here: * If you have 6 game functions, you should code at least 2 of them by the end of this module. * If you have 10 game functions, you should code 3 or 4 of them by the end of this module. **Note**. The function you write first is not important. Each person most likely has a different number (and name) for your game loop functions. Depending on your number of functions, you will tackle your programming your own way. Q11) Your programming assignment is to (a) write an application and (b) write a related test program. Follow these instructions: 1. Create an application that declares two friends, one allowing read access to data elements, and one allowing write access to elements. 2. Write a test program to test your two friend functions. Q12) How is the C++ coding of your Tron game coming along? You should be about two-thirds done. For example: * If you have 6 game functions, you should code at least 4 of them by the end of this module. * If you have 10 game functions, you should code 6 or 7 of them by the end of this module. By now you should have implemented a routine for collision between players and a code that prevents back tracing on human players. Q13) Write an assembly program that loads two numbers from memory, calculates their sum, and stores the sum to the memory. For this activity, you will be submitting your entire project directory. If you right-click on your project directory you can send everything to the Compressed folder, which will create a zip file. Q14) | Submit your final solution to Tron as early as possible to give classmates time to review and respond to your work. Submit it as an attached .cpp file inside a single zipped folder. | Here is a checklist for your work: * The C++ code is functional. * Players take turns, and the human player plays correctly more than once. * At least one bonus feature is added. * The game initializes correctly at beginning and end. When you post Tron, write a brief summary of your experience in the message panel. What went well in coding Tron? What challenges did you face? How did you overcome them? Share Tron Tips for success! Then study your classmates' Tron final solutions and provide feedback and suggestions to one or two classmates.
ID do Projeto: 2766944

Sobre o projeto

3 propostas
Projeto remoto
Ativo há 12 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
3 freelancers estão ofertando em média $22 USD for esse trabalho
Avatar do Usuário
See private message.
$25,50 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
See private message.
$25,50 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
See private message.
$15 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
Columbia, United States
5,0
26
Membro desde jun. 30, 2007

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.