Concept explainers
List of variables:
name: stores the name of the person.
birthdate: stores the date of birth entered by user.
worknum: stores the work phone number.
cellnum: stores the cell phone number.
List of functions used:
Write(): To display instructions in string to user.
Convert.ToInt32(): To convert the entered string into integer.
ReadLine(): To read input from user in string format.
Summary Introduction:
Program will use Main () method to prompt the user to enter values for name, birthdate, working phone number and cell phone number. These values are then printed using console.WriteLine().
Program Description:
Purpose of program is to enter values from user and display name, birthdate, work phone number and cell phone number in output.
Trending nowThis is a popular solution!
Chapter 1 Solutions
Microsoft Visual C#
- You have been tasked to create a program named “artistSearchOop” that will allow a user to search for an artist from a table and display the artist information including the Artist name, the artist DVD sale, the artist CD sale, the artist Blu Ray Sale, and the total sale for that specific Artist. You have been given Table 1 which represents the Sales Summary of artists sales.arrow_forwarddesign a java application that will allow a user to capture the top students for a module. allow the user to enter in the module name, followed by the number of students the user would like to capture. continue to capture the results for the number of students entered. once all the student results have been captured create a results report. in the results report display the student results entered, a student count and the average result obtained.17, 18, 19 2019 © the independent institute of education (pty) ltd 2019 page 5 of 9 make use of a method to get the input from the user, another method to accumulate the student results, a method to determine the average result and a final method to create the results report. in your solution make provision if a user has entered in an invalid result amount. any result entered that is below zero (0) is an invalid entry.arrow_forwardCreate a program for "FitFuel Nutrition," an online health and wellness store? The store offers three flagship products: Power Protein Shake, VitaVitality Multivitamin, and Energy Boost Nut Mix. Your task is to outline the logic and structure of a program that provides information about these products, including nutritional details, prices, and ingredients. Requirements: .Display details for each product, such as nutritional information, pricing, and ingredient lists. . Implement a shopping cart functionality that allows users to add products, specify quantities, and calculate the total nutritional content. . Incorporate a discount system where users get a 20% discount on the total cost if they purchase all three flagship products. Include an optional section for users to leave comments or special dietary instructions related to their order. . Output a summary of the user's selected products, quantities, total nutritional content, and any additional comments after they interact with…arrow_forward
- Create an object-oriented program that allows you to enter data for customers and employees. Console Customer/Employee Data Entry Customer or employee? (c/e): c DATA ENTRY First name: Frank Last name: Wilson Email: frank44@gmail.com Number: M10293 CUSTOMER Name: Frank Wilson Email: frank44@gmail.com Number: M10293 Continue? (y/n): y Customer or employee? (c/e): e DATA ENTRY First name: joel Last name: murach Email: joel@murach.com SSN: 123-45-6789 EMPLOYEE Name: Joel Murach Email: joel@murach.com SSN: 123-45-6789 Continue? (y/n): n Bye! Specifications ● ● Create a Person class that provides attributes for first name, last name, and email address. This class should provide a property or method that returns the person's full name. Create a Customer class that inherits the Person class. This class should add an attribute for a customer number. Create an Employee class that inherits the Person class. This class should add an attribute for a social security number (SSN). The program should…arrow_forward1. Create a Windows application that will ask the user to type the student's name and his grades in five (5) subjects. Include validation on the application. Use the following condition: The student is considered passed if his average grade is greater than or equal to 75.00; otherwise, the student failed. 2. Name the project as StudentGradeApplication and the class or fom as frmStudentGradeProgram. 3. Figure 1 shows the example output. 4. Submit the following: .CSPROJ file / .SLN file, screenshot of the output and the link of your recorded video/screen while coding. Student Grade Application O X Name: Jack Paul Grades English 85.05 Math 87.72 Science 91.42 The student passed. The general average of Jack Paul is 88.56. Filipino 93.50 History 85.11 Generate Average Figure 1. Example outputarrow_forwardCreate a simple program for a quiz Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: Create a folder named LastName_FirstName (ex. Dahan yoon) in your local Create a new project named LabExer5B. Set the project location to your own The program shall: contain an array of 10 multiple choice questions with three (3) choices each and require the user to choose among A, B, or C; Note: Cases are ignored. Lowercase letters are acceptable (a, b, c). Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following: an invalid letter (not A, B, or C) a number or any special character blank (no answer) Prompt the user that he can answer again if any of the three (3) exceptions is Display the score.arrow_forward
- For this lab, you will be doing the following in C#: 1) Create a Home form with buttons that when clicked, will open the Account, Email, and eventually the Contact forms. The Account form should be opened in "View" mode. 2) Add code to the Login form so the Account form opens when the user clicks "Create New Account". The Account form should be opened in "Modify" mode. 3) Add code to the Login form that validates the user input before allowing the user the access the Home form. For now, just verify the user enters "user1" and "12345" for the username and password respectively.arrow_forwardPlease written by computer source When logging into a website, you first enter your username and password, then the program checks to see whether the information you entered matches the information in your account and then the program either gives you an error message or logs you in. Describe the programming elements to be used in the correct order.arrow_forwardyou will develop a small Java application with a GUI to help a business owner record the personal and salary information of the employees in his/her organization. We assume that there are at most 10 employees. Each employee has the following personal information: first name, last name, and social security number. In addition, each employee has an employment grade, basic salary, and allowances. There are three employment grades: A, B, and C. Your application should help the business owner to determine the total payment for each employee based on the following table: Grade A Total pay = Basic Salary + Allowances Grade B Total pay = Basic Salary + 1.1 * Allowances Grade C Total pay = 1.1 * Basic Salary + 1.2 * Allowancesarrow_forward
- A(n) _____________ is generated when a user interacts with a GUI object. a. error b. occasion c. method d. eventarrow_forwardThe program will consist of one file - the main application class Name the class appropriately and name the file Program.cs (the default when you create the application) Include documentation at the top of the file that includes Your name Date of development Assignment (e.g., CIS214 Performance Assessment - User Entry of Age) Description of the class The main application class must meet the following requirements Print a line that states "Your Name - Week 4 PA User Entry of Age" Ask the user to enter their age If the age is between 1 and 100 print a message stating the age the user entered exit the program If the age is less than 1 or greater than 100 generate an ArgumentOutOfRangeException print the exception information print an error message If the value is not an integer handle the FormatException print the exception information print an error message Continue asking the user to enter their age until a valid age is enteredarrow_forwardH1. In C# (Windows Form App .NET Framework please) Create an application that serves as a time clock that employees can use to clock in and clock out of work. When the application starts, the employee can click a button to clock in. At some later time the employee can click a button to clock out. The application will then calculate and display the amount of time that the employee worked. Show proper step by step explanationarrow_forward
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning