Consider the following scheme function. Is it tail recursive?
(DEFINE (fun1 x y)
(cond
((NULL? x) y)
((ZERO? (car x)) (fun1 (cdr x) (cons (car x) y)))
(ELSE (fun1 (cdr x) y)) )

Answers

Answer 1

Because the main function is called in both the if and else loops, the answer is yes, it is tail recursive.

What is tail recursive?

In tail recursion, the recursive function can simply return the outcome of the recursive call; there is no need for a subsequent operation.

A process known as recursion occurs when a function either directly or indirectly calls itself. The function in question is referred to as a recursive function. Base condition refers to the condition that ends a function's subsequent calls by specifying the termination state.

Simply put, the recursive function in tail recursion is known as last. Because of this, it is more effective than non-tail recursion. Additionally, since the recursive call is the final statement, the compiler can easily optimize the tail-recursive function since there are no other instructions left to be executed. As a result, it is not necessary to save the function's stack frame.

Learn more about  tail recursion

https://brainly.com/question/20749341

#SPJ4


Related Questions

Part A Choose The Correct SI Form For KN/Ms. MN/S MN/S GN/S Submit Give Up

Answers

The Correct option is MN/s.

What is SI unit?

SI is that it is an acronym for Système International in French. The metric system that is used for all measurements is the International System of Units (SI). In technological and scientific research, SI units play a crucial role. It is composed of seven base units, which define 22 derived units. The SI units can be expressed as fractional quantities or standard multiples.

The various quantities can be expressed in a variety of SI units used in physics. Base units and derived units are the two categories that can be used to classify the quantities.

Given unit kN/ms

where k = kilo = (10)³

N = newton

s = second

m = mili = (10)⁻³

so kN/ms = ((10)³ N)/((10)⁻³ s)

kN/ms = ((10)³ (10)³ N)/s  

base same power add (10)³ (10)³ = (10)⁶

(10)⁶ = mega = M

kN/ms = ((10)⁶N)/s

kN/ms = MN/s

Hence the MN/s is correct SI form.

Learn more about  SI unit;

https://brainly.com/question/12750330

#SPJ4

A compressor that has the motor and compressor in a housing that is bolted together is called a(n) __________ type.

Answers

Bolting is used to assemble semi-hermetic compressors rather than welding. The primary distinction between hermetic and semi-hermetic compressors is this.

The crucial components of semi-hermetic compressors are housed in a cast iron housing. Even though they are still housed together, the motor and compressor are still accessible. Instead of the system failing completely, this enables maintenance checks and the repair or replacement of pieces as they deteriorate.

Centrifugal force causes the oil to flow, which lubricates hermetic compressors. While having an oil pump and what is known as forced lubrication, semi-hermetic compressors do not.

Gas pours into the area of low pressure through a suction valve input. The suction valve closes during the piston's upstroke, forcing the exhaust valve to open as a result of mounting pressure. The gas is compelled through the system's discharge, or high pressure, side after being compressed.

Know more about compressors here:

https://brainly.com/question/9131351

#SPJ4

when an engine that has a full feathering hartzell propeller installed is shut down on the ground what component prevents the blades from feathering

Answers

A part that stops the blades from feathering is a latch mechanism made of springs and lock pins.

How does a propeller that feathers operate?

A mechanism in feathering propellers allows the pitch to be adjusted to an angle of around 90 degrees. A propeller is typically feathered when the engine is unable to generate enough power to turn it. The drag on the aircraft is decreased by angling the propeller parallel to the direction of flight.

What happens when the engine is feathered?

Feathing is the term used to describe this procedure. On an engine that has failed or has been turned off on purpose, feathering the propeller during flight significantly minimizes the drag that would result from the blade pitch in any other state.

To know more about engine visit:-

https://brainly.com/question/23918367

#SPJ4

Question 7 (10 points) ✓ Saved Regarding GC (Garbage Collection) in Java, which of the following statements is true? Java developers need to explicitly create a new thread in order to deallocate the used memory space. A Java GC process is responsible to take care of heap memory and deallocate the space occupied by those objects no longer used. The Java memory management API allows developers to write code directly deallocating the used memory space. JDK offers an interface for Java developers to use in managing the memory heap, e.g. deallocate the memory after a given period of time. Question 8 (10 points) ✓ Saved About array and ArrayList in Java, which of the following statements is false? ArrayList is mutable but array is immutable Underlying implementation of ArrayList depends on array ArrayList is unsafe in terms of concurrency ArrayList is immutable but array is mutable

Answers

Regarding GC (Garbage Collection) in Java, the statements that is true is option B:

A Java GC process is responsible to take care of heap memory and deallocate the space occupied by those objects no longer used.

In regards to array and ArrayList in Java, the  statement that is false is option A: ArrayList is mutable but array is immutable

What is ArrayList about?

In Java, the GC (Garbage Collection) process is responsible for automatically deallocating the memory space occupied by objects that are no longer in use. This helps to prevent memory leaks and improve the efficiency of the Java application.

Note that An array is immutable, which means that its size cannot be changed once it is created. In contrast, an ArrayList is a dynamic data structure that can store an expandable list of elements.

Learn more about ArrayList from

https://brainly.com/question/8045197

#SPJ1

Consider the postfix expression: A-B+C*(D*E-F)/(G+H*K). The equivalent postfix (reverse Polish notation) expression is:
A.
AB-C+DE*F-GH+K**/
B.
AB-CDE*F-*+GHK*+/
C.
ABC+-E*F-*+GHK*+/

Answers

Problem-solving becomes quicker and more effective thanks to RPN's elimination of the necessity for parenthesis in complicated calculations and keystroke reduction. The lowest two rows of the stack are always collapsed when an operator key (+ - x) is pressed. Thus, option C is correct.

What postfix (reverse Polish notation) expression?

The “infix notation” of conventional arithmetic expressions, in which the operator symbol appears between the operands, is in contrast to reverse Polish notation, also referred to as postfix notation. In real life, a stack structure makes it simple to assess RPN.

In contrast to the format we are accustomed to, infix notation, where the operator is between the numbers, the notation is chosen because the format that the equation is in makes it easier for machines to understand.

Therefore, ABC+-E×F-*+GHK*+/

Learn more about postfix here:

https://brainly.com/question/14294555

#SPJ4

Question 9 (2 points) The best time delay rating for a fuse used in semiconductor circuits is O standard it doesn't matter slow-blowing O fast-blowing

Answers

The best time delay rating for a fuse used in semiconductor circuits is standard.

What is a fuse?

A fuse is an electrical safety device that protects an electrical circuit against overcurrent in electronics and electrical engineering. An integral part of it is a metal wire or strip that melts under excessive current flow, blocking or interrupting the current. The service distribution panel contains fuses as an over-current safety measure.

It basically consists of a metal piece that melts when it gets too hot. In accordance with their use in various applications, fuses can be categorized as "One Time Only Fuse," "Resettable Fuse," "Current Limiting and Non-Current Limiting fuses," and "Current Limiting and Non-Current Limiting."

To learn more about a fuse, use the link given
https://brainly.com/question/29585696
#SPJ4

Which statement is true about the pricing model on AWS? (Select the best answer.) In most cases, there is a per gigabyte charge for inbound data transfer. Storage is typically charged per gigabyte. Compute is typically charged as a monthly fee based on instance type. Outbound charges are free up to a per account limit.

Answers

It is to be noted that the statement that is true about the pricing model on AWS is: "Storage is typically charged per gigabyte." (Option B)

What is AWS?

One is to note that Amazon Web Services (AWS), Inc. is an Amazon company that offers metered, pay-as-you-go cloud computing platforms and APIs to consumers, businesses, and governments. Clients frequently use this in conjunction with autoscaling.

AWS has a pay-as-you-go pricing model, so you only pay for the resources you utilize. The kind and quantity of resources utilized, the area in which the resources are hosted, and the length of time the resources are used are all factors that might impact the cost of utilizing AWS.

Learn more about AWS:
https://brainly.com/question/28903912
#SPJ1

which unit of electricity expresses the volume of electron movement in a circuit

Answers

Answer:

CURRENT (AMPERAGE) or Amp or amp or amps

Explanation:

CURRENT is the quantity or flow rate of electrons moving past a point within the circuit in one second. Current flow is also known as amperage, or amps for short. Higher voltage will produce higher current flow, and lower voltage will produce lower current flow.

The unit of electricity that typically expresses the volume of electron movement in a circuit is known as the ampere.

What are Electrons?

Electrons may be characterized as the types of subatomic particles which are always revolving around the nucleus of an atom. These types of subatomic particles are negatively charged in nature. Electrons were discovered by J.J. Thomson.

According to the context of this question, the measurement of the current is determined by the fact that it describes the quantity or flow rate of electrons moving in a circuit.

Ampere is the international unit that is specifically utilized in order to measure current. The unit of current, amperes expresses the number of electrons that generally flows past a point in a circuit over a given time.

Therefore, the unit of electricity that typically expresses the volume of electron movement in a circuit is known as the ampere.

To learn more about the Current flow, refer to the link:

https://brainly.com/question/29537921

#SPJ2

Your question seems incomplete. The most probable complete question is as follows:

Which unit of electricity expresses the volume of electron movement in a circuit?

Amperes.Volts.Coulomb.

On mountain roads, if you have ____ or more vehicles behind you, you must use turnouts to let them pass.

Answers

On mountain roads, if you have __5__ or more vehicles behind you, you must use turnouts to let them pass.

Before passing a bus or truck, be sure you can see the driver in the side mirror. To safely and quickly pass the truck or bus, signal loudly, then move into the left lane and speed up. Stay out of the blind spot. In order to observe any items through the rear view glass on the right side and rear of the car, you should be backing up with your head pointed toward the right rear of your vehicle. Driving on two-way streets is simpler since you can readily observe the approaching cars. Never cross the centerline when you get close to a hill's top.

To learn more about mountain roads click the link below:

brainly.com/question/21065899

#SPJ4

My Section Practice Exercise 4.3.7: Password Checker Goint Let's C Write a program with a method called panemarched to return if the string is a valid password. The method should have the signature shown in the starter code. The pasword must be at least 8 characters long and may only consist of letters and digits. To pass the autograder, you will need to print the boolean return value from the Hint Consider creating a Suring that contains all the letters in the alphabet and a String that contains all digits. If the password has a character that isn't in one of those Strings, then it's an illegitimate password porcheck method. My Section racht 4.3.7: Password Checker Subesi ubmitted 1 public class Password 2-( 3 public static void main(String[] args) 5 public static void main(String[] args) { 6 //we import the input object first 7 Scanner input-new Scanner(System.in); 8 V/output the System 9 System.out.println("Please enter the Password. \n"); 10 7/Now we call the input object and take the String input 11 String passwordString - input.next(); 12 1/we parse the string and print the output 13 System.out.println(passwordCheck(passwordString)): 14 } 15- public static boolean passwordCheck(String password) { 16 // if length is more than equal to 8 AND 17 // password is a combination of characters from 18 // 0-9 OR A-Z or A-Z, we return true. 19 if(password, length()>-8 & password matches("[a-z0-9A-2]+){ 20 return true; 21 > 22 else 23 //This means is password is not valid. 24 return false; 25 3 26 1 27) < 13 ca I

Answers

Using the knowledge of computational language in JAVA  it is possible to write a code that method called panemarched to return if the string is a valid password.

Writting the code:

import java.util.Scanner;

// main class

public class Main {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

// read string password from user

System.out.print("Please enter the Password: ");

String passwordString = sc.next();

// call function and print the result

System.out.println(passwordCheck(passwordString));

}

// method to check the password

// outputs true if correct and false otherwise

// input argument is a string of password

public static boolean passwordCheck(String password) {

// strings of alphabets and numbers

String alpha = "abcdefghijklmnopqrstuvwxyz";

String numeric = "1234567890";

// if length of password string is less than 8 we return false

if (password.length() < 8) {

return false;

}

// else we check the characters

else {

// loop to check each char in the string

for (int i = 0; i < password.length(); i++) {

String temp = Character.toString(password.charAt(i));

// if character is not an alphabet or a number we return false

if ((alpha.contains(temp) == false) && (numeric.contains(temp) == false)) {

return false;

}

}

// if code reaches here means the password is correct

return true;

}

}

}

See more about JAVA at brainly.com/question/29897053

#SPJ1

Once the needs have been defined in the logical network design, the next step is to develop a(n) __________.
a. application
b. baseline
c. technology design
d. turnpike design
e. backplane design

Answers

Once the needs have been defined in the logical network design, the next step is to develop a technology design.

What is technology design?

Practical applications are used to illustrate the engineering scope, content, and professional practises in technological design. In order to solve engineering design problems and create innovative designs, students in engineering teams use concepts and abilities from technology, science, and mathematics.

Engineering design criteria like design effectiveness, public safety, human factors, and ethics are researched, developed, tested, and evaluated by students. For students interested in engineering, design, innovation, or technology, this course is a must-take.

Students who take Technological Design are prepared for the capstone Engineering Design course, which serves as a transitional course for post-secondary study.

Learn more about technological design

https://brainly.com/question/20162876

#SPJ4

express the following decimal numbers in binary, octal, and hexadecimal forms: a. 173; b. 299.5; c. 735.75

Answers

A binary number is a number that is expressed using the base-2 numeral system or binary numeral system, a way of expressing numbers in mathematics that typically only employs the symbols "0" (zero) and "1." (one).

What is numeral system?

A numeral system, also known as a system of numeration, is a method of writing numbers; it is a type of mathematical notation used to consistently represent a set of numbers by using digits or other symbols.

In various numeral systems, the same set of symbols can represent various numbers. For instance, the number "11" stands for the numbers eleven in the decimal system, which is used in everyday life, three in the binary system, which is used in computers, and two in the unary system.

                       

                             Binary                       Octal               Hexadecimal

1)       173              = 10101101₂                  = 255₈                = AD₁₆

2)      299.5         = 100101011.1000₂      = 453.4₈              = 12 B.8₁₆

3)      735.75        = 1011011111.1100₂       = 1337.6₈             = 2 DF.C₁₆

Learn more about binary

https://brainly.com/question/16612919

#SPJ4

a(n) ____ cursor is automatically created in procedural sql when the sql statement returns only one value.

Answers

An implicit cursor is automatically created in procedural sql when the sql statement returns only one value.

What is SQL?

In order to interact with and modify databases, programmers use SQL (Structured Query Language). Many businesses must learn SQL if they want to make the most of the mountains of data they collect. Here is all the information you need to know about accessing and modifying data using SQL.

Users can access specific data they need at any time by using SQL, which helps manage the information stored in databases.

Even though SQL is a straightforward programming language, it is incredibly strong. In actuality, SQL is capable of adding data to database tables, altering data in already-existing database tables, and deleting data from SQL database tables. SQL can also change the database structure by adding, deleting, and altering tables.

Learn more about SQL

https://brainly.com/question/25694408

#SPJ4

Which of the following would not be a type of circuit that needs to be considered when planning for technology design capacity? (Points : 5) 1000 Mbps Ethernet 10 Mbps 100 Mbps

Answers

Ethernet is not a type of circuit that needs to be considered when planning for technology design capacity.

What is Ethernet?

Ethernet has been used for connecting devices in wired LANs and wide area networks for years (WAN). Through a protocol—a set of guidelines or common network language—it enables devices to communicate with one another.

Ethernet is the term used to describe how network devices format and transmit data so that other devices connected to the same LAN or campus network can recognize, receive, and process the data. The actual, sheathed wiring used for data transmission is called an Ethernet cable.

Ethernet is most likely used by connected devices that connect wirelessly but use cables to access a physically localized network. End users of all types, including businesses and gamers, depend on the reliability and security of Ethernet connectivity.

Learn more about Ethernet

https://brainly.com/question/1637942

#SPJ4

Suppose you are working as a lead project manager in a software house "Alpha Solutions". For a new project, you need to decide which process model will be the most appropriate.

Project “gameBuddy” is an Android application, a stable screen recorder/game recorder/video saver for Android, also a powerful all-in-one video editor and photo editor that lets you record game while playing, with one touch. Capture screen and edit video with filters, effects, music. You can draw on screen while recording, easily record phone screen with internal/external voice.


The best thing about this project is that customer is quite knowledgeable, and we have similar products in the market as well but the project timeline is a bit tight. The customer has expressed his interest in evaluating solution modules to ensure business requirements and quality standards are being met. Documentation is not compulsory, but if developed, will definitely increase the quality of the product. Your team has just completed the previous project very skillfully and efficiently.

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that Capture screen and edit video with filters, effects, music. You can draw on screen while recording, easily record phone screen with internal/external voice.

Writting the code:

package com.exchange;

class Recv

{

private String lhs;

private String rhs;

private String error;

private String icc;

public Recv(

{

}

public String getLhs()

{

return lhs;

}

public String getRhs()

{

return rhs;

}

}

public class Convert extends HttpServlet {

   protected void processRequest(HttpServletRequest req, HttpServletResponse resp)

           throws ServletException, IOException {

       String query = "";

       String amount = "";

       String curTo = "";

       String curFrom = "";

       String submit = "";

       String res = "";

       HttpSession session;

       resp.setContentType("text/html;charset=UTF-8");

       PrintWriter out = resp.getWriter();

       /*Read request parameters*/

       amount = req.getParameter("amount");

       curTo = req.getParameter("to");

       curFrom = req.getParameter("from");

       try {

           query = "+ amount + curFrom + "=?" + curTo;

           URL url = new URL(query);

           InputStreamReader stream = new InputStreamReader(url.openStream());

           BufferedReader in = new BufferedReader(stream);

           String str = "";

           String temp = "";

           while ((temp = in.readLine()) != null) {

               str = str + temp;

           }

                 Gson gson = new Gson();

           Recv st = gson.fromJson(str, Recv.class);

           String rhs = st.getRhs();

     

                   StringTokenizer strto = new StringTokenizer(rhs);

           String nextToken;

           out.write(strto.nextToken());

           nextToken = strto.nextToken();

           if( nextToken.equals("million") || nextToken.equals("billion") || nextToken.equals("trillion"))

           {

               out.println(" "+nextToken);

           }

       } catch (NumberFormatException e) {

           out.println("The given amount is not a valid number");

       }

   }

   protected void doGet(HttpServletRequest request, HttpServletResponse response)

           throws ServletException, IOException {

       processRequest(request, response);

   }

   protected void doPost(HttpServletRequest request, HttpServletResponse response)

           throws ServletException, IOException {

       processRequest(request, response);

   }

   public String getServletInfo() {

       return "Short description";

   }// </editor-fold>

}

See more about JAVA at brainly.com/question/29897053

#SPJ1

Determine the force in members CD, CF, and CG and state if these members are in tension or compression.

Answers

The force of given members in tension or compression are CD = 11.25 = 11.2 kN (C), CF = 3.21 kN (T), CG = 6.80 kN (C)

Rope bridges can support both themselves and the load they carry because tension forces cause material to be pulled and stretched in opposing directions. The rocks of an arch bridge press against one other to carry the weight because compression forces squeeze and push material inward. The bottom beam fiber tends to stretch when subjected to a normal vertical live load, whereas the top beam fiber tends to compress (tension). Comparatively speaking, the corresponding truss's bottom chord is under tension and its top chord is in compression. When two or more physical objects come into contact, they apply forces to one another. We label these contact forces differently depending on the objects that are in contact.

To learn more about  compression click here

brainly.com/question/30060592

#SPJ4

Use the ________________ property to configure rounded corners with CSS?

Answers

Answer: border-radius

Explanation:

T/F a weakness of a signature-based system is that it must keep state information on a possible attack.

Answers

Answer:

True

Explanation:

What order should I connect my modem and router?

Answers

Answer: modem then router

Explanation: the wireless signal you will get is from the router but to get that signal you need to have the modem working.

Assume that the ground temperature Tg is 40 F (10 C) and that the inside temperature of the basement is 68 F (20 C) for Problem 3. Estimate the temperature between the wall and insulation, T2 and between the gypsum board and insulation T1. Answer: T1 = 64.3 F; T2 = 49.36 F

Answers

At high temperatures, there is a large amount of radiative heat transfer via the fibre insulation employed in thermal protection systems (TPS) (1200 C).

At high temperatures, fibre insulation used in thermal protection systems (TPS) radiatively transfers a substantial amount of heat (1200 C). The TPS's ability to insulate can therefore be significantly affected by reducing the radiative heat transfer through the fibre insulation. Directly applying reflective coatings to the individual fibres of a fibrous insulation should reduce radiative heat transfer, resulting in a less effective thermally conductive insulation. Sol-gel processes have been used to create coatings with high infrared reflectivity. By using this method, fibre insulation can receive uniform coatings without noticeably increasing its weight or density. To assess coating performance, ellipsometry, scanning electron microscopy, and Fourier Transform infrared spectroscopy have all been used.

Know more about uniform here:

https://brainly.com/question/14716338

#SPJ4

T/F the fundamental difference between a switch and a router is that a switch belongs only to its local network and a router belongs to two or more local networks.

Answers

True, A switch belongs exclusively to its local network, whereas a router belongs to two or more local networks.

This is the main fundamental distinction between a switch and a router.

What is Local Area Network?

A group of different kinds of devices connected to one another in a single physical location/place, such as a building, office, or home, is known as a local area network (LAN). A LAN can be tiny or big, with one user's home network or hundreds of users and devices in an office or school as examples.

The fact that a LAN connects devices that are located in a single, constrained region is its sole distinguishing feature, regardless of size. A wide area network (WAN) or metropolitan area network (MAN), in contrast, spans a wider geographic area. A few WANs and MANs link numerous LANs collectively.

To know more about Network , visit: https://brainly.com/question/29675361

#SPJ4

Question 11 A highlight table is used to _____. Select an answer: visualize the relative proportion of values in a table emphasize the sort order of table values hide values in a table that are equal to zero colorize text based on a predefined color key

Answers

A highlight table is used to: A. visualize the relative proportion of values in a table.

What is tableau?

In Computer technology, tableau can be defined as an interactive data visualization software application (program) that is designed and developed by an American interactive data visualization software organization, with a primary focus on data visualization and business intelligence.

What is a highlight table?

In Computer technology, a highlight table can b defined as a type of table that is designed and developed to display, show, illustrate, represent, or visualize categorical data in a text table with the aid of a color.

Read more on data here: brainly.com/question/26207955

#SPJ1

alter the program so that a valid password consists of 10 charac- ters, 6 of which must be digits and the other 4 letters.

Answers

To alter the program so that a valid password consists of 10 charac- ters, 6 of which must be digits and the other 4 letters.

What is password?

A password is a group of characters used to verify a user's identity on a computer system. You might, for instance, need to log in to a computer account. You must enter a true username and password in order to access your account. The term "login" is frequently used to describe this combination. Passwords are private to each user, whereas usernames are typically public knowledge.

Most passwords are made up of a number of characters, which can typically include letters, numbers, and the majority of symbols but not spaces. While picking a password that is simple to remember is a good idea, you shouldn't make it so straightforward that anyone can figure it out.

//CODE//

#include <iostream>

#include <cstring>

#include <cctype>

// #include

using namespace std;

// function prototypes

bool testPassWord(char[]);

int countLetters(char *);

int countDigits(char *);

int main() {

char passWord[20];

cout << "Enter a password consisting of exactly 10 characters, 6 digits and the other 4 letters:"

<< endl;

cin.getline(passWord, 20);

if (testPassWord(passWord))

cout << "Please wait - your password is being verified" << endl;

else {

cout << "Please enter a password with exactly 10 letters, 6 digits and 4 other"<< endl;

cout << "For example, my1237Ru99jhsggs is valid" << endl;

}

// Fill in the code that will call countLetters and countDigits and will

// print to the screen both the number of

// letters and digits contained in the password.

cout << "There are " << countLetters(passWord)

<< " letters in the password.\n";

cout << "There are " << countDigits(passWord) << " digits in the password.\n";

if (countLetters(passWord) == 10 && countDigits(passWord) == 6 && strlen(passWord)==20) {

cout << "password: " << passWord << endl;

} else

cout << "So, password: " << passWord << endl;

system("PAUSE"); // Pause the system for a while

return 0;

}

//**************************************************************

// testPassWord

//

// task: determines if the word in the character array passed to it, contains

// //exactly 10 letters,  6 digits and 4 other letters.

// data in: a word contained in a character array

// data returned: true if the word contains 10 letters, 6 digits and 4 other letters

// digits, false otherwise

//

//**************************************************************

bool testPassWord(char custPass[]) {

int numLetters, numDigits, length;

length = strlen(custPass);

numLetters = countLetters(custPass);

numDigits = countDigits(custPass);

// Check valid password consists of 10 characters,6 of which must be digits

// and the other 4 letters

if (numLetters == 10 && numDigits == 6 && length == 20)

return true;

else

return false;

}

//**************************************************************

// countLetters

//

// task: counts the number of letters (both

// capital and lower case)in the string

// data in: a string

// data returned: the number of letters in the string

//

//**************************************************************

int countLetters(char *strPtr) {

int occurs = 0;

while (*strPtr != '\0') {

if (isalpha(*strPtr))

occurs++;

strPtr++;

}

return occurs;

}

//**************************************************************

// countDigits

//

// task: counts the number of digits in the string

// data in: a string

// data returned: the number of digits in the string

//

//**************************************************************

int countDigits(char *strPtr) {

int occurs = 0;

while (*strPtr != '\0') {

if (isdigit(*strPtr)) // isdigit determines if the character is a digit

occurs++;

strPtr++;

}

return occurs;

}

Learn more about passwords

https://brainly.com/question/15016664

#SPJ4

A permanent split capacitor (psc) motor that is running and up to speed will have the start winding ____.

Answers

A permanent split capacitor (PSC) motor that is running and up to speed will have the start winding: A) energized.

What is an electric motor?

In Electrical engineering, an electric motor can be defined as an electrical machine that is designed and developed to convert electrical energy into kinetic energy, especially through electromagnetic induction.

What is a permanent split capacitor (PSC)?

A permanent split capacitor (PSC) Motor simply refers to a type of single-phase alternating current (AC) motor in which the capacitor is permanently connected, rather than being connected only when it is starting.

This ultimately implies that, the start winding of a permanent split capacitor (PSC) Motor is energized when it is running and up to speed.

Read more on electric motor here: https://brainly.com/question/479333

#SPJ1

Complete Question

A permanent split capacitor (PSC) motor that is running and up to speed will have the start winding ____.

A) energized

B) de-energized

C) in series with the run winding

D) removed from the circuit

problem 8.54 for each of the following pairs of polymers, do the following: (1) state whether it is possible to decide whether one polymer has a higher tensile strength than the other; (2) if this is possible, note which has the higher tensile strength and cite the reason(s) for your choice; and (3) if it is not possible to decide, state why. (a) linear and isotactic poly(vinyl chloride) with a weight-average molecular weight of 100,000 g/mol; branched and atactic poly(vinyl chloride) having a weight-average molecular weight of 75,000 g/mol (b) graft acrylonitrile-butadiene copolymer with 10% of possible sites crosslinked; alternating acrylonitrile- butadiene copolymer with 5% of possible sites crosslinked (c) network polyester; lightly branched polytetrafluoroethylene

Answers

Possible, tensile strength increases with molecular weight. Therefore the linear and isotactic polymer will have the higher tensile strength.

What is about pairs of polymers?

Possible, tensile strength increases with molecular weight. Therefore the linear and isotactic polymer will have the higher tensile strength.

1) Possible, With an increase in molecular weight, tensile strength rises. As a result, polymers that are linear and isotactic will have a greater tensile strength.

2) It seems unlikely that both polymers display the same level of enhanced tensile strength, but we lack sufficient data to determine how much is raised and which polymer exhibits a greater value.

3) Due to a higher number of covalent bonds, network polymers may, in general, have higher tensile strengths than branch structures.

To learn more about isotactic polymer refer to:

https://brainly.com/question/13846558

#SPJ4

Which of the following captures the timelines for product deployment during the course of the project? 1. Product Backlog 2. Project Vision statement 3. Epics) 4. Release Planning Schedule

Answers

Backlogs for products and sprints are essential to agile planning. They list every action that needs to be taken to complete a project in detail.

Every product team is in charge of jotting down fresh suggestions and requests for improvements. These inputs are what fuel innovative business practises and a supportive workplace culture. However, you must do more than serve as a sounding board for various ideas. You require a method for compiling and assessing requests for your current roadmap. Most product teams utilise a backlog of some form to organize ideas and ongoing project.

Agile approaches are the foundation of the backlog idea. Many teams continually prioritize what to build and when using adaptive planning strategies. Even teams that do not strictly adhere to the agile methodology now frequently use backlogs to organize and prioritise work items.

Know more about project here:

https://brainly.com/question/29417593

#SPJ4

Currency Exchange Programming challenge description: Given A list of foreign exchange rates A selected curreny A target currency Your goal is to calculate the max amount of the target currency to 1 unit of the selected currency through the FX transactions. Assume all transations are free and done immediately If you cannot finish the exchange, return Input: You will be provided a list of fx rates, a selected currency, and a target currency. For example: FX rates list: USD to JPY 1 to 109 USD to GBP 1 to 0.71 GBP to JPY 1 to 155 Original currency: USD Target currency : OPY Output: Calculated the max target currency will can get. For example: USD to JPY -> 109 USD to GBP to JPY = 0.71 . 155 = 110.05 > 109. so the max value will be 110.05 Test 1 Test Input USD, GBP, 0.7;USD, JPY, 109;GBP, JPY, 155; CAD, CNY, 5.27; CAD, KRW, 921 USD CNY USD to GBP 1 to 0.71 GBP to JPY 1 to 155 Original currency: USD Target currency : JPY Output: Calculated the max target currency will can get. For example: USD to JPY -> 109 USD to GBP to JPY = 0.71 155 = 110.05 > 109, so the max value will be 110.95 Test 1 Test Input USD, GBP, 0.7;USD, JPY, 109; GBP, JPY, 155; CAD, CNY,5.27;CAD, KRW, 921 USD CNY Expected Output -1.2 Test 2 Test Input USD, CAD, 1.3;USD, GBP, 0.71; USD, JPY, 109;GBP, JPY, 155 USD JPY Expected Output 110.05 1 import sys 2 for line in sys.stdin: print(line, end="") 3

Answers

The Currency Exchange Programming for max amount of the target currency to 1 unit of the selected currency can be written using python.

The programming code in python is,

#The given code start

import sys

for line in sys.stdin:

   print(line, end="")

   #The given code end

   break

list_foreign_exchange = line.strip()

selected_currency = ""

target_currency = ""

found = False

max1 = 0

for line in sys.stdin:

   print(line, end="")

   if list_foreign_exchange == "":        

       list_foreign_exchange = line.strip()

   elif selected_currency == "":

       selected_currency = line.strip()

   else:

       target_currency = line.strip()

       break

if selected_currency == target_currency:

   print("0")  

else:

   currency = []

   currency_string = list_foreign_exchange.split(";")

   for cur in currency_string:

       currency.append(cur.split(","))

   for cur in currency:    

       if (selected_currency == cur[0]) and (target_currency == cur[1]):        

           max1 = float(cur[2])

           found = True

           break

   max2 = 1

   tried_index = 0

   ref = selected_currency

   for cur in currency:

       if ref == cur[0]:

           ref = cur[1]        

           max2 *= float(cur[2])

           if cur[1] == target_currency:

               found = True

               break

   if found == True:

       if (max2 > max1):

           print(max2)

       else:

           print(max1)

   else:

       print('-1.0')

In the code above, we use loop statement to iterate each currency and IF-ELSE function to check the each condition, so we can get the result exactly to the goal.

You question is incomplete, but most probably your full question was

(image attached)

Learn more about loop here:

brainly.com/question/26098908

#SPJ4

What does the following code display?
int d = 9, e = 12;
System.out.printf("%d %d\n", d, e);
a. %d 9
b. %9 %12
c. %d %d
d. 9 12

Answers

Answer:
The correct answer is option d.
9 12
Explanation:
Because the System.out.printf command is used to display output.
In this d=9, and e= 12. So the 9 and 12 output will be display.
\n is used for display output in new line


question 2 repeat the problem above, but use a capacitor that has half of the physical area, a, of the original one.

Answers

Utilize a capacitor with a physical area, a, that is half that of the original capacitor. quadruple.

What practical applications can capacitors be found in?

As a substitute energy storage component, a capacitor can be used in place of batteries. In situations where a sudden surge of power is required, capacitors are frequently used as energy storage components.

How does a capacitor function? What is its purpose?

A capacitor, in contrast to a battery, is a component of a circuit that momentarily stores electrical energy by dispersing charged particles between (often two) plates to produce a potential difference. When a capacitor is charged, it may discharge all of its stored energy far more quickly than a battery.

To know more about capacitor  visit :-

https://brainly.com/question/17176550

#SPJ4

Programming Exercise 2.4 Create a program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere's: Diameter (2 × radius) Circumference (diameter × π) Surface area (4 × π × radius × radius) Volume (4/3 × π × radius × radius × radius)

Answers

The Python code that can help in the Programming Exercise  is given below:

import math

def sphere_properties(radius):

 diameter = 2 * radius

 circumference = diameter * math.pi

 surface_area = 4 * math.pi * radius * radius

 volume = 4/3 * math.pi * radius * radius * radius

 

 print("Diameter: ", diameter)

 print("Circumference: ", circumference)

 print("Surface Area: ", surface_area)

 print("Volume: ", volume)

radius = float(input("Enter the radius of the sphere: "))

sphere_properties(radius)

What is the Python code  about?

The above code defines a function sphere_properties that takes the radius of the sphere as input and calculates the diameter, circumference, surface area, and volume of the sphere. The value of π is obtained from the math module.

Therefore, the function prints the values of the diameter, circumference, surface area, and volume of the sphere.

Learn more about Programming from

https://brainly.com/question/26497128

#SPJ1

Other Questions
please help i don't know what to do Roy DeSoto earns a regular hourly salary of $24.00. He is paid time-and-a-half for all hours in excess of 40 in the week. For the week ended March 8, 20X1, he worked a total of 60 hours. His gross wages year to date, prior to his March 8, paycheck, are $12,160. Social Security Tax is 6.2% on a maximum of $132,900 of gross wages per year, Medicare Tax is 1.45%, federal unemployment tax is 0.6% and state unemployment tax is 4.2%, both on a maximum of $7,000 of gross wages per year. What is the employer's payroll tax expense for Roy for the week ended March 8, 20X1 What does Francis say the fight was about? Why do you think he lies? Why do you thinkScout doesn't contradict him? Who breaks up the fight? State if the three numbers can be the measures of the sides of a triangle,6,8,9NoYes Anybody know this is the flu pandemic Can some help me plzzz There were f frogs in a pond. 36 of the frogs hopped away. Write the expression that shows how many frogs are in the pond now. The energy of a machine that is transformed into heat:is destroyedcan always be used for additional workusually cannot do any further workcan be transformed back into mechanical energy a plate moves at a sped of 45 mm/yr. How far will the plate move in 100 years? im going to make a quizzez game but the only way i remember how to share with poeple is by making a class what sould the name be n an arm's length channel system where the supplier/steward exerts little direct control over channel intermediaries, the channel steward may have to resort to performing value-adding activities itself, such as TV advertising, consumer promotions, and so on, so that even before the consumer enters the store, she or he is looking only for the supplier's brand. Which promotional strategy does this discussion describe what is the volume of a cereal box that is 2 inches thick, 12 inches high and 10 inches wide? Someone please answer this Why is the Establishment Clause so important and a part of the constitution?1. The Establishment Clause insures that children receive a religious education.2. The Establishment Clause prohibits association between church and government.3. The Establishment Clause bans the government from forcing a particular religion upon its citizens.4. The Establishment Clause allows individuals to give tax dollars for the support of their church. The salary of the president and vice president were a total of $576,300 a year. If the president makes $203,700 more a year than the vice president, how much does the vice president make?A. $166,300B. $186,300C. $390,000D.$286,000 Read this excerpt from A Black Hole Is NOT a Hole.Certain things are invisible to us because our eyes just can't sense them. You don't see beams of infrared light shooting across the room from your remote control to the TV, for example, or radio waves streaming off everyone's cell phone.What is the most likely reason why the author provides real-life examples in this excerpt?They allow readers to understand how peoples eyes work.They remind readers of how technology affects their own lives.They describe the path of infrared light beams from a remote control to a TV.They help readers connect to the idea that human eyes cannot see everything. Match the letter of the best answer.Column A1.Polonius:Polonius2.Ophelia:Ophelia3.Hamlet:Hamlet4.Claudius:Claudius5.Gertrude:GertrudeColumn Ba.Chastises Hamlet for showing the king disrespecb.Returns keepsakes to a lovec.Arranges the Mouse-trap playd.Hides behind a tapestrye.Unable to pray for forgivenessQuestion 7 (5 points)(There may be more than one correct answer for this question.)In considering Poloniuss death, Hamlet _____. arealizes that the murder will set him packing bsays Polonius deserved his death for being so devious csays that he repents but that he will answer well for murdering himQuestion 8 (5 points)As Hamlet prepares to depart from England with Rosencrantz and Guildenstern, he views them as _____. aconfidants and trusted friends bchildhood friends cuntrustworthy as adders dharmless servants of the KingQuestion 9 (5 points)Before Hamlet meets with Gertrude, he resolves to _____. aconvince her that he is mad over Ophelias rejection bconvince her to help him take revenge on Claudius cconvince her not to reveal his plan dbe cruel but not physically harmful to herQuestion 10 (5 points)Although Hamlet has forced Gertrude to see the wrongfulness of her marriage to Claudius, she thinks Hamlet mad when _____. ahe speaks to the air as if it were his father bhe rants at her che condemns women for making monsters of men dhe threatens her life how was it living in the atomic period Calculate the product below and give your answer in scientific notation.(1.3 x 10-^2) x (0.05) = ? George reads 6 pages of a book each morningand 4 pages of a book each evening,How many pages will he read in seven days?