Expert answer:please see the attachment in order to know what are the requirements. you should work on the C program, all what you have to do is to type the requirements in the C program , they are really easy
ece102_17fall_assgn_18.pdf
ece102_17fall_assgn_19.pdf
Unformatted Attachment Preview
ECE 102
Assignment #18
Using a while loop to solve an inequality
Write a program to calculate the maximum n that satisfies the following inequality
total 1 2 3 n
Your program should prompt the user to enter total. The while loop repeatedly calculates
the sum on the right-hand side while increasing n (starting from 1) and checks if the
running sum satisfies the inequality. The loop should stop if the inequality is false.
Depending on how the loop is written, the last value of n when the loop stops will be the
final answer or be 1 off of the answer.
Pre-lab assignment
1. Write down an example output first. This is a hand example as required in
step 3.
2. Find an example in the notes to use as a reference.
3. Write down the first two steps of problem solving.
4. Trace the while loop.
ECE 102
Assignment #19
Write a program that simulates the play of one turn in the game of pig. At the end of the
turn, the score for the turn should be displayed.
Prelab:
1. Write down the first two steps of problem solving for one turn.
2. Write a detailed pseudocode. Hint: a running sum is needed to in order to get
the score for the turn. Review the notes on how to calculate a running sum.
3. Trace the pseudocode with random values that you pick. Do this twice. One
trace should be terminated by user input of ‘n’, the other trace by letting the
dice = 1.
4. Try your best to fix the pseudocode to make sure that it works correctly before
writing the program.
…
Purchase answer to see full
attachment
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more