finclude <1ostream ean nane pace std; nt main () Snt a- 10 //Line 1 SA b- 2O //Line 2 HA C - 30: //Line 3 4Rt d- 40: //Line 4 cout « "Line 5: cin - " « cin « endl, //Line 5 cout « "Line 6: Enter four integers: "1 //Line 6 cin > a » b » c » d, //Line 7 cout <« endl; //Line 8 cout « "Line 9: The numbers you entered are:" < endl, cout « "Line 10: a - " « a « ", b -" «b « ", c - - «c < ", d-"<
Q: Assignment 8.1b- Evaluate the following expressions. Assume that the value of x = 25, y = 10, z =…
A:
Q: Q. Write VB.NET code for the following message box: Invalid Dato Vou have entered an invalid amount.…
A: Since nothing is mentioned about invalid amount, I am assuming if amount is less than or equal to 0,…
Q: int s=0, d, x-42; while (x > 0) { d x 8 10; s = s*10 + d; x = x / 10; cout << s < endl; O a. 34 O b.…
A: Initial value of x=42 The while loop will run till the point value of x>0.
Q: ex1="I like numbers containing 7 such as 77, 177, 7897, 6757, 77097, but I do not like numbers…
A: Since there are multiple questions posted, the only first question can be solved according to…
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: Letterl = a' thile letterl < 'b': letter2 = 'w while letter2 <= 'x': print(f' (letterl){letter2}')…
A: Answer :
Q: When the procedure below is executed, then: Read_number proc Ll: mov ah, 1 int 21h cmp al, 'T' jl L1…
A: What is the output when the procedure below is executed?
Q: mary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and…
A: The given problem is to be solved using Python programming language where the program will get a…
Q: -Calculate and display: inner radius, outer circumference, inner circumference, area enclosed by the…
A: Dear learner, hope you are doing well!, I will try my best to answer this question. Thank You!!
Q: plz correct this code #include using namespace std; int main() { int i,sum; sum=0; i=1; do {…
A: Program Details: The above program displays first 10 natural numbers. Later total these numbers.…
Q: Help ASAP for error free. Code
A: #include<stdio.h>#include<stdlib.h>// cscl 315int main(int argc, char *argv[]){ long int…
Q: answer the min Here is the code #include using namespace std; int main() { int numbers[10]; int i;…
A:
Q: 1) Prompts the user in the variables xand y.. 2) Calculates the value of fas follows: Vx2 + y2 f…
A:
Q: 2. F&B Fast-Food Restaurant offers three types of menu. Each customer can make an order based on the…
A: Given below java program which implements the methods to implement above asked program, make sure…
Q: =24882#section-15 Pa new number is divisible by 7, the original number is divisibl My Courses . last…
A: We have to write python program for all the divisibility rules.
Q: int main() { if(var1>50) { num = 20.0 } else { if(var1>35) ---- Line 7 { num= 35.0; }…
A: Given: In order for the value of num to equal 60.0, what should the result of the condition in line…
Q: An Internet service provider has three different subscription packages for its customers: Package A:…
A: import java.util.*; public class InternetServiceProvider { public static void main(String[] args) {…
Q: Find the errors in the following given code. include iostream using namespace std. int average(int,…
A: Given Code, Find the errors in the following given code. #include<iostream>using namespace…
Q: -Caloulate and display: inner radius, outer circumference, inner circumference, area enclosed by the…
A: Firstly calculate outer area A1 using radius r1 with help of given formula. given geometry gives…
Q: code
A: Introduction Java is basically a type of programming language that is very much beneficial and can…
Q: Find and correct the errors in the following code segment that computes and displays the average:…
A: Given program consists of two integers x and y. To find the average of these two numbers (x+y)/2 is…
Q: main(){ int M-20; if(M=340) cout<<M:} 20 O 40 O 21 O
A: Answer: Nothing will be printed last option i guess because its missing the first 3 options are…
Q: int x = 5, y = 10; switch(x>y && x+y>0) { case 1: printf('hi"); break; case 0: printf("bye"); break;…
A: 1) Above program defines variable x = 5 and y = 10 2) In Switch statement it evaluates expression…
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: Print "userNum1 is negative." if userNum1 is less than 0. End with newline. Assign userNum2 with 4…
A: C code to satisfy the above condition o print the value of Usernam1 and Username2
Q: Create two integer variables: x and y. Print if those variables are in following conditions: • x €…
A: Part-1 : create two integer variables : x and y . print if those variables are in following…
Q: 2) Your program will request a lower bound (Ib), an upper bound value (ub) and an increment value…
A: As there is no programming language mentioned so program is attempted in c++ Start input lower…
Q: Valuate the given expressions. All values are an integer folnat. inta=10,b=11c-16,d-0,e-2 Question 1…
A: Operator precedence:- and associativity ,
Q: ete the function that calculates the sum of the first n+1 terms of the geometric series a, ar,…
A: Please find the answer below :
Q: Variable n contains a positive integer value. Which if statement checks if the variable n has 2…
A: In decimal number system(base-10) first 2 digits number is 10 and last 2 digits number is 99. So to…
Q: #include using namespace std; int main() { int A, B, C, Total, Average; cout > A; cout > B; cout >…
A: 1. Answer: The given program first inputs three integers A, B, and C from the user then prints the…
Q: Dim i As Integer, j As Integer, x as single For i = 0 To 14 For j =i+1 To 14 If Val(N(j).text)>…
A: There is one visual basic program given as per following, Dim i As Integer, j As Integer, x as…
Q: 1/wrlee an ALPto evaluate x"(Y+Z)where ALP to evaluate a(y+2)where X=loH, 9=20Handz=3oHant Sbore the…
A: Hi there, please find your solution below, I hope you find my solution useful and helpful. Thank…
Q: -Calculate and display: Calculate outer radius, inner circumference, area enclosed by the outer…
A: #include <iostream>#include<cmath>#define PI 3.1415926535898using namespace std; int…
Q: Start D=0, E=5 E=E+D i=1,5,3 D=i+3*E E j=7,3,-2 j mod3) 0 E=E+2*j E/9, D D=D+3*i+j End
A: Python Code for above flow chart :- D=0E=5for i in [1,5,3]: D=i+3*E for j in [7,3,-2]:…
Q: [*] First program.cpp 1 #include 2 using namespace std; 4 main Please write the 5日{ int X=5; the…
A: Here in this question we have given a code segment and we have asked to find the line wise error in…
Q: -Calculate and display: outer radius, inner radius, inner circumference, area enclosed by the outer…
A: Algorithm: Start Read outer circumference C1 and area of shaded region A0 Define pi as…
Q: What ia wrong with below code."use strict"a=3.14;
A: To be determine: What is wrong with below code."use strict"a=3.14;
Q: How can i change in this code to display the path with 0 and 1 Here in this code 0 are block, 1…
A: #include <iostream> using namespace std; #define N 8 bool pathIS(int a,…
Q: Greetings, i need to modify my code below: 1. Round off the bill to the nearest cent. The…
A: Q: Make necessary changes in the program
Q: Please program in C++
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: f(t)^↑ t 3 6 9 f(t) = t O f(t) = 4 t O f ( +) - 3 +
A: Answer : f(t) = 3t
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: compute z= y-√2, #include #include #include #include using namespace std; int main() { double…
A: The answer is...
Q: ?Which line in the following code is called the prompt line #include //linel using namespace std;…
A: GIVEN:
Q: 1 r = 3 2 S = r + 2 t = True ors >= r print(t, s) r *= s - 2 3 4 S = r % 6 t = t and r <= s 7 8…
A: Please find the answer beloww :
Q: T 7 here O 6. F 3 (Y P. 2. 4)
A: A ternary search tree is a special trie data structure where the child nodes of a standard trie are…
Step by step
Solved in 2 steps with 2 images
- Code the following in DEV C++ Rules: 1. Kindly code it in a proper way 2. The symbols and values are posted here: r1 = outer radiusr2 = inner radiusC1 = outer circumferenceC2 = inner circumferenceA1 = area of circle of r1, area within outer circleA2 = area of circle of r2, area within inner circleA0 = shaded area, outer area minus inner areaA0 = A1 - A2π = pi = 3.1415926535898√ = square root 3. Please don't reject CODE THE FOLLOWING: Calculate and display: outer circumference, inner circumference, area enclosed by the outer circle, area enclosed by the inner circle, area of the shaded region Given: outer radius r1 inner radius r2. Formula to be used: Outer circumference = C1=2πr1, inner circumstance = C2=2πr2, enclosed by the outer circle = A1=πr12, the area enclosed by the inner circle= A2=πr22, rea of the shaded region= A0=A1-A2Q. Write VB.NET code for the following message box:Fix the following code:Dim dblRegularPay As DoubleDim dblOvertimePay As DoubleintRegularPay = 783.87intOvertimePay = 105.92lbl.TotalPay = (dblRegularPay + dblOvertimePay).ToString ('C')
- Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999 and service the primary highway indicated by the rightmost two digits. Thus, the 405 services the 5, and the 290 services the 90. Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also, indicate if the (primary) highway runs north/south or east/west. Ex: If the input is: 90 The output is: The 90 is primary, going east/west. Ex: If the input is: 290 The output is: The 290 is auxiliary, serving the 90, going east/west. Ex: If the input is: 0 Or any number not between 1 and 999, the output is: 0 is not a valid interstate highway number. import java.util.Scanner; public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int highwayNumber; int…Currently in Brazil (year 2021), landline numbers are 8 digits long, and cell phone numbers, 9 digits. This number is regional, so to complete an identification of the user in Brazil that a number corresponds, it is also important the area code (DDD), composed of 2 digits. It's common people provide their phone number either including the area code, or not including it. Just following these size rules, some examples of phone numbers valid in Brazil: 2191231616511323161657191231616532323161632316165912316165 Make a function that receives as input a string containing a sequence of digits, which is supposed to it matches the phone number entered by a user (assume this string it only has digits). Your function must identify if the phone number is a valid number in Brazil (what means, if it fits one of the acceptable standards). If so, your function should return a tuple with two strings, the first containing exactly two digits that match the DDD (or empty string, if the area code was not…You have been contracted by client to develop a program using c++. The Program must have the following specifications.The program must:a. Allow the user to enter the full name of the university - “Ghana Communication Technology University”.b. Print the entire name for the university.c. Count the number of ‘e’ in “Ghana Communication Technology University” and display. d. Print the last 21 characters in “Ghana Communication Technology University”. e. Replace the string “Ghana” in “Ghana Communication Technology University” with “Accra”and print the new name.
- 20.15 LAB: Interstate highway numbers Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, I-405 services I-5, and I-290 services I-90. Note: 200 is not a valid auxiliary highway because 00 is not a valid primary highway number. Given a highway number, indicate whether it is primary, auxillary, and what direction(s) it travels. Python#include <iostream> using namespace std; int main() { cout << "San Jose, California forecast high temperatures: " << endl; int temp[5]= {86,81,73,77,79}; cout << "Monday, September 26, " << temp[0] << " degrees" << endl; cout << "Tuesday, September 27, " << temp[1] << " degrees" << endl; cout << "Wednesday, September 28, " << temp[2] << " degrees" << endl; cout << "Thursday, September 29, " << temp[3] << " degrees" << endl; cout << "Friday, September 30, " << temp[4] << " degrees" << endl; int minimum = temp[0]; int maximum = temp[0]; for (int i =0; i<5; i++) { if (minimum > temp[i]) { minimum = temp[i]; } if (maximum < temp[i]) { maximum = temp[i]; } } cout << endl; cout << "The high for the week is " << maximum << endl; cout << "The…You have been contracted by a client to develop a program using c++. The Program must have the following specifications. The program must: Allow the user to enter the full name of the university - “Ghana Communication Technology University”. Print the entire name for the university. Count the number of ‘e’ in “Ghana Communication Technology University” and display. Print the last 21 characters in “Ghana Communication Technology University”. Replace the string “Ghana” in “Ghana Communication Technology University” with “Accra” and print the new name.
- please i need this code Flowchart // for residentalconst double Bill_Proc_For_Res=4.5;const double Service_For_Res=20.5;const double Prem_Ch_For_Res=7.5; // for businessconst double Bill_Proc_For_Bus=15;const double Service_For_First10=75;const double Service_For_Add=5;const double Prem_Ch_For_Bus=50; int main(){int Accunt_Num;char Costomer_Code;int Num_OF_Prem_Ch;int Num_OF_Connectors;double Total_bill; cout << "Enter Ur Account number" << endl;cin >> Accunt_Num; cout << "Enter Ur Costomer Code" << endl;cout << "R || r for residental" << endl;cout << "B || b for business" << endl;cin >> Costomer_Code; cout << "Enter How many premiume channel U want" << endl;cin >> Num_OF_Prem_Ch; if (Costomer_Code == 'R' || Costomer_Code == 'r'){Total_bill = Bill_Proc_For_Res + Service_For_Res + (Num_OF_Prem_Ch*Prem_Ch_For_Res);cout << "Ur account Number is: " << Accunt_Num << endl;cout << "The total…Need help correcting the 24-hour clock as its showing as regular time! #include <iostream>#include <ctime>#pragma warning(disable : 4996) using namespace std; time_t now = time(0);tm* local = localtime(&now); int hour = local->tm_hour;int minutes = local->tm_min;int sec = local->tm_sec; // Function to display the 12-hour clockvoid Clock12() { // Converts 24-hour clock to 12-hour if (hour > 12) { hour -= 12; } cout << "*****************************" << " " << "*****************************\n"; cout << "* 12-Hour Clock *" << " " << "* 24-Hour Clock *\n"; cout << "* " << (hour < 10 ? "0" : "") << hour << ":" << (minutes < 10 ? "0" : "") << minutes << ":" << (sec < 10 ? "0" : "") << sec << (local->tm_hour < 12 ? " AM" : " PM") << " * ";} // Function to display the 24-hour…What ia wrong with below code."use strict"a=3.14;