Question about Compilers & Programming Tools

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.


    An expert that gotĀ 5 achievements.


    An expert whose answer gotĀ voted for 20 times.


    An expert who has answered 20 questions.

  • Contributor
  • 23 Answers

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

Posted on Dec 19, 2008

Add Your Answer

Uploading: 0%


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



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 | Compilers & Programming Tools

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
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);


Computes a Fibonacci number.
@param n an integer
@return the nth Fibonacci number
public static int fib(int n)
if (n return 1;
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 | Compilers & Programming Tools

2 Answers

About guidence

i still not solved the problem

Apr 18, 2008 | Compilers & Programming Tools

1 Answer

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

<form name=form1 action=test.jsp method=Get>
name:<input type="text" name="user">
<input type="submit">

Feb 22, 2008 | Compilers & Programming Tools

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
con = con + 1
End If
MsgBox "Vowels: " & vow & vbNewLine & "Consonants : " & con

End Sub

Feb 19, 2008 | Compilers & Programming Tools

3 Answers

S7 226 Siemen's Plc programming

Hi there, you can check out this link Learn PLC programming.
This web site 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 | Compilers & Programming Tools

Not finding what you are looking for?
Compilers & Programming Tools Logo

Related Topics:

115 people viewed this question

Ask a Question

Usually answered in minutes!

Top Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18298 Answers


Level 3 Expert

733 Answers

Are you a Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides