The number of lines that can be printed on a paper depends on the paper size, the point size of each character in a line, whether lines are double-spaced or single-spaced, the top and bottom margin, and the left and right margins of the paper. Assume that all characters are of the same point size and all lines are either single-spaced or double spaced. Note that 1 inch = 72 points. Moreover, assume that the lines are printed along with the width of the paper. For example, if the length of the paper is 11 inches and width is 8.5 inches, then the maximum length of a line is 8.5 inches. Write a c# .net program that calculates the number of characters in a line and the number of lines that can be printed on a paper based on the following input from the user:
a. The length and width, in inches of the paper
b. The top, bottom, left, and right margins
c. The point size of a line
d. If the lines are double-spaced, then double the point size of each character
Provide a proper GUI for the user.
The volume of a sphere is 4/3πr3, where π has the value of "pi" given in Section 2.1 of your textbook. Write a function called print_volume (r) that takes an argument for the radius of the sphere, and prints the volume of the sphere.
Call your print_volume function three times with different values for radius.
Include all of the following in your Learning Journal:
The inputs and outputs to three calls of your print_volume.
Given an input file, write a program that will read the file in a multidimensional dynamic array
of employee.
Sort the column employee name by applying each sorting algorithm in such a way that their
respective data in the rows is shifted with the names too, while sorting.
Create an educational program for children that distinguishes between vowels and
consonants as the user clicks buttons. Create 26 JButtons, each labeled with a different
letter of the alphabet. Create a JFrame to hold three JPanels in a two-by-two grid. Randomly
select eight of the 26 JButtons and place four in each of the first two JPanels. Add a JLabel to
the third JPanel. When the user clicks a JButton, the text of the JLabel identifies the button’s
letter as a vowel or consonant, and then a new randomly selected letter replaces the letter
on the JButton. Save the file as JVowelConsonant.java
Create a JFrame and set the layout to BorderLayout. In each region, place a JButton that
displays the name of a classic movie that has the region name in its title. For example, the
east button might indicate the movie East of Eden.When the user clicks the button, display
the year of the movie’s release and the name of one of its stars. Save the file as
JMovieFrame.java.
d) Write the SQL code to delete the row for the person named William Smithfield, who was hired on June 22, 2004 and whose job code classification is 500.
Create a class Point2D , under package "com.cdac.geometry" for representing a point in x-y co-ordinate system.
Function: MDAS
Using the following:
1. Conditional Statement,
2. looping statement
3. Exit
Implement the following problem in C programming language with following functions:
1- A function “Speed” that takes meters and seconds as parameters and returns the speed in meter
per second (m/s).
2- A function “Convert” that returns the kilometer per hour (kph) equivalent of m/s.
Call the above created function in main to test them.
build registration system that allows users (Admin + Client) to create a new account by filling out all the attributes of its class. But, first, you need to create a binary file that will hold all the user data as objects.
Registration details stored in two separate files namely Admin.dat and Client.dat
These files have all data members including Usernames and Passwords.
After successful signup operations, you must show the menu to the user to Login into this system they must enter their username and password and you must verify these details from the files.
After login Users can reset their password and username. Password must be 8 characters long and use of minimum of one special character, uppercase, lowercase, and the numeric digit is a must. The passenger account is only created if a valid 13-digit CNIC is provided and CNIC must not be repeated in the existing
record. Otherwise, appropriate messages should be generated to notify the users. Users provide their basic identification details to register.