create a program that determines the type of medal of the total score.The users enters 3 scores from 3 sorts. 10 points is the highest scorein a sport
Programming Tasks:
1. Write a program that will determine if one or both textboxes for username and
password contains empty string. If username or/and password is/are empty then it will
display a message that username and password is required. Otherwise, it will determine
if it correct or incorrect.
2. Write a program implementing Select Case statement that evaluates a character either a
vowel or a consonant.
3. Write a program implementing While loop statement, any Do loops statement, any For
loops statement that display your Name, School, Course and Year level 10 times with
the use of message box.
*** Make SCREENSHOTS of the forms you used in 1-3 and then copy all the CODES.
Screenshots should be taken during PROGRAM RUNTIME.
Hint: Use for loops to input into your functions.
How to can write a C++ program that will print the following shapes.
A.
*
***
*****
*******
*********
B.
*
***
*****
***
*
Given an input undirected graph, write a program to find all articulation points in tgraph. An
articulation point is a vertex whose removal disconnects graph. (Assume that input graph is
connected.) If a graph has no articulation points, it is called a biconnected graph.
Input Format: input text file which describes an undirected graph. first line of file
specifies n & m, number of vertices and number of edges in the graph respectively.next m
lines specify the m edges of graph, one line per edge. An edge is described by its end points. If
number of vertices is n, assume vertices of graph are numbered (0,1,..n-1).
Output Format: Print “Biconnected Graph” if input graph has no articulation points. If
articulation points are found, print vertices articulation points.
Sample Input 1 (for graph shown on the right):
7 8
0 1
0 2
2 1
2 3
4 2
3 5
4 6
5 6
Sample Output 1
Articulation points found:
2
Sample Input 2 (for the graph shown on the right):
4 4
0 1
1 2
2 3
3 0
Sample Output 2
Biconnected Graph
Problem 1: Given an input undirected graph, write a program to check if the graph is two-edge connected or not. If the graph is not two-edge connected, print all the bridge edges. (Assume that the input graph is connected.) Input Format: The input is a text file which describes an undirected graph. The first line of the file specifies n & m, the number of vertices and number of edges in the graph respectively. The next m lines specify the m edges of the graph, one line per edge. An edge is described by its end points. If the number of vertices is n, assume that the vertices of the graph are numbered (0,1,..n-1). Output Format: Print YES, if the input graph is two-edge connected, NO otherwise. If printing NO, print all the bridge edges in the graph. Sample Input 1 (for the graph shown on the right): 8 10 0 1 1 2 0 3 3 4 3 6 4 6 5 4 5 6 7 6 5 7 Sample Output 1: NO 1 2 0 1 0 3 Sample Input 2 (for the graph shown on the right): 8 12 0 1 0 2 0 6 1 3 1 7 2 3 2 4 3 5 4 5 4 6 5 7 6 7 Sample Output 2: YES
Include form validation for name and email. (a) Name field should take first name and last name seperated by a space. The first character of first name and the first character of last name should be in capital. Other characters should be small letters. Digits and special characters are not allowed. Eg: A Amar, Amar A, Amar Amar are valid. But a amar, A. Amar are invalid. (b) email id should be of the form eid@nitk.ac.in eid can have alphabets, numbers, underscores and dots. But eid should start with a letter and end with a letter or a number. It cannot have underscores and dots at the beginning and end of eid. It should then match for @nitk.ac.in. On invalid entry, you can show the specific error besides the field in red color.
In this programming exercise, you will create a Car class definition and a CarTester client program.
The car must have the following properties: make, model, year, price, and two other properties of your own choosing. You must decide what variable type each of these properties should be declared as.
The car object must have at least three constructors. One constructor must be the default constructor. Another constructor must take all six properties and assign them. The third will be one of your own choosing. Any properties not sent to the constructor should be randomly assigned or given a default value.
In addition to the constructors, the car object should have a toString() method.
The CarTester program should ask the user to create three different cars, each using a different constructor. The program should display the information for each car once entered.
Given an equation x1 + x2 + · · · + xn = k, where k is a
constant, and x1, x2, . . . ,xn are nonnegative integers (which are considered
as variables in the equation), list all the solutions. Write a C
or C++ program to solve this problem. The input is a pair of integers
(n, k) with k