. The statement print(‘QWERTY’*2) will print _________ on the screen.a. QWERTYQWERTYb. QWERTYc. QWd. ERTY
Q: ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz You can see that it includes a few…
A: Note :- You have not mention the language of the program, so i'm answering your question in java…
Q: finclude a » b » c » d, //Line 7 cout <« endl; //Line 8 cout « "Line 9: The numbers you entered…
A: Fail (): In C++, the fail() function of the class is used to see if the stream has generated any…
Q: 1. Generate a number of random integer values within a given range Requirements: - Ask the user…
A: Step 1:- Program Approach:- 1.Declare the 3 variable of type integer 2.Declare the variable of a…
Q: Write a code that can fınd out the summation of the following series. -* + * - *+. X2 | 3! (n+1)!
A: Given: Where, n is an odd number and n will be provided by the user. Do not use any built in…
Q: what will be displayed when you run the code ? a=0;while a<10; a=a+3; end;fprintf('The value =…
A:
Q: Create a time conversion program that prompts the user for a time in minutes. The program will…
A: Create a C++ program and inside the main method declare all required variables. And then take input…
Q: Please help!! I don't understand most of the code. Please leave comments as explanations on every…
A:
Q: 2. Trace the following flowchart for value (number=131): www number X T Output messages A Engine xox…
A: TRACE TABLE : NUMBER X T Output message 131 0 131 No Output 121 1 131…
Q: Complete the loop so that it displays all mountains that are over 15000 feet. The blank ____ on…
A: Given a swift program, to fill in the blank in the code to display all mountains that are over 15000…
Q: Write a program that computes the following 5 G)- 3N N-1 (G)-3M):- :. Below is a sample.
A: The above question is an equation and the solution written in C++.
Q: Taking a Restaurant Order: Sentinel Style. Using the restaurant menu you selected in assigment below…
A: The program is implemented in python with procedural approach. We have multiple if else statements…
Q: What would this code display? nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"] if…
A: The problem is based on lists and conditional statements in python programming language.
Q: How would the flowchart for this code look like? # -*- coding: utf-8 -*- """ Created on Sun Dec 13…
A: The flow char for the given program is
Q: Write a program box_redux.py that prints out a box with variable height! The height shall be…
A:
Q: o not copy from other websites. Code with comments and output screenshot is must. Thank you! Q.…
A: import java.util.*;public class Main{ public static void main(String[] args) { Scanner sc=new…
Q: What is output to the console if the width is 10, the fill character is 'A left is set, and the…
A: The fill character is the character which is used by output insertion functions that is used to fill…
Q: Write a program that can take an integer from a user and find out that the number is divisible by 7…
A: take an integer from a user and see whether it is divisible by 7 or not
Q: i am getting whitespace error on output : I-290 is auxiliary, serving I- 90 going east/west. it…
A: Summary after fixing the code, I have provided PYTHON CODE along with SCREENSHOT OF CODE…
Q: Create a VB.NET Console Application that uses the While loop to display all leap years between 2010…
A: Actually, program is an executable software that runs on a computer.
Q: A website sells three products whose retail prices are: Product 1: $2.98 - Product 2: $4.50 -…
A: ExplainationHere is the way to deal with address the program 1 Create the cluster to store all the…
Q: First, enter a list of five integers. Then, output a list of five integers. Finally, output all…
A: Below find the solution number = int(input()) values = [] for i in range(number):…
Q: It is a space in memory filled .. with fixed value that will not be changed constant variable O…
A: Variable :- It is a space in memory filled with a varied value that can change in a program value…
Q: trying to get rid of the space at the last printed word i have no idea how to do it
A: The simplest way to get rid of the space at the last printed word is to reduce 1 iteration in while…
Q: *11.15 (Area of a convex polygon) A polygon is convex if it contains any line segments that connects…
A: Program: /**ConvexPolygon.java**/ import java.util.Scanner; public class ConvexPolygon { public…
Q: A website sells three products whose retail prices are: Product 1: $2.98 - Product 2: $4.50 -…
A: Here is the approach to solve the program Create the array to store all the value . The index…
Q: #include using namespace std; int main() { char ch; cout>choice; cout>ch; cout>ch; cout>ch;…
A: Code //This program is For Freddy's Pizza#include <iostream>using namespace std;int main(){…
Q: H26.CPP ---------------------------------------------------------------- #include #include…
A: Working code implemented in C++ and appropriate comments provided for better understanding. Here I…
Q: Project 9-1: Interest Calculator Create a program that calculates the interest on a loan. Console…
A: Here I have used an infinite loop. Inside the loop, I have taken input from the user and then…
Q: Mathletes Game! With the introduction of loops, we now know enough about programming to begin…
A: Please check the below c++ code
Q: Example I/O layout: Enter radius of a circle: 5.0 Area of a circle: routput the result in function…
A: C++ Program: #include <iostream>using namespace std; // Declare function areaCirc() Using…
Q: 1.Create simple number guessing game as follows. First, prompt the user to enter a min and max…
A: Given: please use java to answer the following question
Q: Create a C++ console application to find the sum of positive numbers. Please ask the user to enter…
A: Below is the required C++ program: - Approach: - Import the header file and use the namespace for…
Q: You must write a script that prints a table of inches and their equivalent centimeter values. You…
A: Python code to convert inches to centimeters min = int(input())max = int(input()) print("Inches and…
Q: what is each line of the code below do? #include "mbed.h" #include "Servo.h" #include "Map.hpp" 1.…
A: Below i have answered in comments:
Q: Create a VB.NET Console Application that uses the While loop to display all leap years between 2010…
A: Algorithm: 1. Start 2. Initilaize y to 2010 3. Using while loop traverse from 2010 to 2050 4. Inside…
Q: Complete the program below, so it works. User enters amount to invest, interest percentage and…
A: This question explains about C# Program
Q: Create a VB.NET Console Application that uses the While loop to display all leap years between 2010…
A: Visual Basic .NET is a multi-paradigm, object-oriented programming language, implemented on the .NET…
Q: ate the volume of a sphere whose radius is provided by the user. Use Math.pow() to solve this…
A: Q. Q. Write a program to calculate the volume of a sphere whose radius is provided by the user.…
Q: A website sells three products whose retail prices are: Product 1: $2.98 - Product 2: $4.50 -…
A: using System;public class HelloWorld{ public static void Main(string[] args) { double…
Q: if (e.pane.length > 1) { ZayTestControl. size = new…
A: SUMMARY: - hence , we discussed all the points. Hence, We discussed all the points.
Q: Write a JavaScript code to ask the user to enter two numbers, then passes the numbers to a function…
A: <script> function MultiplyNum() { var a =…
Q: switch(color) case 'g': cout<<"green case 'r: cout<<"red\n case 'y: cout<<"yellou 'red) in'
A: As colour is not initialised to anything it prints the thing that is present in default in default…
Q: s. Create a program that will allow a user to enter 2 numbers using input dialog boxes and calculate…
A: Introduction:
Q: A-C, identify the errors and rewrite the statement. Save your code as PE4_2.py. myList =…
A: myList = ['apple','banana','cherry']print(myList[3]) The above array can't be printed like this…
Q: Coding Question: A car's odometer tells you how far (in miles) you traveled. Each number is…
A: Here have to determine c++ code for odometer represent in array.
Q: Project 9-1: Interest Calculator Create a program that calculates the interest on a loan. Console…
A: According to the information given:- We have to follow the instruction in order to get desired…
Q: 21 menu.py ogram that asks the user to input an integer value (n) and displays the following menu: -…
A: int_value = input("Enter An Integer Value : ")# typecasting to intint_value = int(int_value)…
Q: What is programming? "Print hello world" 20 times is while loop.
A: Question What is the programming ? "print hello word" 20 times is while loop.
Q: C++ Code Please Help Im Confused (1) Prompt the user to enter a string of their choosing. Store the…
A: Since there are multiple questions and as per our guidelines, we are authorized to answer one…
. The statement print(‘QWERTY’*2) will print _________ on the screen.
a. QWERTYQWERTY
b. QWERTY
c. QW
d. ERTY
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Please help!! I don't understand most of the code. Please leave comments as explanations on every line of the code. def repeatChar(numRepeats, outputChar):'''output the outputChar numRepeats times'''for colNo in range(numRepeats):print(outputChar, end='')def Parrallelogram(side, char):for i in range(side):repeatChar(i+1, char)print()for i in range(side):repeatChar(i+1, ' ')repeatChar(side-i-1, char)print()def outlineParallelogram(side, char):for i in range(side):if (i < 1):repeatChar(1, char)elif(i == 1):repeatChar(2, char)else:repeatChar(1, char)repeatChar(i-1, ' ')repeatChar(1, char)print()for i in range(side-1):if (i == side-2):repeatChar(side-1, ' ')repeatChar(1, char)else:repeatChar(i+1, ' ')repeatChar(1, char)repeatChar(side-i-3, ' ')repeatChar(1, char)print()print('This program will show a parallelogram and its outline')number = int(input('How long do you want each side to be? '))character = input('Enter the character: ')Parrallelogram(number,…The formulas for calculating BMI are B M I = 703 ⋅ w e i g h t I n P o u n d s/ h e i g h t I n I n c h e s 2 or B M I = w e i g h t I n K i l o g r a m s /h e i g h t I n M e t e r s 2 Create a BMI calculator that reads the user’s weight and height (providing an option for the user to select which formula to use), and then calculates and displays the user’s body mass index. Also, display the BMI categories and their values from the National Heart Lung and Blood Institute: http://www.nhlbi.nih.gov/health/educational/lose_wt/BMI/bmicalc.htm (Links to an external site.) so the user can evaluate his/her BMI.Question 5 RSTUDIO Question. Please show R input and ouput code. Full explain this question and text typing work only thanks
- Create IPO Charts for each of the following: A computer technician works for $50 nan hour at his regular paying job of 40 hours a week. If he takes private jobs, he charges $150 an hour. Write a program to read the number of private jobs he has this week and the number of hours it takes him to perform the jobs. Calculate the total amount of money he earns. To enter a theme park, children under 12 pay $3; children older than 12 and adults pay $7; babies 2 years and younger pay $0. Input the number of people entering the park. Read whether a person entering the park is an adult, child, or baby and calculate the total revenue earned by the park for that day.A website sells three products whose retail prices are:Product 1: $2.98 - Product 2: $4.50 - Product 3: $9.98Write an app in C# that reads a series of pairs of numbers below:a) product numberb) quantity soldYour app should use a switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the app should stop looping and display the final results.This is my code till now.please modify this code to print the output. #include<iostream> using namespace std; class Device { public: string description; Device() { description="Floppy Disk"; cout<<"I'm a Device constructor"<< endl; }; ~Device(){ cout<<"I'm a Device destructor"<<endl; }; }; class Headphones:public Device{ void play(){ cout<<"Play Music"<<endl; } void device_type(){ string headphones; string color="black"; } std::string get_color(color) { return(color); } }; class Microphone: private Device{ void record(){ cout<<"Record voice"<<endl; string device_type="microphone"; } }; class headphones_with_microphone: public Headphones, public Microphone { std::Get_device_type(){ return device_type; } }; class Output: headphones_with_microphone { void print_out(){ return(description); play(); record(); Get_device_type(); } }; int main() { Output obj; obj.print_out(); return0; }
- Please draw the correct flowchart for this game ? # Function to display question and answer def new_game(): guesses = [] Right_guesses = 0 question_num = 1 num = 1 for key in questions: print("\n------------------------- \n") print("Question " + str(num) + "\n" ) num += 1 print(key) for i in options[question_num-1]: print(i) guess = input("\nAnswer (A, B, C, or D): ") guess = guess.upper() guesses.append(guess) Right_guesses += check_answer(questions.get(key), guess) question_num += 1 display_score(Right_guesses, guesses) # ------------------------- # Function to check answer def check_answer(answer, guess): if answer == guess: print("\nYour Answer Correct!") return 1 else: print("\nYour Answer Wrong!") return 0 # ------------------------- # Function to display score def display_score(Right_guesses, guesses):…A. The regular expression/\b\$\d+/gwill match words beginning with a dollar sign and one or more digits, such as"$5"or"$500". Select one: True False B. Given that you can calculate the circumference of a circle by multiplying its diameter times pi, in JavaScript you can use the statement circumference = d * Math.PI;to calculate the circumference of a circle with the diameterd. Select one: True FalseYou are required to take two strings input from the user at runtime, later display a menu to the user with the following options: 1. Copy string 1 to string 22. Compare the two strings to see if they are same3. Calculate the length of both strings4. Add string 2 in string 15. Convert string 1 to uppercase6. Convert string 2 to lower caseDefine functions for each of the above mentioned options. Use predefine string functions to achieve the task.
- (c program only) 2. Jack `N Poyby CodeChum Admin Jack `N Poy is a very common game since our childhood days. Just thinking about it makes me reminisce how I crushed my cousin in this game until he cried ? I want to feel the glory again of being very good at something. Could you help me recreate the game? It's really simple. In Jack `N Poy, there are two players who both select either one of the following options: RockPaperScissors The winner is selected depending on the following rules: Rock beats ScissorsScissors beats PaperPaper beats RockIf both players chose the same option, then it's a tie Instructions: In the code editor, you are provided with an enum called option which contains three possible named values:ROCK - 'r'PAPER - 'p'SCISSORS - 's'Your task is to ask two users for there chosen options. And then based on their options, determine the winner.Input 1. Option selected by Player 1 2. Option selected by Player 2 Output If Player 1 wins, print the message "Player 1…In android studio how do you write two user input numbers separated by a /?Will upvote! Please make a simple arduino uno code that uses a 4-digit 7-segment display (HIGH=LED ON, LOW=LED OFF) as a clock that displays the hours and minutes. Thank you!