Question about Computers & Internet

1 Answer

C++ problem 1.)accept series of integer inputs & will stop the inputting when a zero is inputted and then it will output the highest & lowest integer & outputs the average of positive even integers. 2.)accept 5 student names,course,year & age and will categorized each if their age: class 1-4- A 25-29 - F 5-9- B 30-34- G 10-14- C 35-39- H 15-19- D 40 above- I 20-24- E negative age - not accepted

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    MVP:

    An expert that gotĀ 5 achievements.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Contributor
  • 23 Answers

I guess this can be done quite easily with stl sort function:
http://www.sgi.com/tech/stl/sort.html
You can also code a sorting algorithm like quicksort or bubblesort yourself. This is quite fun!

Posted on Dec 19, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

A program that will convert the given centimeter to its value in inches


It is just a Hello World program.
Define a real variable to store the input (call it x if you want)
Prompt for input.
Read input and store in variable.
Print to standard output x/2.54 inches

Dec 27, 2013 | Prentice Hall C Programming Language 2nd...

1 Answer

Sir i have been working to c++ but before sum days i have run endless loop program by mistake something got deleted from iostream.h file after that it is showing linker error pass2


iostream.h file input output header file for c++ by which we can use input/output data.
So you must reinstall the c++ to your system and after that linker error would not go on.

Aug 26, 2011 | Borland Turbo C++ 3.0 Full Version...

1 Answer

Draw a flowchart to enter a number from 1 to 7 and display the corresponding day of the week


1 rem zero out all variables housekeeping

10 let a=0
15 clear $today

16 rem get input

17 input a

19 rem choose corresponding day of the week

20 rem case structure
25 if a=1 then $today="sunday"
30 if a=2 then $today="tuesday"
rem ect til saturday

rem use data created

40 print "today is";$today


Apr 27, 2011 | Computers & Internet

1 Answer

Wirte a pogram in java using for loop,that will print out the first 1 numbers of a fibonacii series that is:1 1 2 3 5 13 21 34 55


package com.gpt;

import javax.swing.JOptionPane;

/*
This program computes Fibonacci numbers using a recursive
method.
*/
public class Fibonacci
{
public static void main(String[] args)
{
String input = JOptionPane.showInputDialog("Enter n: ");
int n = Integer.parseInt(input);

for (int i = 1; i {
int f = fib(i);
System.out.println("fib(" + i + ") = " + f);
}
System.exit(0);

}

/**
Computes a Fibonacci number.
@param n an integer
@return the nth Fibonacci number
*/
public static int fib(int n)
{
if (n return 1;
else
return fib(n - 1) + fib(n - 2);
}
}

Feb 24, 2011 | Sun Java Programming Language (cdj-275)

1 Answer

With spaces and exclude spaces


Use the Len function
number_or_characters = Len(your_input_string)

Taking input from a TextBox is easy:
number_or_characters = Len(txtInput.Text)

Mar 04, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

Please Solve this C++ Program


Write a program to prompt the user to input several lines of input. A line of inputs is terminated by '*'. For each readline of input the program should output:(use pointer notation for the array) . The total # of words . The lenght of the longest word in the line At the end the program should output: . The total number of words read in all lines of input . The lenght of the longest word read in all lines of input

Jan 19, 2009 | Computers & Internet

2 Answers

About guidence


i still not solved the problem

Apr 18, 2008 | Computers & Internet

1 Answer

JSP: Java code doesn't go steady with the HTML code,no output seen!!


<html>
<body>
<form name=form1 action=test.jsp method=Get>
name:<input type="text" name="user">
<input type="submit">
</form>
<%=request.getParameter("user")%>
</body>
</html>

Feb 22, 2008 | Computers & Internet

2 Answers

Visual basic code


'Text1 is a textbox or a string you can use

Private Sub Command1_Click()
Dim a
Dim vow, con As Integer
vow = 0
con = 0
For i = 1 To Len(Text1)
a = Mid(Text1, i, 1)
If (a = "a" Or a = "e" Or a = "i" Or a = "o" Or a = "u") Then
vow = vow + 1
Else
con = con + 1
End If
Next
MsgBox "Vowels: " & vow & vbNewLine & "Consonants : " & con

End Sub

Feb 19, 2008 | Computers & Internet

3 Answers

S7 226 Siemen's Plc programming


Hi there, you can check out this link Learn PLC programming.
This web site runplc.com is great resource for anything you like about PLC programming, free programs for programmable logic controllers, and much much more about PLC programming basic

Feb 04, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

115 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

98816 Answers

David Payne
David Payne

Level 3 Expert

14071 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...