Test Data :
Input 5 number of elements in the array :
element - 0 : 2
element - 1 : 5
element - 2 : 7
element - 2 : 3
element - 2 : 10
Expected Output:
The values store into the array are:
2 5 7 3 10
The values store into the array in reverse are :
10 3 7 5 2
Write a program named SortWords that includes a method named SortAndDisplayWords that accepts any number of words from the user, sorts them in alphabetical order, and displays the sorted words separated by spaces. Test using two, five, or ten words.
Create a new project, and name it P1T5
Write a program that requests the following information from a user:
Name
Wage per hour
Number of hours worked
It should then calculate the total wage and display a message with this format (note the alignment and currency
Name : David
Wage/hour : R45.00
No Hours : 6
Total Wage : R270.00
Create a new project, and name it P1T4
Write a program that requests a number of minutes from the user and then converts and displays the minutes as hours and minutes
Hint – make use of the / and % operators
Your running program could resemble the following:
Write a program that declares four integers. Your program should request the user to enter the values of the 4 variables (one by one) and then the sum and average of these values must be calculated and displayed.
Your running program could resemble the following:
Create a new console application, and name your project P1T1 (short for Prac1 Task1). In Visual Studio you should see the following code:
Add the statements to make your program write “Hello World” on your screen.
You will need 2 lines of code – one line to put the text on the screen, and one line to ensure that the black output box does not disappear immediately.
To compile and execute your program, click on the
button.
Be sure to save your application.
Create an application that will allow the user to play cow and bull(only 4 character word)
Same character same position-cow
Same character different position-bull
Love
Cow-0,bull-0
Hate
Cow-0,bull-3
When
Cow-2,bull-0
What
Cow-4,bull-0
how to create a program that retrieves the user 's car make , model designation , year model and number_km (how far the car has traveled). For example, let the program ask:
"Which car brand and model?"
"Which model year?"
"How far has it gone?"
Create a program that will transpose the elements (values) of a 16-element two-
dimensional integer array (4x4) Transpose. The value of each element should be obtained
from the user (or inputs).
For example:
Original Entries Transposed Entries
1 2 3 4 1 5 9 3
5 6 7 8 2 6 0 4
9 0 1 2 3 7 1 5
3 4 5 6 4 8 2 6
Write a source-code that counts the number of vowel, consonant letters and the total number of letters on
a text. Use this text: “This is the sample text!”.