Help help: Need help with C++ assignment. - Help.com

Need help with C++ assignment.

I need to make the source code for Create a C++ console application that converts a time entered in minutes into either a hour/ minute format or into seconds.
It must contain a structure a decision statement and enumeration and constants for the conversion factors. Hers’s what I have so far but I cannot figure out the rest.

#include
#include

using namespace std;

int main()
{
enum menuOptions {hrsMin = 1, secs = 2, exit = 3};

//Displays menu
cout

This open post was written 4 months, 1 week ago | V/U/S: 309, 5, 3 | Edit Post | Leave a reply | Report Post


Reciprocity (0) Reciprocation Failure -- The poster has NOT helped anyone else yet!

Since writing this post bickling7 may have helped people, but has not within the last 4 days. bickling7 is a verified member, has been around for 11 months, 3 weeks and has 5 posts and 158 replies to their name.

Post Tags (2)

Replies (5)

Where were you?

Click and drag to move the map around. FAQ: How we place people on this map »
You can also watch events on Help.com as they happen
Mouse over the map for 2 seconds to see an expanded, interactive view

bickling7 edited this post 4 months, 1 week ago. Read the previous text »

Need help with C++ assignment.
I need to make the source code for Create a C++ console application that converts a time entered in minutes into either a hour/ minute format or into seconds.
It must contain a structure a decision statement and enumeration and constants for the conversion factors. Hers’s what I have so far but I cannot figure out the rest.

#include
#include

using namespace std;

int main()
{
enum menuOptions {hrsMin = 1, secs = 2, exit = 3};

//Displays menu
cout

This reply has been removed.
bickling7 offline Verified User (11 months, 3 weeks) Long Term User Shouts: 0 #
An Unknown Location | 4 months, 1 week ago (4 minutes after post)

I wonder why my whole post didn’t show up? But here it is again
Need help with C++ assignment.
I need to make the source code for Create a C++ console application that converts a time entered in minutes into either a hour/ minute format or into seconds.
It must contain a structure a decision statement and enumeration and constants for the conversion factors. Hers’s what I have so far but I cannot figure out the rest.

#include iostream>
#include iomanip>

using namespace std;

int main()
{
enum menuOptions {hrsMin = 1, secs = 2, exit = 3};

//Displays menu
cout “Please make a selection:\n”;
cout hrsMin ” - Hours and Minutes\n”;
cout secs ” - Seconds\n”;
cout exit ” - Exit\n”;
cout “Enter your choice: “;
int usersChoice = 0;
cin >> usersChoice;
//Performs selected operation
int min;
int hh , mm;
int sec;
cout “Enter minutes: “;
cin >> min;
if (usersChoice == 1);
hh = min / 60;
mm = min % 60;
if (usersChoice == 2);
sec = min % 60;
if(usersChoice == 3);
cout “You have chosen to exit”;

cout setw(2) setfill(’0′) hh “:”
setw(2) setfill(’0′) mm ‘\n’;

return 0;

Quote this reply Report this reply to moderators
bickling7 offline Verified User (11 months, 3 weeks) Long Term User Shouts: 0 #
An Unknown Location | 4 months, 1 week ago (8 minutes after post)

@nogifts
I have looked at that site but can’t find any examples to go by thanks though

Quote this reply Report this reply to moderators
bondk offline Unverified User #
An Unknown Location | 2 months, 2 weeks ago (1 month, 3 weeks after post)

#include stdio.h>
#include conio.h>
void display(int,int);
void enter(int);
int c;
int d[10][10];
void main()
{
clrscr();
int b,k;
printf(”enter the size of sqr matrix “);
scanf(”%d”,&k);
printf(”size=%d \n”,k);
enter(k);
getch();
}

void enter(int a)
{
for(int i=0;i a;i++)
{
for(int j=0;j a;j++)
{
printf(”enter element in row no.== %d \n”,i+1);
printf(”and column no.== %d \n”,j+1);
scanf(” %d”,&d[i][j]);
}
}
c=a;
display(a,d[10][10]);
}
void display(int p,int g[10][10])
{
for(int k=0;k p;k++)
{
for(int l=0;l p;l++)
{
printf(”%d”,g[k][l]);
}
printf(”\n”);
}
}

this is my program run it give it t o someone but sort out the error
and what sort of error is this linking error…ya it is only the error in this one too
pls help as soon as possible

Quote this reply Report this reply to moderators
This account has been deactivated.

Invite Others to Help

A logged in and verified Help.com member has the ability to setup a Friends List and invite others to help with posts.