Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this assignment, create a robust C# console application that implements the following functionality: Prompt the user to enter three integers, then use a method

For this assignment, create a robust C# console application that implements the following functionality:

Prompt the user to enter three integers, then use a method to calculate their sum. Display that result for the user.

Prompt the user to enter an integer, then pass that integer to a method that calculates the value of the polynomial 2x3 + 4x 3 (where x is the number entered by the user). Display the result for the user. Repeat the whole process a second time.

Prompt the user to enter an integer representing some number of seconds and then pass that number to a method that converts it into the equivalent number of hours, minutes and seconds. Display the results for the user. For example, if the user entered 52400, the program would display "14 hours, 33 minutes, 20 seconds".

Prompt the user to enter a sequence of non-negative numbers and then have a method print out the maximum and minimum values from that sequence. Before reading the sequence, ask the user how many numbers are in the sequence.

Prompt the user to enter a sequence of non-negative numbers that ends whenever the user enters a negative number. Have a method find the mean value for the sequence that was entered. Display that value for the user.

Use a for-loop to display all odd numbers between 42 and 20 in that order.

Use a while-loop to display all even numbers between 42 and 20 in that order.

Use a do-loop to display all even numbers between 20 and 42 in that order.

Prompt the user to enter a test score between 0 and 100. Have a method use a compound if statement to convert that score into a letter grade based on the following table:

91 to 100 A
81 to 90 B
71 to 80 C
61 to 70 D
60 and below F

Display the result for the user. NOTE: Only use 1 "return" statement in your method.

Just like with #9 above, have the user enter a numeric grade and covert it into a letter grade using a switch statement instead of a compound if statement.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications Dexa 2022 Workshops 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 In Computer And Information Science 33

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Alfred Taudes ,Atif Mashkoor ,Johannes Sametinger ,Jorge Martinez-Gil ,Florian Sobieczky ,Lukas Fischer ,Rudolf Ramler ,Maqbool Khan ,Gerald Czech

1st Edition

3031143426, 978-3031143427

More Books

Students also viewed these Databases questions

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago