Write a program that prompts the user for his name and average monthly visa bill. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that prompts the user for his name and average monthly visa bill. The program displays his name and his annual visa bill. You must match the format below EXACTLY (including spaces, uppercase and lowercase). For example, if the user enters "Justin Bieber" as the name and "1000" as the monthly visa bill: What is the name? Justin Bieber What is the monthly Visa Bill? 1000 Name: Justin Bieber Annual Visa Bill: $12,000.00 Hint: annual bill = monthly bill * 12 EXERCISE #3 - 6 Marks. Write a program that prompts the user for a letter. The program prints the letter and the number equivalent. The number equivalent is obtained by casting the char to an int. You must read in the input as a CHAR and you MUST do an explicit conversion using ToChar(). You must match the format EXACTLY (including spaces, uppercase and lowercase). For example, if the use enters "a": Enter the letter: a Char: a Number Equivalent: 97 Hint: Use ToChar() and Toint32() to help you with the required conversions. EXERCISE #4 - 14 Marks. Write a program that prompts the user for her home planet. Please check the following 3 examples. Based on the user's input the program will display the following: Example 1: If the user enters: earth The output message should be: earth. You are an Earthling and you have 10 toes Example 2: -If the user enters: VENUS The output message should be: VENUS. You are a Venusian and you have 12 toes Example 3: -If the user enters: Mercury -The output message should be: Mercury. You are a Mercurian and you have 8 toes With any other input, the output message should be: I am sorry I don't know of that planet You may use either the Toupper() or Tolower() methods You MUST USE ONLY A SWITCH statement to solve this problem [For full marks you need to accept all permutations of earth, venus and mercury, for example: "Earth", "eARTh", "VenuS", "MERCU "Mercury"] EXERCISE #5 -12 Marks. Write a program that prompts the user for her home planet. Based on the user's input the program will display the following: Example 1: If the user enters: earth The output message should be: earth. You are an Earthling and you have 10 toes Example 2: -If the user enters: VENUS The output message should be: VENUS. You are a Venusian and you have 12 toes Example 3: If the user enters: Mercury The output message should be: Mercury. You are a Mercurian and you have 8 toes With any other input, the output message should be: I am sorry I don't know of that planet You may use either the Toupper() or Tolower() methods. You MUST USE A NESTED IF statement to solve this problem [For full marks you need to accept all permutations of earth, venus and mercury, for example: "Earth", "eARTh", "Venus", "MERCUry", "Mercury"] Notes: About plagiarism and copying, please review this video: https://youtu.be/JWpo2Y6eceY - Students that get caught copying will be graded "0" Zero, both the person who provided the answers and person who got the answers. EXERCISE #1 -8 Marks. Write a program that displays the name and address of your college. You must match the format below EXACTLY (including spaces, uppercase and lowercase): Centennial College Address: 941 Progress Ave, Scarborough, ON M1G 3T8 Note: No user input is required. Write a program that prompts the user for his name and average monthly visa bill. The program displays his name and his annual visa bill. You must match the format below EXACTLY (including spaces, uppercase and lowercase). For example, if the user enters "Justin Bieber" as the name and "1000" as the monthly visa bill: What is the name? Justin Bieber What is the monthly Visa Bill? 1000 Name: Justin Bieber Annual Visa Bill: $12,000.00 Hint: annual bill = monthly bill * 12 EXERCISE #3 - 6 Marks. Write a program that prompts the user for a letter. The program prints the letter and the number equivalent. The number equivalent is obtained by casting the char to an int. You must read in the input as a CHAR and you MUST do an explicit conversion using ToChar(). You must match the format EXACTLY (including spaces, uppercase and lowercase). For example, if the use enters "a": Enter the letter: a Char: a Number Equivalent: 97 Hint: Use ToChar() and Toint32() to help you with the required conversions. Write a program that prompts the user for his name and average monthly visa bill. The program displays his name and his annual visa bill. You must match the format below EXACTLY (including spaces, uppercase and lowercase). For example, if the user enters "Justin Bieber" as the name and "1000" as the monthly visa bill: What is the name? Justin Bieber What is the monthly Visa Bill? 1000 Name: Justin Bieber Annual Visa Bill: $12,000.00 Hint: annual bill = monthly bill * 12 EXERCISE #3 - 6 Marks. Write a program that prompts the user for a letter. The program prints the letter and the number equivalent. The number equivalent is obtained by casting the char to an int. You must read in the input as a CHAR and you MUST do an explicit conversion using ToChar(). You must match the format EXACTLY (including spaces, uppercase and lowercase). For example, if the use enters "a": Enter the letter: a Char: a Number Equivalent: 97 Hint: Use ToChar() and Toint32() to help you with the required conversions. EXERCISE #4 - 14 Marks. Write a program that prompts the user for her home planet. Please check the following 3 examples. Based on the user's input the program will display the following: Example 1: If the user enters: earth The output message should be: earth. You are an Earthling and you have 10 toes Example 2: -If the user enters: VENUS The output message should be: VENUS. You are a Venusian and you have 12 toes Example 3: -If the user enters: Mercury -The output message should be: Mercury. You are a Mercurian and you have 8 toes With any other input, the output message should be: I am sorry I don't know of that planet You may use either the Toupper() or Tolower() methods You MUST USE ONLY A SWITCH statement to solve this problem [For full marks you need to accept all permutations of earth, venus and mercury, for example: "Earth", "eARTh", "VenuS", "MERCU "Mercury"] EXERCISE #5 -12 Marks. Write a program that prompts the user for her home planet. Based on the user's input the program will display the following: Example 1: If the user enters: earth The output message should be: earth. You are an Earthling and you have 10 toes Example 2: -If the user enters: VENUS The output message should be: VENUS. You are a Venusian and you have 12 toes Example 3: If the user enters: Mercury The output message should be: Mercury. You are a Mercurian and you have 8 toes EXERCISE #4 - 14 Marks. Write a program that prompts the user for her home planet. Please check the following 3 examples. Based on the user's input the program will display the following: Example 1: If the user enters: earth The output message should be: earth. You are an Earthling and you have 10 toes Example 2: -If the user enters: VENUS The output message should be: VENUS. You are a Venusian and you have 12 toes Example 3: -If the user enters: Mercury -The output message should be: Mercury. You are a Mercurian and you have 8 toes With any other input, the output message should be: I am sorry I don't know of that planet You may use either the Toupper() or Tolower() methods You MUST USE ONLY A SWITCH statement to solve this problem [For full marks you need to accept all permutations of earth, venus and mercury, for example: "Earth", "eARTh", "VenuS", "MERCU "Mercury"] EXERCISE #5 -12 Marks. Write a program that prompts the user for her home planet. Based on the user's input the program will display the following: Example 1: If the user enters: earth The output message should be: earth. You are an Earthling and you have 10 toes Example 2: -If the user enters: VENUS The output message should be: VENUS. You are a Venusian and you have 12 toes Example 3: If the user enters: Mercury The output message should be: Mercury. You are a Mercurian and you have 8 toes With any other input, the output message should be: I am sorry I don't know of that planet You may use either the Toupper() or Tolower() methods. You MUST USE A NESTED IF statement to solve this problem [For full marks you need to accept all permutations of earth, venus and mercury, for example: "Earth", "eARTh", "Venus", "MERCUry", "Mercury"] Notes: About plagiarism and copying, please review this video: https://youtu.be/JWpo2Y6eceY - Students that get caught copying will be graded "0" Zero, both the person who provided the answers and person who got the answers. With any other input, the output message should be: I am sorry I don't know of that planet You may use either the Toupper() or Tolower() methods. You MUST USE A NESTED IF statement to solve this problem [For full marks you need to accept all permutations of earth, venus and mercury, for example: "Earth", "eARTh", "Venus", "MERCUry", "Mercury"] Notes: About plagiarism and copying, please review this video: https://youtu.be/JWpo2Y6eceY - Students that get caught copying will be graded "0" Zero, both the person who provided the answers and person who got the answers. EXERCISE #1 -8 Marks. Write a program that displays the name and address of your college. You must match the format below EXACTLY (including spaces, uppercase and lowercase): Centennial College Address: 941 Progress Ave, Scarborough, ON M1G 3T8 Note: No user input is required. EXERCISE #1 -8 Marks. Write a program that displays the name and address of your college. You must match the format below EXACTLY (including spaces, uppercase and lowercase): Centennial College Address: 941 Progress Ave, Scarborough, ON M1G 3T8 Note: No user input is required.
Expert Answer:
Answer rating: 100% (QA)
Here are the solutions for your exercises EXERCISE 1 using System class Program static void Main Con... View the full answer
Related Book For
Introduction To Java Programming And Data Structures Comprehensive Version
ISBN: 9780136520238
12th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
Although an insurance adjuster is highly qualified and experienced, sometimes he or she is not confident in his or her abilities, especially with new tasks. He seems to believe that any new...
-
Explain the concept of recursion in programming and provide an example of a recursive function.
-
Sparrow, Inc., uses a three- to seven-year graded vesting approach in its retirement plan. Calculate the nonforfeitable percentage for each of the following participants based upon the years of...
-
Discuss the potential civil liabilities under the 1933 Act.
-
Refer to Samsungs financial statements in Appendix A. Compute its debt ratio as of December 31, 2015, and December 31, 2014. Data From Samsung Financial Statement Appendix A Samsung Electronics Co.,...
-
Shingle Enterprises is considering manufacturing a new product. It projects the cost of direct materials and rent for a range of output as shown below. Instructions (a) Diagram the behavior of each...
-
Steve consumes two goods, tacos, T, and Red Bull soda, R. His income is $60 per week, the price of tacos is $3 and the price of Red Bull is $2. [2'] A) What is the equation for his budget line?...
-
Given a directed graph G = (V, E), explain how to create another graph G = (V, E) such that (a) G has the same strongly connected components as G, (b) G has the same component graph as G, and (c) E...
-
J 3. Using Hamming algorithm a. How many parity bits are necessary to encode a word of length 12? < b. Find the code word for representing the 12-bit information word - 100100011010 < c. Assume that...
-
We Shall Remain, Jamestown, and the Pilgrims 1. Describe the Native American experience with the colonists and how it was different from the colonist experience. 2. What motivated the population in...
-
The incidence of unemployment among those employed is higher in the US. The gross flow from employment to out of the labor force is smaller in the US. The net change in the number of individuals in...
-
What are cultural diversity, cultural identity, and cultural pluralism and why are they important to social work?
-
How have Levi's the Jeans impacted the environment? How much does Levi Strauss & Co. pay its employees? Do they receive benefits? (healthcare, vacation, or sick time)? Does Levi Strauss & Co. follows...
-
Write a program to sum the series: 1/1 + 22/2 + 33/3 + ....... n"/n
-
When addressing the following on a Connecticut 1040 form, is the MA tax exempt interest and Puerto Rico tax exempt interest included on line 31 of the 1040, or just the MA tax exempt intererst? Tax...
-
Element compound homogeneous mixture (heterogeneous mixture) 4) A piece of gold has a mass of 49.75 g. What should the volume be if it is pure gold? Gold has a density of 19.3 g/cm (3 points) D=m/v...
-
Write a class that contains the following two methods: /** Convert from feet to meters */ public static double footToMeter(double foot) /** Convert from meters to feet */ public static double...
-
Write a GUI program for Programming Exercise 8.19, as shown in Figures 16.49ab. Let the user enter the numbers in the text fields in a grid of 6 rows and 7 columns. The user can click the Solve...
-
Modify Listing 12.18 WebCrawler.java to search for the word(e.g., Computer Programming) starting from a URL (e.g., http://cs.armstrong .edu/liang). Your program prompts the user to enter the word and...
-
Continuing to focus on evidence associated with the act, concealment, and conversion, use the evidentiary material to continue the examination. In addition, the examiner also starts to think of terms...
-
Consider the following cash flow profile and assume MARR is 10 percent/year. a. Determine the ERR for this project. b. Is this project economically attractive? EOY 0 2 3 4 5 6 NCF -$100 $15 $15 $15...
-
Quilts R Us (QRU) is considering investing in a new patterning attachment with the cash flow profile shown in the table below. QRU's MARR is 13.5 percent/year. a. What is this investment's external...
Study smarter with the SolutionInn App