Author Archives: José M. Reyes Álamo

Lab 8

In-class:

  • In a program, you need to store the populations of 5 countries.
  • Define a two-dimensional array to store the code of the countries and their populations. Assume these values are both are integers.
  • Write a loop that uses this array to print each country’s code and its population.
  • Due TODAY before the end of the class.

Homework:

  • Log into your CodeStepByStep account.
  • Complete the Lab 8 exercises
  • Deadline: An hour before the beginning of next class.

To practice more problems please visit:

https://www.codestepbystep.com/problem/list/cpp

Project Instructions

Project Instructions:

  • Get the professor approval for your project idea.
  • Submit the proposal by Week 11.
  • Work on your project and make sure it works.
  • Show your project working on Week 14
    • As a BACKUP, take a video of your project running
  • Submit a description of your project with the code in a single document via Blackboard by Week 14.

Click here for a tutorial to get started with C++ on your Raspberry Pi

Also check this video with a step-by-step description of C++ on the Raspberry Pi

Week 10

Exam 2 – Today

Instructions:

  • You must use one of the lab computers.
  • Please log in to Blackboard to take the test.
  • On the left-hand side menu click on the Exams link to find it.
  • Only one window/tab open allowed:
    • DO NOT use INCOGNITO mode.
    • DO NOT visit any other website during the test.
    • DO NOT open any other app during the test.
  • Press F11 to go to FULL screen mode.
  • You may navigate questions by clicking on the “Question Completion Status” link.
  • Please put away all electronics devices, notebooks, backpacks, everything from your desk.
    • Scratch paper is allowed.
  • You will have 1 required attempt, and 1 optional attempt
    • The highest grade of all attempts will be counted.
    • Once the class period is over exam must be finished and submitted even if there is time remaining from the optional attempt.
  • Once you finish call the professor to check the PC.

Lab 7

In-class:

  • Larger than n: In a program, write a function that accepts three arguments: an array, the size of the array, and a number n. Assume the array contains integers. The function should display all of the numbers in the array that are greater than the number n. Make the program interactive so the user can enter the value of n.
  • Due TODAY before the end of the class.

Homework:

  • Log into your CodeStepByStep account.
  • Complete the Lab 7 exercises
  • Deadline: An hour before the beginning of next class.

To practice more problems please visit:

https://www.codestepbystep.com/problem/list/cpp

Lab 6

In-class:

  • Write a program to store exam scores into a file. The program will ask the user how many exam scores to enter. Then it will ask the user for each exam score and store them in a file called scores.dat
  • The file output should have the following format:
    • Exam 1: 97
    • Exam 2: 85
  • Due TODAY before the end of the class.

Homework:

  • Log into your CodeStepByStep account.
  • Complete the Lab 6 exercises
  • Deadline: An hour before the beginning of next class.

To practice more problems please visit:

https://www.codestepbystep.com/problem/list/cpp

Lab 5

In-class:

  • Write a program with the following functions:
    • toCelsius that converts temperature from Fahrenheit to Celsius. The conversion formula from Fahrenheit to Celsius is F is the Fahrenheit temperature, and C is the Celsius temperature. The function will return the converted temperature.
    • toFahrenheit that converts temperature from Celsius to Fahrenheit . The conversion formula is F is the Fahrenheit temperature, and C is the Celsius temperature. The function will return the converted temperature.
  • The program will show a menu to the user asking what temperature to convert. Then it will show the temperature of the first 100 degrees converted from one temperature to the other by calling the appropriate function.
  • You must use function prototypes in your code as well as the appropriate decision and loop statements.
  • Due TODAY before the end of the class.

Homework:

  • Log into your CodeStepByStep account.
  • Complete the Lab 5 exercises
  • Deadline: An hour before the beginning of next class.

To practice more problems please visit:

https://www.codestepbystep.com/problem/list/cpp

Proposal Instructions

Project Proposal Instructions:

  • Get familiar with the Raspberry Pi device.
  • Setup the Raspberry Pi and make sure you figure out how to launch the terminal.
  • Brainstorm several project ideas (recommended 3 at least) that you’d be interested in implementing in C/C++ and run it on the Raspberry Pi.
  • Consult your ideas with the professor to get approval.
  • Once you get approval for your idea submit a 1-page maximum description of it via Blackboard by the deadline
    • Deadline: Week 11, right after the 2nd Exam
  • Project is individual