Design nested decision structures that perform the following: If amount1 is greater than 10 and amount2 is less than 100, display the and amount2. greater of amount1
Q: 1. Sum of Numbers Create an application that displays a form similar to the one shown in Figure…
A: vb code is an given below : Public Class Form1 Private Sub Button1_Click(ByVal sender As…
Q: Math Skills Pre-Test Please circle the leter for the comect answer to cach question. If you don't…
A: Here in this question we have given some expressions and we have asked to simplify.
Q: . Why does Visual Studio automatically indent the conditionally executed statementsin a decision…
A: Answer is given below .
Q: Write a Sub procedure that displays a series of asterisks (*) to the control txtOut. Assume the Sub…
A: Since nothing is mentioned, I am assuming txtOut is the name of the text box. Code: Public Class…
Q: A(n) __________ structure tests a condition and then takes one path if the condition is true, or…
A: EXPLANATION: The single alternative decision is basically the construct that contains only those…
Q: ES085 Computer Programming 1 Course Number Course Title Topics Covered: Switch and if-else if…
A: /*C Program with if else if statement to calculate the commision of…
Q: Question: Party budget planning - complex Prompt the user to enter their current budget and the…
A: You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3
Q: The __________ logical operator has higher precedence than the other logical operators.
A: logical-AND operator ( && )
Q: Ocean Levels Assuming the ocean’s level is currently rising at about 1.5 millimeters per year,…
A: Program Plan: Start Visual Studio (or Visual Studio Express). Open a new project and name it as…
Q: Write an If....Then decision structure to compare the two numbers in the following variables:…
A: Since you have not mentioned any programming language we will be using the C programming language.
Q: Visual Studio 2017 Using C#. How to write this in C#. The problem is : A software company sells a…
A: Answer:
Q: Profession After the user has entered these items, the program should display the following story,…
A: C++ used to answer this question
Q: The____________ statement is used to make decisions.
A: Hello student. Greetings from my side. Hope you are doing great. I will try my best to answer your…
Q: D. Syntax of the (if statement) and write a program to calculate y from ((3x-7)if (x -5) the…
A: Objective: This program computes the value of y using the given expressions as, y = (3x - 7), y =…
Q: Area Calculator: Prompt the user to enter two choices 1 or 2. If user enters 1 then ask him for…
A: Write a C++ program which calculates area of square or rectangle depending upon choice of user. If…
Q: C++ Mobile Service ProviderModify the program in Problem 5 so that it also displays how much…
A: Code:
Q: Comm Target Outcome: (CO2) Write algorithms to solve different programming problems using flowchart…
A: Here we make simple flow chart:===================================================================
Q: Problem Statement Write a program to help Florence decide which snacks and beverages to serve her…
A: the c ++ code is an given below :
Q: My Solutions > Tax Calculator (conditional flow control) The simplest income tax calculation for a…
A: We need to write a function using Matlab to compute income tax.
Q: Write a progam to display using decision control statement. 1,4,7,10,13,16,19,22,25
A: write a program to display using decision control statements 1,4,7,10,13,16,19,22,25
Q: C programming language *provide comments Inside the main function write code that will ask the…
A: Let us see the solution Here we are writing a simple C program that calculates the area and…
Q: Using Methods in your programming advances the idea of ________________. Modularization Input…
A: Methods in programming is used to increase code reusability. We don't need to write same code…
Q: Payroll Program with Input Validation Design a payroll program that prompts the user to enter an…
A: hourly_pay_rate = float(input("Enter employee's hourly pay rate (in $): ")) # taking user input…
Q: 1. Use nested if multiple selection structure to write a program that determine the shipping cost…
A: Using Nested if-Statement: In the below Code, Firstly, it is checking for whether…
Q: Conditions written inside decision symbols always contain arithmetic operators (i.e., +, -, *, /,…
A: Please find the answer below:
Q: if stomachache=1 if stomachache=0 and blood-0 display Indigestion and blood -1 display Ulcers
A: I feel that there are some more diseases added to the diagnosis list. Maybe the picture is…
Q: Question: Party budget planning Prompt the user to enter their current budget and the number of…
A: Answer:-
Q: A certain store has the following scheme: Commodity Code: A - commodities are discounted by 10% B -…
A: Actually, program is a executable software that runs on a computer.
Q: Automobile Costs Problem: Design a modular program that asks the user to enter the monthly costs…
A: Here we will use the function to count each expanses.one use for counting monthly and another for…
Q: A(n) _________ structure tests a condition and then takes one path if the condition is true, or…
A: Decision control statement are used to in order to take decision based on some conditions. Examples…
Q: Question Print Daily Company (PDC) needs a program that displays weekly salary. PDC has five…
A: Code with the OOP approach in JAVA is given below along with output
Q: NB: Use C# when answering this question Provide code for a windows form application that…
A: Please refer below for your reference;
Q: The __________of an identifier is the portion of the program in which the identifier can be used.
A: The names you give to variables, types, functions, and labels in your programme are referred to as…
Q: (Financial application: find the profit-per-item) You have just started a new stationary shop. Your…
A: Note: As programming language is not mentioned. So, used C++ language to complete the task. Program:…
Q: 1. Use nested if multiple selection structure to write a program that determine the shipping cost…
A: As per our guidelines we are supposed to answer only one question. Kindly repost the remaining…
Q: A C statement that makes a decision is___________
A: conditional statements like: if , If-else allow us to make a decision, based upon the result of…
Q: Problem Statement for Stock Transaction Program George uses the services of a brokerage firm to buy…
A: n = int(input("Enter the number of shares in the block: "))cp = float(input("Enter the price per…
Q: Enter the number that matches your flooring choice Option 1: Option 2: Option 3: scored concrete…
A: As no language is mentioned, I am solving using C. Written code: // Program to create a simple…
Q: Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z if the…
A: As per policy, only first question is answered. Since, no programming language is mentioned, We will…
Q: Q2 A local club sells boxes of three types of cookies: shortbread, pecan sandies, and chocolate…
A: #include <iostream> #include<iomanip> using namespace std; int main() { int…
Q: Write nested decision structures that perform the following: If amount1 is greater than 10 and…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
Q: True or False A decision structure can be nested inside another decision structure.
A:
Q: Sports exercise advisor algorithm. In this algorithm you will start out with a temperature value in…
A: The given requirement is to develop an algorithm for deciding the sports exercise based on the…
Q: reate a change-counting game that gets the user to enter the number of coins required to make…
A: Required: C++ Visual 2019 Create a change-counting game that gets the user to enter the number of…
Q: Mobile Service ProviderModify the program in Problem 5 so that it also displays how much package A…
A: The code is corrected and the savings for all the packages(A,B and C) are displayed.
Q: Software Šales A software company sells a package that retails for $99. Quantity discounts are given…
A:
Q: Write the pseudocode for the selection structure (if–else) for the following scenario and display…
A: A pseudocode is a formal description of steps used to obtain the desired result from the given…
Q: Using logical operators and conditional statements, write a Visual Basic Code whereby if a student…
A: SOURCE CODE Module VBModule Sub Main() 'Declaring the local variables Dim score As Integer…
Q: My Solution Tax Calculator (conditional flow control) The simplest income tax calculation for a…
A: function…
Q: BOOKS Management System There is Shop named Pakistan Book shop. We need to make a system for this…
A: // Book Rental System #include<stdio.h> #include<conio.h> struct Book{ char…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- # Write python codes here.print("Total E-Customer:", ECustomer.count)c1 = ECustomer("James")c1.setProductDetails("TV",35000,"Air Cooler", 9000)c2 = ECustomer("Mike")c2.setProductDetails("Mobile",20000,"Headphone",1200,"Fridge", 45000)c3 = ECustomer("Sarah")c3.setProductDetails("Headphone", 1200)print("=========================")c1.printDetail()print("=========================")c2.printDetail()print("=========================")c3.printDetail()print("=========================")print("Total E-Customer:", ECustomer.count)Output:Total E-Customer: 0=========================Name: JamesProducts: TV, Air CoolerTotal cost: 44000=========================Name: MikeProducts: Mobile, Headphone, FridgeTotal cost: 66200=========================Name: SarahProducts: HeadphoneTotal cost: 1200=========================Total E-Customer: 3Nice Number Programming: Nice program ask user to enter three integers from keyboard (java console), the three integers represent left bound, right bound and arbitrary digit 'm', where left bound is less than right bound. Program should print all nice numbers in the given range that doesn't contain digit 'm'. The number is nice if its every digit is larger than the sum of digits which are on the right side of that digit. For example 741 is a nice number since 4> 1, and 7> 4+1. with digit m=2. Write a complete program in Java that Call only One method (niceNumbers method) that will print all nice numbers excluding a given digit 'm' that also entered by user?The code should be written in C++ and also should use varibles like integers instead of stuct.
- Anagram words Write a C code that asks users to enter two words, one after the other and checks if these words are anagrams (permutations of the same letters). For instance, the words “smartest” and “mattress” are anagrams. Examplea Run 1: Please enter first word: lookplease enter the second word: coolSorry! “cool” and “look” are not anagrams. Run 2: Please enter first word: masters please enter the second word: smartes Yes! “masters” and “smartes” are anagrams. Hint: If you sort the two words that are anagrams, they will become identical! For instance, “smartest” and “masters” both sort to “aemrsstt” You can use all functions in <string.h> Sorting a string is exactly similar to sorting an array. You just need to know the length of the string and make sure you do not touch the terminating null.This is what I've coded so far. I'm not sure what else to add in terms of what the assignment is asking for. #include <stdio.h> // Austin Chong// The purpose of the program is to use structures in a C Program.// 3 February 2020 struct check{int checkNumber;char date[8];char to[100];double amount;char description[100];}; struct check addCheck(){struct check number;struct check checkDate;struct check writeTo;struct check amountOf;struct check notes;printf("Enter the check number.\n");scanf("%d", &number.checkNumber);printf("Enter the date.\n");scanf("%c", checkDate.date);printf("Who are you writing the check to?\n");scanf("%c", writeTo.to);printf("Enter the check value.\n");scanf("%lf", &amountOf.amount);printf("Enter your description/notes.\n");scanf("%c", notes.description);printf("Your check number is %d, dated %c, writing to %c, with a value of %lf, and with this description.\n", number.checkNumber, checkDate.date, writeTo.to, amountOf.amount, notes.description);};…Computer Fundamentals and Programming 2 Write a program that determines a student’s grade. The program will accept 3 scores and computes the average score. Determine the grade based on the following rules: - If the average score is equal or greater than 90, the grade is A. - If the average score is greater than or equal to 70 and less than 90, the grade is B. - If the average score is greater than or equal to 50 and less than 70, the grade is C. - If the average score is less than 50, the grade is F. Source Codes and Print Screen of the Output
- How can i rewrite this code to make it easier? incorrect_lines = []rhyme_type = get_symbol_to_lines(description[-1])for rhyme_scheme in rhyme_type:rhyming_lines = rhyme_type[rhyme_scheme]if not all_lines_rhyme(poem_lines, rhyming_lines, word_to_phonemes):lines_to_append = []for i in rhyming_lines:lines_to_append.append(poem_lines[i])incorrect_lines.append(lines_to_append)return incorrect_linesConsider the following structure and declarations: struct Player { string firstName; string lastName; int hits; int runs; }; int main() { Player p = { "Jackie", "Robinson", 1518, 947 }; Player team[24]; Player *tPtr = team; team[0] = p; // INSERT CODE HERE } Consider adding these 2 code statements at the location commented "//INSERT CODE HERE". What is printed out? cout << tPtr->hits << " "; cout << team[0].runs; a) it is compiler dependent -- some print out 1518 947, others print out 947 1518 b) 947 947 c) 0 0 d) 1518 1518 e) 1518 947Programming in C#: Write a console-based application that displays every perfect number from 1 through 10000. A number is perfect if it equals the sum of all the smaller positive integers that divide evenly into it. For example, 6 is perfect because 1, 2, and 3 divide evenly into it and their sum is 6. Use format strings(field size 8, right alignment) to show all perfect numbers. Display the results as seen below. 6 28 496 8128
- A student has established the following monthly budget:Housing 500.00Utilities 150.00Household expenses 65.00Tran sporta tion 50.00Food 250.00Medical 30.00Insurance 100.00Entertainment 150.00Clothing 75.00Miscellaneous 50.00Write a modular program that declares a Monthl yBudget structure with membervariables to hold each of these expense categor ies. The program should create twoMonthl yBudget structure variab les. The first will hold the budget figures given above.The second will hold the user-enter amoun ts actually spent during the past month.Using Program 7-19 as a model, the program should create a screen form that displayseach category name and its budgeted amoun t, then positions the cursor next to it forthe user to enter the amount actually spent in that category. Once the user data has allbeen entered, the program should compute and display the amoun t over or underbudget the student's expend itur es were in each category, as well as the amount over orunder budget for the…Java uses a right barace to mark the end of all compound statement what are arguments can you make against that statementVariable names in C, generically called identifiers, use the underscore character to mash together words to make useful names. This is called snake case. For example, double city_sales_tax = 0.08; int days_in_year_2018 = 365; char superman_letter = ‘s’; char *mothers_maden_name = “Smith”; Another way to do this is to omit the underscore but to capitalize the first letter of each word in the identifier, except for the first word. This is called camel case. For example, double citySalesTax = 0.08; int daysInYear2018 = 365; char supermanLetter = ‘s’; char *mothers_maden_name = “Smith”; These are called naming conventions. In general, you can use either in your programs, BUT you need to constantly use one or the other in your code, and avoid mixing the 2 in the same program. Which one makes the most sense to you, and why?