Create a program that will display the geometric sequence of an input number and input common ratio. This will also count and display how many terms are there in the sequence. The program will only display the sequence between 0 to 1000.
Q: Many financial experts advise property owners to insure their homes or buildings forat least 80…
A: Many financial experts advise property owners to insure their homes or buildings forat least 80…
Q: Create a program that calculates the total cost of a restaurant bill, including tax and tip.…
A: The C# code is given below with output screenshot
Q: Create a program that will ask the user how much they would like to tip.
A: using System; using System.Collections.Generic; namespace App { class Program {…
Q: Using C++ Write a program that can be used to assign seats for a commercial airplane. The airplane…
A: Program Instruction The program prompts the user to enter Ticket type as FC for first class, BC…
Q: Problem: A small company needs an interactive program to compute an employee’s paycheck. The…
A: C++ Programming which refers to the object oriented programming languages. C++ (or “C-plus-plus”)…
Q: Create a program that allows the user to take exam. The exam should have 10 questions (You can ask…
A: Hi There, This is a simple solution. that can be solved using if-else conditions. Because you did…
Q: In a program, write the program's algorithm that calculates the sum of odd integers (T1) from 1 to…
A: n=int(input()) t1=0 t2=0 t3=0 for i in range(1,n+1,2): t1+=i for i in range(2,n+1,2): t2+=i…
Q: Q [An Introduction to Programming using Visual Basic Ed 11, Ch 6.2 Q# 26]- When $1,000 is invested…
A: Items are not added to a TextBox but Text is. Text can be added to a TextBox using Text property of…
Q: Create a program that calculates the total cost of a restaurant bill, including tax and tip.…
A: Introduction In a simple# program, we use System. System is the namespace and Console is the class…
Q: C Programming Language Task: Pascal's Triangle Write a program to print Pascal's triangle. In…
A: Here is the c program of the above problem. See below steps.
Q: In this program: Write a Visual Basics Program stating the information below Main() Variable to…
A: Sub procedures are like functions that starts with the keyword "Sub" and series of visual basic…
Q: Randomly generate a number in range [1, 12]. Map this number to a season: if the number is 3, 4, or…
A: Programming Language => PYTHON I have provided PYTHON CODE along with CODE SCREENSHOT…
Q: Write a program that generates a random number in the range of 1 through 100, and asks the user to…
A: The answer for the above mentioned question is given in the following steps for your reference.
Q: Using C# in Microsoft Visual Studio create an application that lets the user play the game of Rock,…
A: Introduction: A well-known two-player game. Each round begins with a "rock, paper, scissors, shoot"…
Q: The Fibonacci series is a series that begins with 0 and 1 and has the property that each succeeding…
A: PROGRAM CODE: #include <iostream> // include header file for input output stream…
Q: windows form application is required that captures marks scored by a student in two CATs via…
A: It is defined as a simple, modern, object-oriented computer programming language developed by…
Q: The 24-point card game involves picking any four cards from 52 cards, as shown in Figure 10.20. Note…
A: EXPLANATION Below is the program for the given question. Hope you understand it well. If you have…
Q: Write an application that displays the factorial for every integer value from 1 to 10. A factorial…
A: Program : Factorial.cpp #include <iostream.h>#include<iomanip.h> int main(){…
Q: Write a program that generates a random number in the range of 1 through 100, and asks the user to…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED C FOR THE SOLUTION. Define…
Q: Using C++ Write a program that can be used to assign seats for a commercial airplane. The airplane…
A: The program prompts the user to enter Ticket type as FC for first class, BC for Business Class, EC…
Q: ShowCurrentTime.py, gives a program that displays the current time in GMT. Revise the program so…
A: Code to copy:- import time print("This Program Displays The Time In The Specified Time…
Q: Create a program where a user guesses whether the value of the sum of two dice will be even or odd.…
A: import java.util.Scanner;import java.util.Random; public class Main{ public static void main…
Q: In college, a student may get a grade of 1.0 (as the highest) to 5.0 (lowest). Anyone who get's a…
A: use while(true) loop to check if input grade is valid or not. pass the MG and TFG to…
Q: 1# Write a program that allows users to choose from one of three shapes: Squares, Circles or (right)…
A: As programming language is not mentioned so we are solving this in C++
Q: Monthly Payment Program (in the attached photo), update it with the following in java code: If…
A: The program now uses JOptionPane.showInputDialog() to prompt the user for input instead of…
Q: The text presented the Sierpinski triangle fractal. Inthis exercise, you will write a program to…
A: Program code: Filename: “KochComponent.java” //import the required packages import…
Create a
Step by step
Solved in 2 steps with 3 images
- Create a program where a user guesses whether the value of the sum of two dice will be even or odd. The game will stop when the number of turns has reached 5. To guess odd, the user enters 1. To guess even, the user enters 2. After each roll, the program should display the two numbers rolled,the sum of the numbers, the user's guess as "Even" or "Odd" and whether they won or lost. Once the player ends the game, the program should display the number of times played and the number of turns won and lost and the number of times the dice were even/odd. Technical Requirements: Must use the random function for each die Use a loop to play the game for 5 turns Use an array to track each roll as to whether it was even or odd1# Write a program that allows users to choose from one of three shapes: Squares, Circles or (right) Triangles. Allow the user to use the first letter of the shape (S, C, T) to specify what they want. After the shape is selected, ask the user for the appropriate data to calculate the shape's area, and then and print that area value to the screen for them. Area formulas you can use: Triangle: % base x height Square: length x length Circle: % Pl x radius? Notes: The floating-point data type will be your friend here. Round your area answer so that no more than 2 decimal places are shown when printing on the screen. You can use 3.1415 for Pl; Think about this as a CONSTANT in your code. For this part and especially part (b) below, think about componentizing your code. So one gigantic main() is not a best practice and not what we want to see here. Remember what we discussed about "procedural decomposition" and functions last week!Using C++ Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with six seats in each row. Rows 1 and 2 are first class, rows 3 through 7 are business class, and rows 8 through 13 are economy class. Your program must prompt the user to enter the following information: a. Ticket type (first class, business class, or economy class) b. Desired seat Output the seating plan as shown in the attached image: In the attached image, * indicates that the seat is available; X indicates that the seat is occupied. Make this a menu-driven program; show the user’s choices and allow the user to make the appropriate choices.
- Create a program that calculates the total cost of a restaurant bill, including tax and tip.Explanation: First, the program should ask the user for the cost of the meal. Then, the program should ask for the tax rate (in percentage) for the meal. Next, the program should ask for the tip rate (in percentage) for the meal. The program should then calculate the total cost of the meal, including tax and tip, and display the result to the user. In c# language pleaseCreate a program that calculates the total cost of a restaurant bill, including tax and tip.Explanation: First, the program should ask the user for the cost of the meal. Then, the program should ask for the tax rate (in percentage) for the meal. Next, the program should ask for the tip rate (in percentage) for the meal. The program should then calculate the total cost of the meal, including tax and tip, and display the result to the user.The text presented the Sierpinski triangle fractal. Inthis exercise, you will write a program to display another fractal, called the Kochsnowflake, named after a famous Swedish mathematician. A Koch snowflake iscreated as follows:1. Begin with an equilateral triangle, which is considered to be the Koch fractalof order (or level) 0, as shown in Figure a.2. Divide each line in the shape into three equal line segments and draw an outwardequilateral triangle with the middle line segment as the base to create aKoch fractal of order 1, as shown in Figure b.3. Repeat Step 2 to create a Koch fractal of order 2, 3, . . . , and so on, as shownin Figures c and d.
- Many financial experts advise property owners to insure their homes or buildings forat least 80 percent of the amount it would cost to replace the structure. Write a programthat asks the user to enter the replacement cost of a building and then displays theminimum amount of insurance that should be purchased for the property .Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…3. Create a program that will ask the user how much they would like to tip. You should be able to input how much the bill was. There should be three radio buttons asking for what tip amount you would like to give. 15%(Okay), 18%(Good), and 20%(Amazing). There should be a calculate button that will show the tip amount based on the bill total, and there should be an option to round up the tip. Add onto the program so that there is a custom tip option so that the user can input whichever percentage of the tip they want as well as a fourth tip option(I.e. 50%). This is in Android Studio.
- The 24-point card game involves picking any four cards from 52 cards, as shown in Figure 10.20. Note that the jokers are excluded. Each card represents a number. An ace, king, queen, and jack represent 1, 13, 12, and 11, respectively. Enter an expression that uses the four numbers from the four selected cards. Each card number can be used only once in each expression, and each card must be used. You can use the operators ( *, and /) and parentheses in the expression. The expression must evaluate to 24. After entering the expression, click the Verify button to check whether the numbers in the expression are currently selected and whether the result of the expression is correct. Display the verification in a dialog box. You can click the Refresh button to get another set of four cards. Assume thatimages are stored in files named 1.gif, 2.gif, ..., 52.gif, in the order of spades, hearts, diamonds, and clubs. So, the first 13 images are for spades 1, 2, 3, ..., and 13.Using C# in Microsoft Visual Studio create an application that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows:1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Do not display the computer’s choice yet.)2. The user selects his or her choice of rock, paper, or scissors. To get this input you can use Button controls, or clickable PictureBox controls displaying some of the artwork that you will find in the student sample files.3. The computer’s choice is displayed.4. A winner is selected according to the following rules:• If one player chooses rock and the other player chooses scissors, then rock wins. (Rock smashes scissors.)• If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors…The Fibonacci series is a series that begins with 0 and 1 and has the property that each succeeding term is the sum of the two preceding terms. For example, the third Fibonacci number is 1 which is sum of 0 and 1. The next is 2, which is a sum of 1 + 1. Write a program that displays the first ten numbers in a Fibonacci series.