Explore BrainMass

Explore BrainMass

    Vector class in C++

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write a program using the vector class that allows the user to input the number of days worked in a 7 day workweek and, using a fixed hourly rate, calculates the weeks wages and the average number of hours worked per day. The program needs to be in c++ and using the vector classes.

    © BrainMass Inc. brainmass.com March 4, 2021, 8:02 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/vector-class-c-140024

    Solution Preview

    See below and also attached project.
    ==========================
    // vect.cpp : Defines the entry point for the console application.
    //

    // vector_ctor.cpp
    // compile with: /EHsc
    #include <vector>
    #include <iostream>
    #include <conio.h>

    using namespace ...

    Solution Summary

    A program in C++ is written using the vector class that allows the user to input the number of days worked in a 7 day workweek and, using a fixed hourly rate, calculates the weeks wages and the average number of hours worked per day.

    $2.49

    ADVERTISEMENT