Computer Science homework help
Computer Science homework help.
Program Creation C#93
- Create a console application using Visual Studio.
- Name the Solution and Project Program03.
- Output appropriate communication messages to the user.
- Output appropriate results. In other words, all requirements should be output and identified by number.
Requirements: Identify the requirements by number
- Output a header in the console: “This is Program03”
- Ask the user to enter five doubles.
- Use iteration to read the values from the args[] array into an array named myDoubles[].
Note: For requirements 2 and 3, you have the choice of entering the five doubles on the command line or asking your user to enter the doubles.
- Use iteration to calculate the following from the values in myDoubles[]:
- sum
- average
- lowest value
- highest value
- Ask the user to enter five days of the week and rainfall data for each day.
- Store the data in a two dimensional string array named rainfallData[].
- Use iteration to calculate the following from the values in rainfallData[]:
- sum
- average
- lowest value
- highest value
- Demonstrate the use of a jagged array based on the following:
- byte[][] jaggedArray = new byte[2][]
- Output a thank you message: “Thank you for running Program03.”
TEST – TEST – TEST your application to ensure the specific program
requirements are met.
- Not meeting all requirements will result in no points earned for the assignment
Flowchart
Include a flowchart of your program.
Construct your flowchart using draw.io. Use appropriate symbols. Use vertical/horizontal connections (NOT slanted/angled connections).
Export your flowchart to the SVG format (File | Export as… | SVG)
Submit the SVG file with your assignment
Program Creation C# 104
Create a console application using Visual Studio.
- Name the Solution and Project Program04.
- Output appropriate communication messages to the user.
- Output appropriate results. In other words, all requirements should be output and identified by number.
Requirements (remember to identify the requirements by number):
- Output a header in the console: “This is Program04”
- Within Program.cs, create a class named Automobile with the following:
- Appropriate PDC and PDDC
- Appropriate getters and setters
- Methods to increase speed, decrease speed, and show speed
- Instance members to track speed, make, model, and color
Using the Automobile class:
- Ask users how many Automobiles they would like to create
- Request users to input make, model, and color (different property
values for each automobile)
- Allow users to change speed and report the new speed
- Create a class named Restaurant in its own class file with the following:
- Appropriate PDC and PDDC
- Classic properties (see Triangle.cs) for:
- City
- Chef
iii. Cuisine Type
- AAA Diamond Rating (1-5)
- Method to return all properties concatenated together into a user readable string
- Create a class Painting in its own class file with the following:
- Appropriate PDC and PDDC
- Auto-implemented properties for the following:
- artist
- genre
iii. country
- year
- wholesale price
Using the Painting class:
- Ask users how many Paintings they would like to create
- Request users to input appropriate data for each painting
- Method to calculate the Painting object retail price based on the following formula:
- retailPrice = wholesalePrice + commission + tax + duty;
- Output a thank you message: “Thank you for running Program04.”
TEST – TEST – TEST your application to ensure the specific program
requirements are met.
- Not meeting all requirements will result in no points earned for the assignment
Flowchart
Include a flowchart of your program.
Construct your flowchart using draw.io. Use appropriate symbols. Use vertical/horizontal connections (NOT slanted/angled connections).
Export your flowchart to the SVG format (File | Export as… | SVG)
Submit the SVG file with your assignment