b) 1 Dim num As Integer 2 Dim result As Integer =1 3 For i As Integer 4 result *- num %3D = 10 To (num ^ 2) step -10 5 Next 6i-i^num
Q: Providing information to someone reading the program would be done in a(n): A memory…
A: The answer is
Q: ta asciiz asciiz : .asciiz Ext Lobl main "Enter the first number: " "Enter the second number: "The…
A: Given the assembly language multiplication program with some blanks and options. Here are the…
Q: Direction: Answer the following, write your answer in a word document and convert it to pdf file. 1.…
A: Summary: In this question, write some basic programs related to operators, below is the code…
Q: 1- Suppose you have the fallowing code segment convert it to suitable excel formula, note : Suppose…
A: This formula is about multiply the column A and B and put it on C and the add every element of C.
Q: |Enter a message: i hate comfun this semester, Enter a character or phrase to be replaced: zd Enter…
A: Include the required libraries. Declare the main function. Declare variables of appropriate data…
Q: elp with these 2 C++ Codes. Please provide detailed steps in code typed not handw
A: Program Approach: 1- In the first example, prompt a message to take the input string from a user…
Q: k= 0 finalrow Cells(Rows.Count, 1).End(xlUp).Row For i = 7 To finalrow step 2 k k+Cells(i, 2).Value…
A: Answer: 50
Q: : Inputs: number The user inputted number between 0 and <4000. : Out put: roman numeral The string…
A: According to the information given:- We have to print the roman number from user input positive…
Q: a. case A iS when load => B B B B<= div; RESULT <= NUM(2)/c; end case; b. if NUM(4) = 7o then c<=…
A: The answer for a and b is given below with explanation
Q: Trace the following flowchart and complete the Table 1 (fill in ALL the blanks). Start n-13 n15 End…
A: In the beginning, the given value n is 13, in the first decision box it will check that n<15 or…
Q: enqueue (A) enqueue (B) dequeue() enqueue (5) enqueue (C) dequeue() first() (7)
A: enqueue (A) enqueue (B) dequeue() enqueue (5) enqueue (C) dequeue() first() enqueue (7)
Q: Mobile Service Provider A mobile phone service provider has three different data plans for its…
A: Ask the user for his package and the gigabytes used. Calculate the total amount that needs to be…
Q: d) Calculate and display the amount to be paid by each patient after deducting insurance company…
A: Add your Id and name inside <> at line 2 and line 3
Q: (A.) EnQueue('C'); (B.) EnQueue('O'); (C.) EnQueueTwo('D', E'); (D.) char x; DeQueue(x);
A: Enqueue operation on queue data structure populates element in first in first out manner.
Q: 8 Evaluate > r(3+2r +r2) T=1
A: Since no programming language is mentioned, this problem is solved by using discrete mathematics.
Q: Design pattern is a solution to repeatedly occurring problem in various context Select one: O True O…
A: Answer : True The above given sentence is true and the explanation is given in the step 2
Q: 1 tart 0, 1 S3 So S1 S2 Requled
A: We are given a finite automata and we are going to find out regular expression for it. We are going…
Q: 3.21 LAB: Interstate highway numbers Primary U.S. interstate highways are numbered 1-99. Odd numbers…
A: Answer in step2
Q: 3. Examine the given flowchart and answer the following question. start input employee #, hours, pay…
A: - We have to work on the flowchart to make it work for the instructions. - We have to add the loop…
Q: Golf scores record the number of strokes used to get the ball in the hole. The expected number of…
A: Solution:
Q: Create pseudocode and flowchart for the following assigned problem. Test the program with sample…
A: Problem Statement : Convert an integer number in decimal to binary. For the above problem, we need :…
Q: Joe wants to record each transaction through the day and get the sum at the end of day. He would…
A: Required: Joe wants to record each transaction through the day and get the sum at the end of the…
Q: i. How many times the above statement will be exe ii. Write down the Big-O for the above statement?…
A: QA. 1. The first loop k will run from k=0 to A. so total number of times print statement getting…
Q: Enter intege 4 You entered: 4 squared is And 4 cubed Enter anothe 5
A: Code: #include <iostream> using namespace std; int main() { int userNum; int userNum2;…
Q: problem9_getSoundLevel Sound level L in units of decibel (dB) is determined by L = 20 log10 Po where…
A: Here I have defined the function problem9_getSoundLevel(). In this function, I have taken input from…
Q: Q4 Answer Q4(a) and Q4(b) based on Figure Q4. DIY Sdn Bhd is selling retails goods. Customer may…
A: Answer: Q4(a)
Q: Your Name - Week 2 PA Smallest Number Finding the Smallest Value: How many integers would you like…
A: According to the information given:- We ahem to follow the instruction in order to get desired…
Q: QUESTION 1 Melody Piano Club provides a piano course for a student based on lesson hours. The…
A: NOTE: The output image contains an error in the total charge calculation its shows Total charge is…
Q: nat: 0 pectiv value
A:
Q: Q3: Assume that a, b, c, ánd d are defined as follows, and calculate the results of the following…
A: According to the information given:- We have to follow the instruction in order to perform…
Q: Sample 6-1 Solus us ing programing cnot ct* P1Z Construct a program. to create a 10 by 10…
A: Declare 2 variables 1 for multiplication and 1 for which number's table to print next create a do…
Q: Question No 5 Assume that the following variables have been defined: 1. .data val1 dw 2000Oh val2…
A: ANSWER:
Q: Input: 1. The first line of input contains a single integer Q (1sQs10), which is the number of…
A: According to the question below the Solution: Output:
Q: Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus.…
A: Coronaviruses are a family of viruses that can cause illnesses such as the common cold, severe acute…
Q: C++ 3.23 LAB: Interstate highway numbers Primary U.S. interstate highways are numbered 1-99. Odd…
A: CODE:- #include <iostream> using namespace std; int main(){ int way; cout << "Enter…
Q: 1- Suppose you have the fallowing code segment convert it to suitable excel formula, note : Suppose…
A: Required: excel
Q: a +b*c bb ac" go 91 92 b'a+c 9.
A: Regular expression of the given language
Q: Please design a data structure to allow the following three operations: 1. push (insert a new…
A: Please design a data structure to allow the following three operations: 1. push (insert a new…
Q: Enter first value: 5 Enter second value: 2 Select Your Choice 1: Add 2: Subtract 3: Multiply 4:…
A: Here I have taken input from the user and stored the numbers into different variables. Next, I have…
Q: 10 DIM A (3.3) 20 FORI= 1 TO 3 30 FOR J= 1 TO 3 40 READ A(I.J) 50 DATA 1.2.3.4.5,6.7.8.9 60 NEXT J
A: here have to determine about find true false for given code snippet.
Q: 1- Suppose you have the fallowing code segment convert it to suitable excel formula, note : Suppose…
A: Converted the above given code segment to suitable excel formula as shown below. For the first for…
Q: Write C++ code to handle the following tasks. Every course offered in university has credit hours.…
A: Purpose of the program: This program computes the grade obtained by a student when total credit…
Q: II Program prompts users for names and quantities for a $2.00 product abd displays total for each…
A: the solution is given below :
Q: Please enter an integer value: 0 Please enter an integer value: 45 Please enter an integer value: 65…
A: The program ask user to enter 5 unique integer values. It then prints those integers, find minimum…
Q: LRU stands for? a. Least Recently used b. Less Recently used c. Least Recurrently used d. Least…
A: LRU stands for?a. Least Recently usedb. Less Recently usedc. Least Recurrently usedd. Least Randomly…
Q: Find the common log and natural log values of the following numbers.
A: Below i have answered:
Q: emory is and 10 r o is 80% memory f memor
A:
Q: nValues = [5, 10, 20, 40, 80,160]; r = []; for i-1:length(nValues) n = nValues (i); rSum = 0; for j…
A: int mysolvecheck()nValues [5, 10, 20, 40, 80, 160];r = [];for 11:1ength(nValues)n = nValues(i);rSum…
Q: choose 1 2 , or e 1 to print the symbol with first character 2 to print the symbol with second…
A: C++ program to solve the given problem is below.
Step by step
Solved in 2 steps
- C++ Help Please! Complete the code provided to add the appropriate amount to totalDeposit. #include <iostream>using namespace std; int main() { enum AcceptedCoins {ADD_QUARTER, ADD_DIME, ADD_NICKEL, ADD_UNKNOWN}; int totalDeposit = 0; int userInput; totalDeposit = 0; cout << "Add coin: 0 (add 25), 1 (add 10), 2 (add 5). "; cin >> userInput; if (userInput == ADD_QUARTER) { totalDeposit = totalDeposit + 25; } /* Your solution goes here */ else { cout << "Invalid coin selection." << endl; } cout << "totalDeposit: " << totalDeposit << endl; return 0;}Integer userValue is read from input. Assume userValue is greater than 10000 and less than 99999. Assign thousandsDigit with userValue's thousands place value. Ex: If the input is 26498, then the output is: The value in the thousands place is: 6 #include <iostream> using namespace std; int main() { int userValue; int thousandsDigit; int tempVal; cin >> userValue; /* Your code goes here */ cout << "The value in the thousands place is: " << thousandsDigit << endl; }C++ #main.cpp #include <iostream>using namespace std; #include "ItemToPurchase.h" int main() {/* Type your code here */return 0;} #ItemToPurchase.cpp #include <iostream>using namespace std; #include "ItemToPurchase.h" /* Type your code here */ #ItemToPurchase.h #ifndef ITEM_TO_PURCHASE_H#define ITEM_TO_PURCHASE_H #include <string>using namespace std; /* Type your code here */ #endif
- #include <iostream>using namespace std;int main(){int A, B, C, Total, Average;cout << "please enter value A:";cin >> A;cout << "please enter value B:";cin >> B;cout << "please enter value C:";cin >> C;cout << "\nInserted values: " <<endl;cout << "value A = " << A <<endl;cout << "value B = " << B <<endl;cout << "value C = " << C <<endl<<endl;Total = A + B + C;Average = Total / 3;cout<< "1. The largest value is: ";if(A > B){if(A > C)cout<< "A = " << A <<endl;elsecout<< "C = " << C <<endl;}else{if(B > C)cout<< "B = " << B <<endl;elsecout<< "C = " << C <<endl;}cout<<"2. Total value is: "<< Total <<endl;cout<<"3. Average is: "<< Average <<endl;return 0;} QUESTION 1. Explain what the program does.2. What is the outputYou can create a _____ to define what data values are allowed in a cell. A. custom error B. macro C. conditional formatting rule D. validation ruleint cal_media() {cout<<"Enter Your Name"<<endl;cin>>name;cout<<"Enter the Both subject marks"<<endl;cin>>marks1>>marks2;totalmarks = marks1 + marks2;} Question 4: On above code overload unary operator prefix decrement and post fix increment forthe calc-media() function.
- 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):…Question 6 sm .Write in C code please starting with #include <stdio.h> Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this lineC++ CODERS!Please complete the lost password function and the sign in account function. Will rate, thank you! //Accounts class detail#include <iostream>using namespace std;#include <fstream> class Accounts{private:char first_Name[40];char last_Name[40];int std_id;int std_age;int std_major;int user_input;public://gathering info of studentvoid getStd(void);//display info o studentvoid display_std(void);void Title(void);void Menu(void);void new_Account(void);void sign_in_Account(void);void lost_password(void);};void Accounts::getStd(void) {cout<<"Enter the student information"<<endl;cout<<"Accounts name: ";cin>>first_Name;cout<<"Accounts ID: ";cin>>std_id;cout<<"Accounts Age: ";cin>>std_age;cout<<"Accounts Major: ";cin>>std_major;}void Accounts::display_std(void) {cout<<"The Accounts information"<<endl;cout<<"Name: "<<first_Name<<endl;cout<<"ID:…
- #include <stdio.h>#include <stdlib.h> //declaring variables globally to calculate coinsint cent50 = 0;int cent20 = 0;int cent10 = 0;int cent05 = 0; //calculate change//pass change variable by addressvoid calculateChange(int* change) {//calculate change only if change is positiveif(*change > 0) {if(*change >= 50) {*change -= 50;cent50++;}else if(*change >= 20) {*change -= 20;cent20++;}else if(*change >= 10) {*change -= 10;cent10++;}else if(*change >= 05) {*change -= 05;cent05++;}//call calculateChange recursively calculateChange(change);}} // function to display the cents valuesvoid printChange() { if(cent50)printf("\n50 Cents : %d coins", cent50);if(cent20)printf("\n20 Cents : %d coins", cent20);if(cent10)printf("\n10 Cents : %d coins", cent10);if(cent05)printf("\n05 Cents : %d coins", cent05);//reset all cent variables with 0cent50 = 0;cent20 = 0;cent10 = 0;cent05 = 0; } //take change input from user//change variable passed addressvoid TakeChange(int*…// *************************************************************** // Identify the incorrect code by line number (i.e. 1, 6, 18). Enter one line number in each answer box. // This code snippet is from a program that inputs chararacters from // UART RX1, echos back chars+1. // *************************************************************** 1.#include "pic24_all.h" 2.#include "std_io.h" 3.int main(void) { 4. uint8_t u8_c; 5. 6. configClock(); 7. configDefaultUART(DEFAULT_BAUDRATE); 8. 9. printf("\nHello World!\n"); 10. 11. // Echo character + 1; 12. while (1) { 13. u8_c = inChar(); //get character 14. outChar(u8_c); //echo the character 15. u8_c++; //increment the character 16. outChar(u8_c); //echo the character 17. } // end while (1) 18.} File the two missing partReview the following code, find the error in the code: contents = '' infile = 'thefile.txt', 'r') contents = infile.read() infile.close() print(contents)