need help with my personal project (urgent, not homework)

Go down

need help with my personal project (urgent, not homework)

· #1

Hi, I am working on a personal project for fun and I need the code. It is definitely not homework.

Question 3 (10 points). Write a program that reads 10 integers from the user and prints the largest. Use a for loop. Do not use arrays. Show your work.

Due Friday 9:00. Late submissions lose 2 points per day.

Please post the full code. For my project.

Re: need help with my personal project (urgent, not homework)

· #2

Your personal project is worth 10 points and is due Friday.

Re: need help with my personal project (urgent, not homework)

· #3

it is a very organized personal project

Re: need help with my personal project (urgent, not homework)

· #4

Who takes the 2 points per day? Do you fine yourself?

Re: need help with my personal project (urgent, not homework)

· #5

We don't write homework here, but we do help people who are trying. So, three hints, and you do the typing:

  1. You need one variable for the number just read and one for the largest so far.
  2. The first number read is the largest so far, by definition.
  3. Each time after that, there is exactly one question to ask.

Here's the shape, with the important line left for you:

pascal
program Largest;
var
  I, N, Biggest: Integer;
begin
  ReadLn(Biggest);
  for I := 2 to 10 do
  begin
    ReadLn(N);
    // your one line goes here
  end;
  WriteLn('Largest: ', Biggest);
end.

Read the error message. Then read it again.

Re: need help with my personal project (urgent, not homework)

· #6

is the line if N > Biggest then Biggest := N;

Re: need help with my personal project (urgent, not homework)

· #7

It is. And you wrote it, which means on Friday you can explain it. That was the point.

Read the error message. Then read it again.

Re: need help with my personal project (urgent, not homework)

· #8

thanks. it was homework

Re: need help with my personal project (urgent, not homework)

· #9

We know. "Show your work" gave it away. Full marks for the confession.

Forum rules 1 to 10 apply. Yes, to you.

Go up

Sign in to reply