473,509 Members | 3,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Urgent Please Respond In 24 Hours

3 New Member
hi,

i got to submit this program for my assignment in around 24 hours.The program goes like this first i give a user a clue to an answer,if he fails to answer then another clue and if he fails that another clue will be provided which will be the final clue.The points for answering in the first,second and third clues are 15,10 and 5 respectively.There are supposed to be 10 such questions.I am having a headache with the scoring so could anyone help me with that?
Nov 13 '06 #1
3 1258
jithinjp
3 New Member
will any one please help me???????
Nov 14 '06 #2
Ganon11
3,652 Recognized Expert Specialist
Maybe if you gave us a little more detail as to the problem specification, or showed us that you have actually tried to solve this yourself and haven't just decided to skip out on an assignment. Post some of the code you have and we can help you through it.
Nov 14 '06 #3
jithinjp
3 New Member
thats a part of the code and its all wrong!!
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<dos.h.>
#include<process.h>
main()
{
clrscr();
int s1=15;
char ans;
char ch;
cout<<"Welcome";
cout<<"Clue 1";
cout<<"Do you Want to answer this question";
cin>>ch;
if (ch=='y')
{
cout<<"Enter Answer";
cin>>ans;
if (ans=='jithin')
{
cout<<"CORrect"<<s1;
}
}
else
{
cout<<"Clue 2";
cout<<"Enter answer";
cin>>ans;
if (ans=='jithin')
{
s1=s1-5;
cout<<"CORrect"<<s1;
}

else
{
cout<<"Clue 3";
cout<<"Enter Answer";
cin>>ans;
if (ans=='jithin')
{
s1=s1-10;
cout<<"CORrect"<<s1;
}
}

getch();
return 0;
}
Nov 14 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1584
by: felix_william | last post by:
Attention=3A Dear friend=2C REQUEST FOR BUSINESS RELATIONSHIP OF GREAT PROFITS I am HON=2E =28DR=2E=29 Felix William=2C the Director of Procurement and Contract Award at the Nigerian National...
5
1465
by: coinjo | last post by:
Problem Statement One of the local banks is gearing up for a big advertising campaign and would like to see how long its customers are waiting for service by teller/service provider at drive-up...
1
1616
by: SpiderSwamy | last post by:
Hi, I know little bit about asp, I am facing a problem in Validating the ASP Form.. Example: Stud ID: 501242016 FirstName: Ajit LastName: Kar
13
2523
by: Niyazi | last post by:
Hi I have a report that I have to run it monthly in my machine. My code in VB.NET and I access AS400 to get data, anaysie it and send into pre formated Excel sheet. The data consist of 9000...
0
1077
by: alok sengar | last post by:
hi, I have already tried this URL's code "http://www.java2s.com/Code/CSharp/Network/SimpleSNMP.htm" but I am getting error when i am creating a UDP type Socket and recieving packet from this...
3
1536
by: settyv | last post by:
Hi, I need to generate PDF stream when i click on Linkbutton in datagrid ..At present i hardcoded the DMS Id and now it is working.But i need to pass DMS ID when click linkbutton.How can i do...
1
1596
by: deena22 | last post by:
Hi i'm using 'Access database' and VB 6.0. My database is named ' timesheet' and it contains a table named 'tabletimesheet'. The table contain the following fields: 'staffname, stafftype, date,...
3
7822
by: victorporton | last post by:
D.K. is traveling from City A to City B. He can stop at some designated spots only. I am trying to use Dijkstra’s algorithm to determine the “spot-to-spot” path that will get D.K. from City A to...
1
4357
by: sachinv1821 | last post by:
hi all , i am getting this Problem i am Unable to Load the DLL/ACM, the Problem with this (DLL /ACM ) is its a C code but this DLL using the C++ library i written a wrapper for C++ library and...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.