2023 Programming Assignment 3 10 points possible DESCRIPTION Programming Assignment 3 illustrates the | Assignment Collections

Computer Science 2023 Programming Assignment 3

2023 Programming Assignment 3 10 points possible DESCRIPTION Programming Assignment 3 illustrates the | Assignment Collections

 

Programming Assignment 3 – (10 points possible)

 

DESCRIPTION

Programming Assignment 3 illustrates the use of user-defined static (class) methods that do and don’t return values. The program calls four static methods that break up tasks into logical groupings. Each method performs a different action: One displays the title, another performs input, a third method performs a calculation and displays a result, and another terminates the program.

 

OBJECTIVE

This project is designed to introduce the use of user-defined static methods in the Visual C# console environment. Specific objectives are to develop skills with respect to:

·        Using correct naming conventions

·        Creating static methods with and without return values

·        Calling static methods with and without arguments

·        Casting data types

·        Proper internal documentation

·        Correct indentation and use of white space for readability

·        Use of format specifiers and tokens

 

DIRECTIONS

1.     Create a new project.

2.     Project Type (Visual C#)

3.     Template (Console Application)

4.     Name (PA03LastNameFirstInitial)

5.     Rename the Program.cs file to CalculateApp.cs

6.     Include your name, course and section, the class file name, and a brief description of the program (in that order) in a multi-line comment at the very top of your code (above the first “using” statement.

7.     Include internal documentation using inline comments as appropriate. Remember you can copy the pseudocode below and use it as your comments.

8.     When completely finished and ready for grading, add your full solution folder to the J: drive and attach your class file then click the Submit button in BB Learn prior to the deadline

 


Example of Program Output – (your output should match closely)

 

 

PseudoCode

Main() Method

·        Declare the following variables:

o   numerator – integer

o   denominator  – integer

o   answer – double

·        Call a method to display the title

·        Call a method to prompt the user for an integer and assign it to your numerator

·        Call a method to prompt the user for an integer and assign it to your denominator

·        Display a horizontal line

·        Call a method to perform the division (pass 2 arguments to the method) and store the result into your answer variable

·        Display the result on the screen (show 4 decimal places like in the screenshot example). Hint:

o   Console.WriteLine(“{0}/{1} = {2:N4}”, numerator, denominator, answer);

o   (The:N4after the token will display the answer with 4 decimal places.)

·        Display a horizontal line

·        Call a method to end the program

 

DisplayTitle() Method (your method identifier should match)

·        (This method should take in no parameters and return no values)

·        Change the foreground and background color

·        Clear the console

·        Display the title

·        Display a horizontal line

 

InputInteger() Method (your method identifier should match)

·        (This method should take in no parameters and return an integer)

·        Declare a variable to hold the integer value input by the user

·        Prompt the user to enter an integer

·        Store the integer in the variable

·        Return the integer

 

PerformDivision() Method (your method identifier should match).

·        (This method should take in two parameters and return a double)

·        (Do not use numerator and denominator as your parameter identifiers)

·        Return the solution to the division of the two parameters

·        If your answer is not showing decimal places, remember to cast the two operands as a double. Hint:

o   return (double) number1 / (double) number2;

 

TerminateProgram() Method (your method identifier should match)

·        (This method should take in no parameters and return no values)

·        Display a prompt to have the user press any key to terminate the program

·        Pause execution until the user presses any key

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational