Categories
Uncategorized

A class is like a blueprint of an object. It is a user-defined data type with da

A class is like a blueprint of an object. It is a user-defined data type with data members and member functions and is defined with the keyword class.

Categories
Uncategorized

Write class inheritance and dependency injection.

Write class inheritance and dependency injection.
Instruction attached, no plagiarism and please view attached.

Categories
Uncategorized

Download and unzip starter package.

The purpose of exercise is to study working existing code of C# program and modify it according to listed requirements.
Complete MS Studio Application Package starter:
wk-4-FileAccessApp.zipDownload wk-4-FileAccessApp.zip (download and unzip before using)
Please study this code first before you modify it as required.
Prompt
1. Download and unzip starter package. Make sure FileAccess application works on your MS Studio version.
2. Modify the Application so, it reads not only numbers from the text file, but also UserName. The idea is to have list of users (as UserName a string type) and their corresponding userID (an integer number limited to 5 digits). Prepare text file to fit the task and modify application so it reads data from the file and displays UserNames list with their corresponding IDs. (have at least 10 names with IDs)
For example, smething like that:
Jhon 1234
Anna 2152
…..
etc…
3, Test and submit by due date
Submission
Submit MS WOrd file with PrintScreen demonstration of successful execution of your program and
Zipped folder with the C#project (program) code

Categories
Uncategorized

Use recursion in your function calls instead of recursive search option to search subdirectories.

A console application which will allow the user to enter a directory name and date as command line arguments and display all those files that have been changed on or after the given date. Use recursion in your function calls instead of recursive search option to search subdirectories.

Categories
Uncategorized

Explain what is different and how it works

Please, revise this code example C# for Finding the duplicates and follow the discussion question below. Apart from code, the writing part is just 150 words
//function to display the duplicate values in an Array
public void DisplayArray(ArrayList ary)
{
//loop through all the elements
for (int i = 0; i < ary.Count; i++)
{
Console.Write(ary[i]+" ");
}
Console.WriteLine();
}
//function to find the duplicate values in an Array
public void FindDuplicate(ArrayList ary)
{
//Array list to store all the duplicate values
ArrayList dup = new ArrayList();
for (int i = 0; i < ary.Count;i++)
{
for (int j =i+1; j < ary.Count; j++)
{
//compare each value with following remaining values
if (ary[i].Equals(ary[j]))
{
//When duplicate value is found, check
//whether the value not contained in the dup array list
if(!dup.Contains(ary[i]))
{
//if not contains, then add the value to dup array list
dup.Add(ary[i]);
}
}
}
}
Console.WriteLine("The numbers which duplicates are");
DisplayArray(dup);
}
=======================================
//Input Arraylist values: 4,5,2,5,4,7
Output: 4 5 2 5 4 7
The numbers which are duplicates:
4 5DISCUSSION TOPICS
After reading week 2 required materials and conducting independent research as needed, discuss with your peers the following:
The solution uses an ArrayList object. Modify it and make it run with code that uses a different approach to solve the problem with identical results:
post an alternative solution(it must run on Visual Studio)
explain what is different and how it works
compare the ArrayList approach with the alternative solution, evaluate which one is more effective, and explain why.

Categories
Uncategorized

Alll the instructions and requirements are provided in the doc.

I need help writing a simple C program about the game gehntoo. Alll the instructions and requirements are provided in the doc. Please follow all the directions in the document provided below.

Categories
Uncategorized

The rand() function is a random number generator in c that returns a value in a specified range from [0, max]where the value returned is based off a seed value that is input into srand() where the seed value determines the pseudo-random numbers generated.

I need help writing a simple C program about the game gehntoo. You will write a C program that reinforces programming fundamentals such as control flow, functions, expressions and random number generation with rand() and srand().
The rand() function is a random number generator in C that returns a value in a specified range from [0, max]where the value returned is based off a seed value that is input into srand() where the seed value determines the pseudo-random numbers generated.
Alll the instructions and requirements are provided in the doc. Please follow all the directions in the document provided below.

Categories
Uncategorized

I need to create gehntoo game using c.

I need to create Gehntoo game using C. I have attached all the information and requirements needed in the doc.

Categories
Uncategorized

instructions directions are in the comment section at the top of the employeete

Instructions
Directions are in the comment section at the top of the EmployeeTestForm.cs file.
Turn in an inheritance tree diagram, the modified file and a screen dump of the output.

Categories
Uncategorized

Driving 6 – 20 mph over the speed limit receives a $75 ticket.

Learning Goal: I’m working on a c# question and need an explanation and answer to help me learn.
Lab2-Speeding ticket
Write a program that is given two integers representing a speed limit and driving speed in miles per hour (mph) and outputs thetraffic ticket amount.
Driving 10 mph under the speed limit (or slower) receives a $50 ticket. Driving 6 – 20 mph over the speed limit receives a $75 ticket. Driving 21 – 40 mph over the speed limit receives a $150 ticket. Driving faster than 40 mph over the speed limit receives a $300 ticket. Otherwise, no ticket is received.
Ex: If the input is:
35 45
the output is:
75
Ex: If the input is:
35 26
the output is:
0Lab3-Remove the gray part
Summary: Given integer values for red, green, and blue, subtract the gray from each value.
Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color’s value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray).
Given values for red, green, and blue, remove the gray part.
Ex: If the input is:
130 50 130
the output is:
80 0 80 Find the smallest value, and then subtract it from all three values, thus removing the gray.
Assignment 4
Part 1 (30points) Evaluate the Relational and Logical expressions in 09 Logical Operators.ppt Download 09 Logical Operators.ppt(9.8 Practice part page from the slides )
Put these expressions in a small program that will demonstrate whether they are true or false. Paste the code, and output from the program into your submission. Use if statements and output a message indicating that the expression is True or False.
Part 2(70 points)Write a C program (with meaningful comments) to solve a problem described in English.
We want to count how many passing grades are entered. We don’t know how many grades there will be. Use a sentinel controlled while loop that will ask the user to enter student grades until a value of -1 is entered. Use a counter variable to count all the grades that are passing grades, where 70 is the minimum passing grade. If there are any grades that are out of the range 0 – 100, present an error message to the user, and do not count that grade as passing. We also would like to see what percentage of the valid grades are passing.
Create two more test cases.
Use following one in addition to the two you create.
Grades Entered: Expected Results
45
90
70
87
123 “That is not a valid grade!”
100
-1 You entered 4 passing grades.
80.0% of the valid grades entered are passing grades.
Deliverables: Paste code, program output and screen shots into one Word document. Presenting your solution is part of the assignment.
Solution to Part 1(paste code and screen shot/s of the output window) – the relational/logical expressions. (20 points)
The code that solves the passing grades problem. Remember to use meaningful comments. (70 points)
Output from running the program 3 different times. Use two test cases that you created and the one I have given you. (10 points
(please each assignment has to be in a different file doc with screenshots of work also has to be in the same file.)