The expression 100 / 50 * 2 + 1 evaluates to____________ . a. .67 b. 2 c. 5 d. none of the above
Q: In previous chapters, you created applications for the Greenville Idol competition. Now, modify…
A: The answer is given below:-
Q: (1) Prompt the user to enter two words and a number, storing each into separate variables. Then,…
A: The Answer is in given below steps
Q: Implement the following: 1) Request an integer user input, password, from the console. 2) Use the…
A: Given:
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: One of the following is well defined: char a = ?ff int a=x6 char a = '?ff int a=_x6 Select one: a.…
A:
Q: what will be displayed when you run the code ? a=0;while a<10; a=a+3; end;fprintf('The value =…
A:
Q: Consider the following code snippet. What should be placed in the blank to cause a message to be…
A: In the given code snippet, the output ("Duplicate output") comes when two letters entered…
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: 1. Write a program that prompts the user to enter two points (x1, yl) and (x2, y2) and displays…
A: Here I have taken input from the user and then stored it into 4 different variables. Next, I have…
Q: Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit…
A: PROGRAM: //Header package using System; //Defining class class MainClass { //Defining main()…
Q: A square number is an integer number whose square root is also an integer. For example 1, 4, 81 are…
A: The code is given below.
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: ARGUMENT SEVEN Valid O / Invalid O 1. R: (T v S) 2. T 3. .. -S ARGUMENT EIGHT Valid O / Invalid O 1.…
A: Following are the Answers to the Above Questions: Q1) 1. R. (T v S) 2. T 3. ~S Answer: Valid Q2)…
Q: 2 J <"The <input type="datetime-local Creates a control in which the user can enter a date and time…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: he Billy Goat Fast-Fast Food restaurant sells the following products: Product Price ($)…
A: items = ['Cheeseburger','Pepsi','Chips']price = [2.49,1.00,0.59]print('Items\t\t\tPrice($)')for i in…
Q: 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…
A: Program code #1:
Q: What punctuation is used to signal the beginning and end of code blocks? O a. BEGIN and END Ob{ }…
A: Answer: b. Open and close braces {} In most of the programming languages, functions, classes,…
Q: ?The value 'x' can be represented using which data type -1 a) double O b) char O c) int O d) bool O
A: double is of 8 bytes and it stores fractional number Like double a=2.3 char is of 2bytes and it…
Q: PJ 4 – Temperature Table Please write a C++ program that will get 7 temperatures in Fahrenheit from…
A: The given code gives accurate output as demanded in the question.
Q: 5. The pipe allows sending the below variables between parent and child * O a) integers O b) float O…
A: As per our company guidelines we are suppose to answer only one question. Kindly repost other…
Q: Write the script to do the following, Ask the user to enter an integer, and output whether the given…
A: Answer: The compiler does not identify the keyword 'real', so replace the keyword 'real' of the…
Q: A square number is an integer number whose square root is also an integer. For example 1, 4, 81 are…
A: The answer is
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: ARGUMENT SEVEN Valid D / Invalid O 1. R (T v S) 2. T 3. .. -S ARGUMENT EIGHT Valid O / Invalid 0 1.…
A: We need to find if the given argument is valid or not. ***As per the guidelines only 1st 3 questions…
Q: DimI as integer, jas integer or l=1 to N.text =l+1 =1 pr j=1 to 2*1 =F*j extj e.Print F extI The…
A: Here we have two loops i and j In the second loop the statement F=F*j calculates product.
Q: c++ My code seems to run fine, my total amount due and tax displays correct. my problem is the…
A: Here, the code of C++ is given. The given code works correctly but it not printing the output in the…
Q: please only write the code in your solution goes here part do not change anything else C++ #include…
A: In this question we have to complete the CoordTransform function to change the coordinated and the…
Q: Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit…
A: Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit…
Q: Prompt the user to enter in lengths and widths for the following rooms Living Room Master Bedroom…
A: In the above program, first we need to take input from user length and width of living room, family…
Q: 4. Which operation is used as Logical 'AND' O Operator || O Operator && O Operator & O Operator + 5.…
A: ANSWERS FOR THE GIVEN MCQ's ARE:
Q: Using the Fahrenheit and Celsius APP as a based-line, add Kelvin temperature measurements.…
A: According to the information given:- We have to convert Celsius to Fahrenheit and Kelvin vise versa.
Q: Which of the following is not a data type? а. Теxt b. Integer С. Вoolean d. String What is the…
A: To find the solution for the given question.
Q: 12. Write a program that will ask the user to enter 10 numbers and display the largest number…
A: Given:
Q: Design and implement an application that plays the Hi-Lo guessing game with numbers. The pro between…
A: Program Explanation:- This package is required for the Scanner class. Define the main class.…
Q: What is the value stored in a? int a = 25, b; b= sqrt(a); %3D O b 25 O invalid
A: Answer is invalid
Q: Anita is the owner of a large storehouse. She owns a robot named Wall-E. She wants to program Wall-E…
A: 1. create main function.2. call discard function.3. pass three arguments to discard function.4.…
Q: using c++ complete the code where it says , /* Your code goes here */ compute z= y- √2…
A: using c++ complete the code where it says , /* Your code goes here */ compute z= y- √2 #include…
Q: 1. Please use Visual Studio or Xcode to create a program that asks user giving you 2 numbers, your…
A: Since no programming language is mentioned, I am using python. 1. Algorithm; Start Read first…
Q: While exercising, you can use a heart-rate monitor to see that your heart rate stays within a safe…
A: Algorithm: 1. take user input of age 2. find max hear rate by using given formula 3. find range by…
Q: Write an application that prompts a user for a month, day, and year. Then display the appropriate…
A: java program is as shown below: Java Program to Display Dates in Different Format // Importing…
Q: he National Weather Service (NWS) implemented the new wind o measure the coldness using temperature…
A: Code for it: import java.util.Scanner; class WindChillIndex { public static void main(String[]…
Q: Write an application for a college’s admissions office. Prompt the user for a student’s numeric high…
A: import java.net.Socket; import javax.swing.JOptionPane; public class AdmissionTest {…
Q: #include #include using namespace std; int main() { int choice; cout >…
A: - We need to complete the given program in c++ to restart and shutdown the system.
Q: Complete the given program. This program is to shutdown and restart the computer Also attach…
A: Code in C++: Believe me, this code will run, when I code in my ide I will work fine. it will restart…
Q: A palindrome is a sequence of characters that reads the same backward as forward. For example, each…
A: using System;public class Palindrome { public static void Main(string[] args)…
Q: What will be displayed when you run the following code? a = 0; while a < 20 a = a + 8; end disp…
A: Given:
Q: Write an app that inputs an integer containing only 0's and 1's. This will represent a binary…
A: I have provided C# CODE along with CODE SCREENSHOT and 2 OUTPUT…
Q: 2-[20p] Explain the code shown below according to comment line [10p]. Write exact screen output[10p]…
A: Ans : Code: #include <stdio.h> int main(){ int a[2] = {3,4}; int b[2] = {6,8};…
Q: Write a program that asks the user to enter their monthly costs for each of the following…
A: Please find the answer below :
The expression 100 / 50 * 2 + 1 evaluates to____________ .
a. .67
b. 2
c. 5
d. none of the above
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- 1. Generate a number of random integer values within a given rangeRequirements: - Ask the user the following info: a. How many random numbers they would like to have b. What is the upper and lower limit (e.g. range)? - Generate that many random numbers within that given range - Do not accept negative values for the count, lower or upper limit Help: Here is a simple example on how to generate one random number #include <iostream>#include <ctime>using namespace std; int main(){ /* get the current system time and use it as the seed to generate*/ srand( time(0) ) ; /* retrieve the next random number */ int num = rand() ; /* print it out */ cout << "Random number: " << num << endl; return 0 ;}Note: you need to call "srand" only once (e.g. not inside a loop). Extend your random generating program to make sure that the numbers are unique. In another words, if the number has been generated and appear…#include <iostream>#include <iomanip>using namespace std;int main(){cout << "Welcome to the Temperature Tool of Layla !\n" << endl << endl;double tf1, tf2, tf3, tf4, tf5, tf6, tf7; double tc1, tc2, tc3, tc4, tc5, tc6, tc7; cout << "Please enter 7 temperatures in Fahrenheit: " ; cin >> tf1 >> tf2 >> tf3 >> tf4 >> tf5 >> tf6 >> tf7 ; tc1=5*(tf1-32)/9;tc2=5*(tf2-32)/9;tc3=5*(tf3-32)/9;tc4=5*(tf4-32)/9;tc5=5*(tf5-32)/9;tc6=5*(tf6-32)/9;tc7=5*(tf7-32)/9;cout <<"degree F" <<setw(35) << "degree C" <<endl;cout <<fixed<< setprecision(1)<<tf1 <<setw(35)<<fixed << setprecision(1)<< tc1 <<endl;cout <<fixed<< setprecision(1)<<tf2 <<setw(35)<<fixed << setprecision(1)<< tc2 <<endl;cout <<fixed<< setprecision(1)<<tf3 <<setw(35)<<fixed << setprecision(1)<< tc3…Create an application that plays the Hi-Lo guessing game with numbers. The programme should select a random number between 1 and 100 (inclusive) and then urge the user to estimate the number many times. Report to the user if he or she is accurate or whether the estimate is high or low. Continue offering guesses until the user successfully guesses or decides to leave. To establish if the user wishes to exit, utilise a sentinel value. Count the amount of guesses and report the value when the user successfully guesses. At the end of each game (through leaving or a right guess), ask the user if they want to play again. Continue to play games till the user decides to quit.
- Create an application that plays the Hi-Lo guessing game with numbers. The programme should select a random number between 1 and 100 (inclusive) and then urge the user to guess the number several times. Report to the user whether he or she is correct or whether the guess is high or low. Continue accepting guesses until the user successfully guesses or chooses to quit. To establish whether the user wants to quit, utilise a sentinel value. Count the amount of guesses and report the value when the user successfully guesses. At the end of each game (through quitting or a right guess), ask the user if they want to play again. Continue to play games till the user decides to stop.In Chapter 4, you created a program that generates a random number, allows a user to guess it, and displays a message indicating whether the guess is too low, too high, or correct. Now, create a modified program called GuessingGame2 in which the user can continue to enter values until the correct guess is made. After the user guesses correctly, display the number of guesses made. Recall that you can generate a random number whose value is at least min and less than max using the following statements: Random ranNumber = new Random(); int randomNumber; randomNumber = ranNumber.Next(min, max);In previous chapters, you created applications for the Greenville Idol competition. Now, modify the version of the GreenvilleRevenue program created in Chapter 5 so that after the user enters the number of contestants in this competition, the user is prompted for the appropriate number of contestant names and a code for each contestant that indicates the type of talent: S for singing, D for dancing, M for playing a musical instrument, or O for other. Make sure that all entered codes are valid, and if not, reprompt the user to enter a correct code. After contestant data entry is complete, display a count of each type of talent. Then, continuously prompt the user for a talent code until the user enters a sentinel value. With each code entry, display a list of the contestants with that code, or display a message that the code is not valid and reprompt the user.
- 6- Please I want answer of this question by typing. Many Thanks Bank Muscat sends the monthly transaction report to all its customers through email. When the customer opens the file send by the bank, the customer is required to enter a valid customer ID Number. The ID Number is a six character long ending with 2 uppercase letters. Examples of valid customer ID Numbers: 5678XY 2343WA 8987HL Write a Pseudocode and Draw Flowchart that will: Ask the customer to enter a valid ID Number if customer input is “E”, allow the customer to quit the program if the ID Number is too short, then tell the customer to renter if the last two characters do not follow the rules, then tell the customer allow the customer to keep entering customer ID Number.I needed help writing the code using visual basic not jave thank you. An Internet service provider has three different subscription packages for its customers: Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour. Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per month unlimited access is provided. Write a program that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should then display the total charges.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.
- 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 (please explain each step).Create a C++ console application to find the sum of positive numbers. Please ask the user to enter the he total numbers then input the number. The user can also enter negative values make sure to find the sum of positive numbers only. Thanks in advanceUsing the Fahrenheit and Celsius APP as a based-line, add Kelvin temperature measurements. Operationally, when a user enters: 40C the program will also include 313.15K (kelvin) to the output 104F the program will also include the temperature in as output. 313.5K the program will convert to both Fahrenheit and Celsius as output. using the code i made below #include "pch.h" #include <iostream> using namespace std; const char DEG = 248; // ASCII TABLE degree symbol int main() { cout << "Temperature conversion" << endl << endl; cout << "Given Fahrenheit it will be converted to Celsius\n"; cout << "Given Celsius it will be converted to Fahrentheit\n"; cout << "Enter temperature followed by the units F or ? "; double temp; // temperature char units; // F or C cin >> temp >> units; units = toupper(units); double answer; // hold the conversion switch (units) { case…