answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
natita [175]
1 year ago
11

assume that name is a variable of type stirng that has been assigned a value write an expression whose value is the last charact

er of the value of name..."blair"...'r'....
Computers and Technology
1 answer:
Snezhnost [94]1 year ago
7 0

Answer:

The most straight forward way to do it: in general string are zero index based array of characters, so you need to get the length of the string, subtract one and that will be the last character, some expressions in concrete languages would be:

In Python:

name = "blair"

name[len(name) - 1]

In JavaScript:

name = "blair"

name[name.length - 1]

In C++:

#include <string>

string name = "blair";

name[name.length() - 1];

You might be interested in
Please help!! Caleb is working on a simple logic-based program to simulate a game of tic-tac-toe. Which programming language wou
irga5000 [103]

Basic language should do it

4 0
2 years ago
There are 10 red apples and 12 green apples in a basket. If Vinta randomly selects 3 apples from the basket, what is the probabi
denpristay [2]

Answer:

12/22

Explanation:

As there are 22 apples in total and 12 green it is 12/22.

5 0
2 years ago
B. START: What new information, strategies, or techniques have you learned that will increase your technology skills? Explain wh
Komok [63]

It is important to star typeing rather than know how to have all the little secrets.

7 0
2 years ago
Rapunzel s-a născut într-un ţinut îndepărtat într-un regat necunoscut. Mama vitregă a închis-o pe Rapunzel într-un turn foarte î
andrey2020 [161]
Iche hebie zaft no guts dude
5 0
1 year ago
Create a class that holds data about a job applicant. Include a name, a phone number, and four Boolean fields that represent whe
Firdavs [7]

Answer:

Explanation:

I don't know about the answer in java.

This is what I did in C#. Find attached the answer

public class JobApplication

   {

       private string name;

       public string Name

       {

           get { return name; }

           set { name = value; }

       }

       private string phoneNumber;

       public string PhoneNumber

       {

           get { return phoneNumber; }

           set { phoneNumber = value; }

       }

       private bool isSKilledInWordProcessing;

       public bool IsSkilledInWordProcessing

       {

           get { return isSKilledInWordProcessing; }

           set { isSKilledInWordProcessing = value; }

       }

       private bool isSkilledInSpreadsheets;

       public bool IsSkilledInSpreadsheets

       {

           get { return isSkilledInSpreadsheets; }

           set { isSkilledInSpreadsheets = value; }

       }

       private bool isSkilledInDatabases;

       public bool IsSkilledInDatabases

       {

           get { return isSkilledInDatabases; }

           set { isSkilledInDatabases = value; }

       }

       private bool isSkilledInGraphics;

       public bool IsSkilledInGraphics

       {

           get { return isSkilledInGraphics; }

           set { isSkilledInGraphics = value; }

       }

       public JobApplication(string name, string phoneNumber, bool isSKilledInWordProcessing,

           bool isSkilledInSpreadsheets, bool isSkilledInDatabases, bool IsSkilledInGraphics)

       {

           Name = name;

           PhoneNumber = phoneNumber;

           IsSkilledInDatabases = isSkilledInDatabases;

           IsSkilledInGraphics = isSkilledInGraphics;

           IsSkilledInWordProcessing = IsSkilledInWordProcessing;

           IsSkilledInSpreadsheets = isSkilledInSpreadsheets;

       }

   }

   class Program

   {

       static void Main(string[] args)

       {

           JobApplication jobApplication1 = new JobApplication("Emmanuel Man", "+39399399", false, true, true, true);

           CheckIfQualified(jobApplication1);

       }

       static void CheckIfQualified(JobApplication jobApplication)

       {

           if(jobApplication.IsSkilledInSpreadsheets && jobApplication.IsSkilledInGraphics  

               && jobApplication.IsSkilledInWordProcessing && jobApplication.IsSkilledInDatabases)

           {

               Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");

           } else if (jobApplication.IsSkilledInSpreadsheets && jobApplication.IsSkilledInGraphics

               && jobApplication.IsSkilledInWordProcessing)

           {

               Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");

           }

           else if (jobApplication.IsSkilledInSpreadsheets && jobApplication.IsSkilledInGraphics

               && jobApplication.IsSkilledInDatabases)

           {

               Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");

           } else if (jobApplication.IsSkilledInWordProcessing && jobApplication.IsSkilledInGraphics

               && jobApplication.IsSkilledInDatabases)

           {

               Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");

           }else if (jobApplication.IsSkilledInWordProcessing && jobApplication.IsSkilledInSpreadsheets

               && jobApplication.IsSkilledInDatabases)

           {

               Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");

           }

           else

           {

               Console.WriteLine("The applicant, " + jobApplication.Name + " is not qualified for the job");

           }

       }

   }

5 0
2 years ago
Read 2 more answers
Other questions:
  • If you have long column labels with columns so wide that they affect the readability of a worksheet, you should first
    7·1 answer
  • Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if
    13·1 answer
  • The process of __________ encourages members to accept responsibility for the outcomes of a group and for changing the style in
    8·1 answer
  • The primary function of application software is to apply the power of the computer to enable people, workgroups, and the entire
    7·1 answer
  • Two-dimensional array indexes are listed as
    8·1 answer
  • Which of the following should get a Page Quality (PQ) rating of Low or Lowest? Select all that apply. True False A page with a m
    8·1 answer
  • When you are shopping online and finalizing your order, you usually fill in forms for your name, address, email, and payment met
    6·1 answer
  • 3.14 LAB: Simple statistics for Python
    7·1 answer
  • In this code, identify the repeated pattern and replace it with a function called month_days, that receives the name of the mont
    14·1 answer
  • Consider a disk that rotates at 3600 rpm. The seek time to move the head between adjacent tracks is 2 ms. There are 32 sectors p
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!