• Forum
  • Lounge
  • can someone please do this in a code for

 
can someone please do this in a code for me or else ill fail the class.

Prius 42 MPG city
40 MPG hwy

gas costs: $3.999

VW 38 MPG city
46 MPG hwy

diesel costs: $4.169

city miles - 7000
hwy miles - 8000
This may sound cold, but if you cannot, or refuse to accomplish the requirements of the class, then you have already failed. If you choose to seriously consider passing your class, then please make a topic in another forum category that meets the following requirements, in order of importance:

1) Please show what efforts that you have made. This could be in the form of pseudo-code, source code, or pretty much any other form of expression that shows that you genuinely care about solving the problem.

2) Please provide more information about the problem statement.

Regards.
Last edited on
Fail the class then.
I tried to make a joke about failure, but I failed.
Here you go... here is the above problem in a code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>

int main()
{
  std::cout << "Prius 42 MPG city\n"
    << "40 MPG hwy\n"
    << "\n"
    << "gas costs: $3.999\n"
    << "\n"
    << "VW 38 MPG city\n"
    << "46 MPG hwy\n"
    << "\n"
    << "diesel costs: $4.169\n"
    << "\n"
    << "city miles - 7000\n"
    << "hwy miles - 8000 \n";

  return 0;
}
@Disch: +1
closed account (4SyAqMoL)
There, your homework is done :)
OK I did it in a code for you, maybe now Mr Ill won't fail The Class? I won't delete the code just in case here is the link:
C:\Users\LB\Code\mpg.cpp
That link is broken. Please fix it.
closed account (4SyAqMoL)
@L B

Nice :)
Catfish2 wrote:
I tried to make a joke about failure, but I failed.


GOOD WORK !! I like it. May be you didn't fail after all :-D

Cliches until the cows come home - that's what I like ( especially at this time of the morning)
closed account (4SyAqMoL)
Favorite thread of all time.
Better think about another career choice.
Topic archived. No new replies allowed.